*{
  padding: 0;
  margin: 0;
}       

html, body {
  height:  100%;
  overflow-x: hidden;
  
  
}

header {
  position: relative;
  z-index: 10;
width: 100%;
background: linear-gradient(90deg,#000000,  #c60000, #c60000, #000000); 
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;

padding: 0; /* Eliminar el padding de todo el header */
margin: 0; /* Asegurarse de que no haya márgenes */
box-sizing: border-box; /* Esto ayuda a que el padding no afecte el ancho total */
}

/* FILA SUPERIOR */
.superior {
display: flex;
justify-content: space-between;
align-items: center;
height: 120px;
padding: 0 20px; /* Esto da el espaciado adecuado sin hacer que el header se desborde */
width: 100%;
box-sizing: border-box; /* Asegura que el padding no afecte el ancho */
}

/* Estructura interna */
.PP, .PP2, .PP3 {
height: 100%;
display: flex;
align-items: center;
}

.PP { 
width: 20%; }

#EUDG{
  display: left;
  gap: 10px;
  padding: 1px;
  width: 42%; /* Hace que solo ocupe el ancho necesario */
  margin: 0 auto; /* Esto centra el contenedor en la página */
}

#EUDG a img {
  width: 20px;
  height: auto;
  transition: transform 0.3s ease;
}

#EUDG a img:hover {
  transform: scale(1.1);
}



.PP2 { 
width: 60%; 
justify-content: center; 
color: white;
font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
font-size: 40px;
}


.PP3 { 
width: 20%; 
justify-content: flex-end;
text-align: center;
right: 0;  
}


.VV {
padding: 10px 20px;
margin-right: 15px;
margin-top: 10px;
font-size: 16px;
background-color: #000000;
color: white;
font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
border: none;
border-radius: 5px;
transition: all 0.3s ease; /* Efecto suave para todas las propiedades */
}

.VV:hover {
background-color: #c60000; /* Cambia el color de fondo cuando pasas el cursor */
transform: scale(1.05);}

.VV:active {
transform: scale(0.95); /* Hace que el botón se haga más pequeño al hacer clic */
}

.VV i {
margin-right: 5px; /* Espacio entre el icono y el texto */
}

.VV i:hover {
color: #c60000; /* Cambia el color del icono al pasar el cursor */
}


/* FILA INFERIOR */
.inferior {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 20px;
background-color: #000000;
}

.principal {
width: 60%;
background-color: #000000;
text-align: center;
}

/* Menú principal */
.menu {
display: flex;

list-style: none;
padding: 0;
margin: 0;
}

/* Los elementos del menú */
.menu > li {
position: relative;
margin: 0 20px; /* Se agregan márgenes entre los elementos */
display: flex;
justify-content: center; /* Centra el contenido dentro de cada <li> */
align-items: center; /* Alinea el texto verticalmente */
text-align: center; /* Asegura que el texto esté centrado */
}

/* Enlaces de los menús */
.menu > li > a {
padding: 10px 20px; /* Ajusta el espacio alrededor del texto */
color: white;
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
text-decoration: none;
transition: all .5s;
display: inline-block; /* Asegura que los enlaces se comporten como bloques en línea */
}

.menu li a:hover {
color: #f9ba07;
}

/* Estilos para el submenú */
.submenu {
position: absolute;
top: 100%;
left: 0;
background-color: #000000;
visibility: hidden;
opacity: 0;
transition: opacity 0.5s ease-in-out, visibility 0s 0.5s;
}

.submenu li {
list-style-type: none;
}

.submenu li a {
display: block;
padding: 10px 20px;
color: white;
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
text-decoration: none;
}

.submenu li a:hover {
color: #c60000;
}

.menu > li:hover > .submenu {
visibility: visible;
opacity: 1;
transition: opacity 0.5s ease-in-out;
}

