@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500&family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Saira+Condensed:wght@200&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Merriweather', serif;
    text-decoration: none;
}

body{
    background-color: #fff;
}

header {
  width: 100%;
  background-image: url('../img/fondo-header.webp');
    /*position: sticky;
    top: 0;*/
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 194px;
    background-color: rgba(0, 0, 0, 0.5); /* Color negro con opacidad (ajusta el último valor) */
}

/*HEADER SUPERIOR*/

.header_superior{
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.logo img{
    position: relative;
    width: 200px;
    height: 150px;
    z-index: 1;
}

.titulo {
    font-weight: bold;
    position: relative;
    color: black;
    font-size: 18px;
    padding: 10px;
    z-index: 1;
    margin-left: 20px;
}

/*BARRA MENU*/

.container_menu{
    width: 100%;
    height: 70px;
    background: #000428;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #004e92, #000428);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #004e92, #000428); 
    padding: 0px 20px;
}

.menu{
    max-width: 1200px;
    margin: auto;
    height: 100%;
    display: flex; /* Agrega esta línea */
    justify-content: center; /* Agrega esta línea */
}


nav{
    height: 100%;
}

nav > ul{
    height: 100%;
    display: flex;
    align-items: center; /* Agrega esta línea */
}


nav ul li{
    height: 100%;
    list-style: none;
    position: relative;
}

nav > ul > li:first-child > a{
    background-image: url('../img/home.webp');
    background-size: 40px;
    background-repeat: no-repeat;
    background-position: center center;
    padding: 20px 40px;
}

nav > ul > li:first-child:hover > a{
    background-image: url('../img/home.webp');
    background-size: 24px;
    background-repeat: no-repeat;
    background-position: center center;
}

nav > ul > li > a{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 14px;
    color: white;
    text-transform: uppercase;
    font-size: 16px;
    transition: all 300ms ease;
}

nav > ul > li > a:hover{
    border-radius: 20px;
    transform: scale(1.1);
    background: #0074c7;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
}

#selected{
    border-radius: 20px;
    transform: scale(1.1);
    background-color: #0074c7;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
}

/*SUBMENU*/

nav ul li ul{
    width: 200px;
    display: flex;
    flex-direction: column;
    background: white;
    position: absolute;
    
    left: -5px;
    padding: 14px 0px;
    visibility: hidden;
    opacity: 0;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
    z-index: 10;
    transition: all 300ms ease;
}

nav ul li:hover ul{
    visibility: visible;
    opacity: 1;
    top: 70px;
}

nav ul li ul::before{
    content: '';
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid white;
    position: absolute;
    top: -12px ;
    left: 20px;
}

nav ul li ul li a{
    display: block;
    color: #000428;
    padding: 6px;
    padding-left: 14px;
    margin-top: 10px;
    font-size: 20px;
    transition: all 300ms ease;
}

nav ul li ul li a:hover{
    background: #0074c7;
    color: white;
    transform: scale(1.2);
    padding-left: 30px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
}

footer {
    width: 100%;
    background: #000428;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #004e92, #000428);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #004e92, #000428); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    color: #fff;
    text-align: center;
    padding: 10px;
    border-top-left-radius: 50px; /* Esquina inferior izquierda redondeada */
    border-top-right-radius: 50px;
} 

.cuadrado {
    width: 1400px; /* Ancho del cuadro */  
    background: #C6C6C6;
    margin: 20px auto;
    border-radius: 30px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5); /* Relieve */
    border: 1px solid rgba(0, 0, 0, 0.2); /* Sombreado */
    display: flex;
    flex-direction: column; /* Cambia la dirección del flujo a columna */
    justify-content: center; /* Alinea el contenido verticalmente al centro */
    padding-left: 20px;
    box-sizing: border-box; /* Añadir esta propiedad para incluir padding y bordes en las dimensiones */
    padding: 20px; /* Agregar espacio interno al cuadro para que el contenido no se desborde */
}

.cuadrado2 {
  width: 1300px; /* Ancho del cuadro */  
  background: #fff;
  margin: 20px auto;
  border-radius: 30px;
  margin-top: 20px;
  margin-bottom: 20px;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5); /* Relieve */
  border: 1px solid rgba(0, 0, 0, 0.2); /* Sombreado */
  display: flex;
  flex-direction: column; /* Cambia la dirección del flujo a columna */
  justify-content: center; /* Alinea el contenido verticalmente al centro */
  padding-left: 20px;
  box-sizing: border-box; /* Añadir esta propiedad para incluir padding y bordes en las dimensiones */
  padding: 20px; /* Agregar espacio interno al cuadro para que el contenido no se desborde */
}

#image-container {
  max-width: 100%;  /* La anchura máxima del contenedor se ajustará al tamaño de su contenedor principal */
  height: 400px;
  margin: 0 auto;   /* Centra el contenedor en su elemento principal (por ejemplo, el cuerpo de la página) */
  text-align: center;
}

#image-container img {
  width: 50%;  /* La imagen no superará el ancho del contenedor */
  height: 100%;     /* Mantiene la proporción original de la imagen */
}
.imagen{
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

/* Estilos adicionales según tus preferencias */
.imagen:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

#introPage {
    text-align: center; /* Centra el texto horizontalmente */
    margin-top: 20px; /* Añade un espacio en la parte superior del título */
    margin-bottom: 40px;
}

