*{
    padding: 0;
    margin: 0;
      box-sizing: border-box;
}       

html, body {
   margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;

}

/* Asegura que imágenes no dejen espacio debajo */


header {
  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;  
  }
  

  .IS {
  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 */
  }
  
  .IS:hover {
  background-color: #c60000; /* Cambia el color de fondo cuando pasas el cursor */
  transform: scale(1.05);}
  
  .IS:active {
  transform: scale(0.95); /* Hace que el botón se haga más pequeño al hacer clic */
  }
  
  .IS i {
  margin-right: 5px; /* Espacio entre el icono y el texto */
  }
  
  .IS 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: 100%;
  background-color: #000000;
  text-align: center;
  }
  

/* Menú principal */
.menu {
  display: flex;
  justify-content: center; /* Centra los elementos de la lista en el contenedor */
  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;
}

.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;
  z-index: 1100; /* Asegura que estén por encima de todo */
}

.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;
}

main {
   width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(90deg, #f9ba07, #f9ba07);
  overflow-x: hidden;

}
.carrusel {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
   margin-bottom: 0;
  padding-bottom: 0;
}
.carrusel-wrapper {
  width: 100%;
  overflow: hidden;
}


/* La sección de las imágenes del carrusel */
.pics {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.5s ease;
  width: 100%;
}

.pics img {
  width: 100%;
  max-width: 100vw;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
  display: block; /* Evita espacio fantasma debajo de img */
}

.pics img.activo {
  display: block;
  opacity: 1;
  z-index: 1;
}

/* Responsividad: el carrusel se adapta en pantallas más pequeñas */
@media screen and (max-width: 768px) {
  .prev, .next {
    font-size: 22px;
    padding: 10px;
  }

  /* 🔧 AÑADIDO: relación de aspecto en móvil */
  .carrusel {
    aspect-ratio: 16 / 9; /* O cambia a 3 / 1 si quieres que se vea más delgado */
    height: auto;
  }

 .pics {
    height: auto; /* cambiar de 100% a auto */
  }
  
  .pics img {
    height: auto;
    max-height: 100%;
  }
}

/* Activa la imagen actual (opacidad y orden de apilamiento) */
.pics img.activo {
  display: block; /* Solo se muestra la imagen activa */
  opacity: 1;
  z-index: 1;
}

/* Estilos para los botones de navegación */
.carrusel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10;
}

.carrusel .prev {
  left: 10px;
}

.carrusel .next {
  right: 10px;
}

/* Botones de navegación */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Opcional: estilos para que los botones no se desborden */
.prev:focus,
.next:focus {
  outline: none;
}




/* Responsividad: el carrusel se adapta en pantallas más pequeñas */
@media screen and (max-width: 768px) {
  .prev, .next {
    font-size: 22px;
    padding: 10px;
  }
}



/* Footer general */
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background-color: #000000;
  padding: 20px 0;
  color: white;
  font-family: 'Lucida Sans', sans-serif;
}

/* Secciones del footer */
.RS, .EE, .AP {
  box-sizing: border-box;
  padding: 20px;
  width: 100%;         /* Responsive por defecto */
  height: auto;
  text-align: center;
}

/* Ajuste para pantallas más grandes */
@media (min-width: 768px) {
  .RS, .EE {
    width: 50%;
  }
  .AP {
    width: 100%;
  }
}

/* Estilo social links */
.social-icon {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  text-decoration: none;
  color: #037fb8;
  margin: 10px;
  transition: transform 0.3s ease;
}

.social-icon i {
  margin-right: 8px;
}

.social-icon:hover {
  transform: scale(1.1);
}

.social-icon:hover i {
  color: #0603b8;
}

.social-icon:active {
  transform: scale(1.05);
}

/* Menú dentro del footer */
.menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu > li {
  margin-bottom: 10px;
}

.submenu {
  list-style: none;
  padding-left: 0;
  margin-top: 5px;
}

.submenu li a {
  color: #037fb8;
  text-decoration: none;
  display: block;
  margin-bottom: 5px;
}

/* Texto legal */
.AP p {
  font-size: 14px;
  line-height: 1.5;
  color: white;
}