.busqueda {
  width: 35%;
  display: flex;
  justify-content: center;
  background-color: #000000;
  text-align: center;
  color: #ffffff;
  font-size: 30px; 
  font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  }
  
  .barra-busqueda {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background-color: #000000;
  }
  
  .barra-busqueda input[type="text"] {
  padding: 8px;
  border: none;
  border-radius: 5px;
  width: 200px;
  font-size: 15px;
  }
  
  .barra-busqueda button {
  background-color: #0603b8;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  }
  
  
  .barra-busqueda button:hover {
  background-color: #037fb8;
  color: white;
  }
  
main {
  flex: 1;
  background-color: #000;
  background-image: linear-gradient(to right, 
      red 0%, 
      transparent 10%, 
      black 50%, 
      transparent 90%, 
      red 100%);
  background-size: 400% 400%;
  animation: bodyGradient 10s ease infinite;
  color: white;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  padding: 20px;
}
/* Estilos para el dropdown */
.dropdown {
     width: fit-content;
    min-width: 13em;
    position: relative;
    top: 0;
    margin-bottom: 20px; /* Separación con la tabla */
    margin-left: auto;
    margin-right: auto;
}

.select {
    background: #000000;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px #2a2f3b solid;
    border-radius: 0.5em;
    padding: 1em;
    cursor: pointer;
    transition: 0.3s;
}

.select:hover {
    background: #323741;
}

.caret {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #fff;
    transition: 0.3s;
}

.caret-rotate {
    transform: rotate(180deg);
}

.menu2 {
    list-style: none;
    padding: 0.2em 0.5em;
    background: #000000;
    border: 1px #363a43 solid;
    box-shadow: 0 0.5em 1em rgba(0, 0, 0, 0.2);
    border-radius: 0.5em;
    color: #9fa5b5;
    position: absolute;
    top: 4em;
    left: 50%;
    width: 100%;
    transform: translateX(-50%);
    opacity: 0;
    display: none;
    transition: 0.2s;
    z-index: 1;
}

.menu2 li {
    padding: 0.7em 0.5em;
    margin: 0.3em 0;
    border-radius: 0.5em;
    cursor: pointer;
}

.menu2 li:hover {
    background: #2a2d35;
}

.active {
    background: #23242a;
}

.menu2-open {
    display: block;
    opacity: 1;
}



/* Animación para fondo */
@keyframes bodyGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Footer pegado abajo */
footer {
  background-color: #000;
  color: white;
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
}
.RS {
  width: 50%;
  height: 70%;
  float: left;
  background-color: #000000;
  color: white; /* Color del texto */
  text-align: center;
  font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  font-size: 20px;
 
}

.social-icon {
  display: inline-flex; /* Alinea el icono y el texto en una fila */
  align-items: center;
  font-size: 15px; /* Tamaño adecuado para los iconos */
  text-decoration: none; /* Elimina el subrayado */
  color: #037fb8; /* Color original de Instagram */
  margin-bottom: 20px; /* Espaciado entre los enlaces */
  transition: transform 0.3s ease; /* Efecto suave para cuando se pase el cursor */
}

.social-icon i {
  margin-right: 8px; /* Espacio entre el icono y el texto */
}

.social-icon:hover {
  transform: scale(1.1); /* Agranda ligeramente el icono y el enlace */
}

.social-icon:hover i {
  color: #0603b8; /* Un color un poco más oscuro cuando el cursor pase por encima */
}

.social-icon:active {
  transform: scale(1.05); /* Levemente más pequeño cuando se haga clic */
}


.EE {
  width:50%;
  height: 60%;
  float: left;
  background-color: #000000;
  text-align: center;
  }

  .AP {
  width: 100%;
  height: 140%; 
  float: left;
  background-color: #000000;
  font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  text-align: center;
  color:white;
  }
 
 
  .TaTGTGOMJ-table {
    width: 100%;
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 20px;
    background-color: black;
    padding: 3px;
    background-image: linear-gradient(270deg, red, yellow, orange, red);
    background-size: 600% 600%;
    animation: gradientBorder 6s ease infinite;
}

@keyframes gradientBorder {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.TaTGTGOMJ-table > table {
    width: 100%;
    table-layout: fixed; /* Fuerza el ajuste del contenido */
    border-radius: 4px;
    background-color: #000;
    border-collapse: collapse;
    word-wrap: break-word;
}

th[colspan="8"],
th {
    padding: 12px 10px;
    text-align: center;
    color: #fff;
    border: 1px solid #444;
    background-image: linear-gradient(270deg, red, yellow, orange, red);
    background-size: 600% 600%;
    animation: gradientHeader 6s ease infinite;
}

@keyframes gradientHeader {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

td {
    padding: 10px;
    text-align: center;
    border: 1px solid #444;
    color: #fff;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal; /* Permite que el texto se divida en varias líneas */
}

td img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
    }

    .TaTGTGOMJ-table {
        width: 100%;
    }
}

h4 {
    color: #ffffff;
}
.contenedor-principal {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Al menos el alto de la pantalla */
}

@media (max-width: 768px) {
  .superior, .inferior {
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: auto;
  }

  .PP, .PP2, .PP3, .principal, .busqueda {
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
  }

  .menu {
    flex-direction: column;
  }

  .menu > li {
    margin: 10px 0;
  }

  .submenu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
  }

  .submenu.visible {
    display: block;
  }
  .barra-busqueda {
    flex-direction: column;
    gap: 5px;
  }

  .dropdown-container {
    flex-direction: column;
  }

  .TaTGTGOMJ-table table {
    font-size: 12px;
  }

  td img {
    width: 30px;
    height: 30px;
  }
}
