/* Estilos generales */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    -webkit-font-smoothing: antialiased;  /* Mejora en MacOS */
    -moz-osx-font-smoothing: grayscale;   /* Mejora en MacOS */
    font-smooth: always;                  /* Mejora en Windows */
}

/* Botón hamburguesa: oculto en desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
  }

.menu-footer{
    display: none;
}
  

/* Encabezado */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 20px 50px 20px 20px;
    min-height: 48px;
}

.logo{
    max-height: 52px;
    margin-bottom: 4px;
    margin-top: -8px;
}

.logo h1 {
    font-size: 32px;
    color: #1c2b4a;
    margin: 0;
    font-family: adobe-caslon-w01-smbd, serif;
}

.logo span {
    font-weight: bold;
    font-family: system-ui, sans-serif;
    font-weight: 400;
}

.logo p {
    font-family: system-ui,sans-serif;
    font-size: 14px;
    letter-spacing: 0.5px;
    font-weight: 400;
    color: #233558e1;
    margin: 0;
}

/* Menú de navegación */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #1c2b4a;
    background-color: #ffffff;
    padding: 36px 30px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-left: -20px;
}

nav ul li a:hover {
    color: #000000;
    background-color: #ffffff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

/* Separador entre botones */
nav ul li:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 2px;  /* Grosor de la línea */
    height: 30px;  /* Altura de la línea */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #1c2b4a 50%, rgba(0, 0, 0, 0) 100%);
    margin-left: 0px;
    vertical-align: middle;
}

/* Sección principal (Hero) */
.hero {
    position: relative;
    /* Propuesta quitando header */
    /*height: 900px; */
    height: 850px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cubre toda la pantalla sin deformarse */
    z-index: -1;       /* Envía el video detrás del contenido */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 60, 98, 0.3); /* Azul con opacidad */
    /*background-color: rgba(119, 157, 215, 0.3); /* Azul con opacidad */
    z-index: 0;
}

.hero .content {
    background: rgba(255, 255, 255, 0.85);
    z-index: 1;
    width: 800px;
    height: 370px;
    padding: 30px 0 20px 0;
    margin: 0 auto;
    border-radius: 0;
    color: #113c62;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero h2 {
    margin: 0;
    font-family: adobe-caslon-w01-smbd, serif;
    font-size: 97px;
    font-weight: 300;
}

.hero h2 span {
    font-family: system-ui,sans-serif;
    font-size: 97px;
}

.hero hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, #1c2b4a 50%, rgba(0, 0, 0, 0) 100%);
    /*margin: 20px auto;*/
    width: 80%;
}

.hero h3{
    font-size: 30px;
    color:#113c62;
    font-family: system-ui;
    font-weight: 300;
    margin: 0;
}

.hero .description {
    font-family: system-ui;
    font-size: 25px;
    font-weight: 200;
    line-height: 1.2em;
    text-align: center;
    color: #63666a;
    min-height: 84px;
    width: 530px;
    letter-spacing: 0em;
    padding: 10px 0 5px 0;
    margin: 0;
}

.hero .button {
    background-color: #113c62;
    text-decoration: none; 
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.3s ease;
}

.hero .button:hover {
    background-color: #326796;
    color: #ffffff;
}

/* Pie de página */
footer {
    background-color: #113c62;
    color: #ffffff;
    text-align: center;
    padding: 30px 20px;
    min-height: 200px;
    line-height: normal;
}

footer h3 {
    font-size: 36px;
    margin: 5px 0 0 0;
    color: #d7dbd6;
    font-family: adobe-caslon-w01-smbd, serif;
    font-weight: 300;
}

footer h3 span {
    font-family: system-ui, sans-serif;
}

footer p {
    margin-top: 0px;
    font-family: monospace, sans-serif;
    font-size: 13px;
    color: #d7dbd6;
    letter-spacing: 0em;
}

#space {
    margin: 57px 0px -9px calc((100% - 980px)* 0.5);
}

#copyright {
    margin-top: 40px;
    font-size: 13px;
    letter-spacing: 0;
}

/* =========================
   MEDIA QUERIES
   Ajustes para pantallas
   más pequeñas
   ========================= */

/* Ejemplo de media query para pantallas de hasta 992px */
@media (max-width: 992px) {
    header {
        padding: 15px 20px;
    }

    nav ul li a {
        font-size: 14px;
        padding: 20px 15px;
    }

    .hero {
        height: 600px; /* Reducimos un poco la altura */
    }

    .hero .content {
        width: 80%;
        height: auto; /* Dejar que la altura crezca de acuerdo al contenido */
        padding: 20px 0;
    }

    .hero h2 {
        font-size: 70px;
    }

    .hero h2 span {
        font-size: 70px;
    }

    .hero hr {
        width: 60%;
    }

    .hero .description {
        width: 70%;
        font-size: 20px;
    }

    .hero .button {
        font-size: 16px;
        padding: 12px 24px;
    }

    footer h3 {
        font-size: 28px;
    }
}