.descripcion{
    text-align: justify; /* Justifica el texto */
    line-height: 2.5;
    margin: 30px;
    font-family: 'Saira Condensed', sans-serif;
}
  
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/fondo.webp'); /* Cambia 'tu-imagen-de-fondo.jpg' al nombre de tu imagen */
  background-size: cover; /* Ajusta la imagen para cubrir todo el fondo */
  background-position: center; /* Centra la imagen en el fondo */
  background-repeat: no-repeat; /* Evita que la imagen se repita */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-circle {
    border: 5px solid #073ebc;
    border-top: 5px solid #ff9d00;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    animation: spin 2s linear infinite; /* Agrega una animación de giro */
    margin-top: 10px; /* Espacio entre el texto y el círculo */
}

.loader-text {
    font-size: 100px;
    font-weight: bold;
    animation: fade 2s ease-in-out infinite; /* Agrega una animación de fade */
}

.content {
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fade {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.content-animation {
  opacity: 0; /* Comienza con una opacidad de 0 */
  transform: translateY(20px); /* Inicia ligeramente desplazado hacia abajo */
  animation: fadeInUp 1s ease-out forwards paused;
}

@keyframes fadeInUp {
  0% {
      opacity: 0;
      transform: translateY(20px);
  }
  100% {
      opacity: 1;
      transform: translateY(0);
  }
}
/* Estilos para pantallas medianas (entre 768px y 1199px de ancho) */
@media screen and (min-width: 768px) and (max-width: 1199px) {
  .header_superior {
    padding: 10px;
  }
  header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 105px;
    background-color: rgba(0, 0, 0, 0.5); /* Color negro con opacidad (ajusta el último valor) */
  }
  .titulo {
    font-size: 16px;
  }
  .logo img {
    width: 120px;
    height: 80px;
  }
  .menu {
    padding: 0 10px;
  }
  nav ul li a {
    padding: 20px;
  }
  nav ul li ul {
    width: 150px;
    left: -5px;
  }
  .cuadrado {
    width: 100%;
    padding-left: 10px;
  }
}

@media screen and (max-width: 767px) {
  .header_superior {
    padding: 5px;
  }
  header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 95px;
    background-color: rgba(0, 0, 0, 0.5);
  }
  .titulo {
    font-size: 8px;
    text-align: center;
  }
  .logo img {
    width: 120px;
    height: 80px;
    margin-left: 10px;
  }
  .menu {
    padding: 0 5px;
  }

  nav ul li a {
    padding: 5px;
    font-size: 8px;
  }

  nav ul li a#selected { /* Estilo específico para el enlace con ID "selected" */
    /* Aplica estilos específicos para este enlace, como reducir su tamaño */
    font-size: 4px; /* Reducido el tamaño de fuente */
    padding: 25px; /* Reducido el padding */
  }

  nav ul li ul {
    width: 120px; /* Reducido el ancho de los elementos desplegables */
    display: flex;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 30px; /* Alineado con la parte inferior del menú principal */
    left: 0; /* Alineado con el borde izquierdo del menú principal */
    padding: 5px 0px; /* Reducido el padding del menú desplegable */
    visibility: hidden;
    opacity: 0;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
    z-index: 10;
    transition: all 300ms ease;
  }

  nav ul li:hover ul {
    visibility: visible;
    opacity: 1;
    top: 30px; /* Alineado con la parte inferior del menú principal */
  }

  nav ul li ul::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 8px solid transparent; /* Reducido el tamaño de la flecha */
    border-right: 8px solid transparent; /* Reducido el tamaño de la flecha */
    border-bottom: 8px solid white;
    position: absolute;
    top: -8px; /* Alineado con la parte superior del menú desplegable */
    left: 15px; /* Ajustado el posicionamiento de la flecha */
  }

  nav ul li ul li a {
    display: block;
    color: #000428;
    padding: 4px; /* Reducido el padding de los elementos del menú desplegable */
    padding-left: 8px; /* Reducido el padding izquierdo de los elementos del menú desplegable */
    margin-top: 4px; /* Reducido el margen superior entre elementos */
    font-size: 12px; /* Reducido el tamaño de fuente del menú desplegable */
    transition: all 300ms ease;
  }

  nav ul li ul li a:hover {
    background: #0074c7;
    color: white;
    transform: scale(1.0);
    padding-left: 12px; /* Aumentado el padding izquierdo en el hover */
    font-size: 8px; /* Reducido el tamaño de fuente en el hover */
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
  }
  .cuadrado {
    width: 100%;
    padding-left: 5px;
  }

  .loader-circle {
    border: 3px solid #073ebc; /* Reducido el grosor del círculo de carga */
    border-top: 3px solid #ff9d00; /* Reducido el grosor del círculo de carga */
    border-radius: 50%;
    width: 20px; /* Reducido el tamaño del círculo de carga */
    height: 20px; /* Reducido el tamaño del círculo de carga */
    animation: spin 2s linear infinite;
    margin-top: 5px; /* Reducido el espacio entre el texto y el círculo */
  }

  .loader-text {
    font-size: 20px; /* Reducido el tamaño de fuente del texto de carga */
    font-weight: bold;
    animation: fade 2s ease-in-out infinite;
  }
}