/* Ejemplo de media query para pantallas de hasta 768px */
@media (max-width: 768px) {
    /* Mostrar el botón hamburguesa */
    .menu-toggle {
        display: block; /* Se muestra en móviles */
        position: absolute;
        top: 20px;
        /* Estado cerrado: ubicado en la esquina superior derecha */
        left: calc(100% - 60px); /* 100% - (20px de margen + 40px del ancho del botón) */
        width: 40px;  /* Ancho fijo para poder calcular posiciones */
        height: 40px; /* Altura fija (opcional) */
        background: none;
        border: none;
        font-size: 28px;
        cursor: pointer;
        color: #113c62; /* Color azul */
        transition: all 0.3s ease;
        z-index: 1100;
      }

      .menu-toggle.open {
        position: fixed;
        transition: all 0.3s ease;
        top: 10px; /* Puedes ajustar el margen superior si lo deseas */
        left: calc(20% + 15px); /* Dentro del menú (el menú ocupa 80%, por lo que su borde izquierdo está en el 20% del viewport) */
        color: #ffffff; /* Cambia a blanco para contrastar con el fondo del menú */
      }
  
    /* El header en columna */
    header {
        position: relative; /* Para que el overlay se sitúe correctamente en la pila */
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
      }
  
      
    /* Ocultar el nav por defecto */
    nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;             /* El menú ocupará el 80% de la pantalla */
        height: 95%;
        background-color: #2a4d69; /* Color azulado/petróleo (ajusta según tu gusto) */
        transform: translateX(100%); /* Inicia oculto a la derecha */
        transition: transform 0.3s ease;
        z-index: 1000;
        padding-top: 60px; /* Espacio superior, por ejemplo, para el ícono o márgenes */

        display: flex;
        flex-direction: column;
      }
  
    nav.open {
        transform: translateX(0);
      }

    nav .menu-footer {
        display: block;
        position: relative;
        margin-top: auto;
        margin-bottom: 30px;
        padding: 20px;
        text-align: right;
        color: #ffffff;
    }

    nav .menu-footer h3 {
        margin: 0;
        font-size: 22px;
        font-weight: 100;
        font-family: adobe-caslon-w01-smbd, serif;
    }

    nav .menu-footer h3 span{
        font-weight: 100;
        font-family: sans-serif;
    }

    nav .menu-footer p {
        margin: 0;
        font-size: 10px;
    }

    nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
      }
  
    nav ul li {
        width: 100%;
        margin-left: 60px;
        margin-bottom: 20px;
    }
  
    nav ul li:not(:last-child)::after {
        content: "";
        display: inline-block;
        width: 40%;  /* Grosor de la línea */
        height: 2px;  /* Altura de la línea */
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #1c2b4a 50%, rgba(0, 0, 0, 0) 100%);
        margin-left: -10px;
        vertical-align: middle;
    }
  
    nav ul li a {
        display: block;
        width: 100%;
        padding: 15px 15px;
        text-decoration: none;
        color: #ffffff;
        background-color: transparent;
        font-size: 16px;
        font-weight: bold;
        border-bottom: 0px solid rgba(255, 255, 255, 0.2);
        transition: background-color 0.3s ease;
    }

    nav ul li a:hover {
        background-color: rgba(255, 255, 255, 0.1);
      }

    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        z-index: 900;
    }

    .menu-overlay.active {
        display: block;
    }
  
    .hero {
        height: 500px; /* Ajustar la altura en móviles */
    }

    .hero .content {
        width: 90%;
        height: auto;
    }

    .hero h2 {
        font-size: 50px;
    }

    .hero h2 span {
        font-size: 50px;
    }

    .hero h3{
        font-size: 30px;
    }

    .hero hr {
        width: 80%;
    }

    .hero .description {
        width: 100%;
        font-size: 18px;
    }

    .hero .button {
        font-size: 16px;
        padding: 10px 20px;
    }

    footer {
        min-height: 180px;
        padding: 20px;
    }

    footer h3 {
        font-size: 24px;
    }

    footer p {
        font-size: 14px;
    }
}

/* Ejemplo de media query para pantallas de hasta 480px (muy móviles) */
@media (max-width: 480px) {
    .hero {
        height: 600px;
    }

    .hero h2 {
        font-size: 40px;
    }

    .hero h2 span {
        font-size: 40px;
    }

    .hero h3{
        font-size: 18px;
    }

    .hero .description {
        font-size: 16px;
    }

    .hero .button {
        font-size: 14px;
        padding: 8px 16px;
    }

    footer h3 {
        font-size: 27px;
    }

    footer p {
        font-size: 10px;
    }
}

/* Transicion entre paginas*/
#fade-content {
    animation: fadeInAnimation ease-out 1s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}
@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}
