/* =========================
   RESET
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   HEADER (tal como lo tenías)
   ========================= */
header {
  background-color: white;
  color: rgb(0, 54, 98);
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 20px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  transition: all 0.3s ease-in-out;
  margin: 0;
  margin-bottom: 50px;
}

header.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.menu-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 20px;
  padding: 0 20px;
  box-sizing: border-box;
}

.logo {
  height: 80px;
  transition: height 0.3s ease-in-out;
  order: 0;
}

header.scrolled .logo {
  height: 50px;
}

nav ul {
  list-style-type: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0;
  padding: 0;
  width: auto;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: rgb(0, 54, 98);
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  transition: color 0.3s;
  font-family: 'Lucida Sans', Geneva, Verdana, sans-serif;
}

nav ul li a:hover {
  color: rgba(0, 54, 98, 0.7);
}

nav ul li a.active {
  color: rgb(254, 200, 0);
  font-weight: bold;
}

.menu-icon {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: rgb(0, 54, 98);
  order: 1;
}

/* Media Queries header */
@media (max-width: 1024px) {
  .menu-icon {
    display: block;
  }

  .menu-container {
    justify-content: space-between;
    padding: 1rem 20px;
  }

  nav {
    display: none;
    position: absolute;
    top: 90px;
    right: 10px;
    width: 250px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 1rem 20px;
    border-radius: 8px;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  nav ul li {
    width: 100%;
    margin: 10px 0;
  }

  nav ul li a {
    font-size: 18px;
    text-align: left;
  }

  nav.show {
    display: flex;
    flex-direction: column;
  }

  .logo {
    height: 60px;
  }
}

@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  .menu-container {
    flex-direction: row;
    justify-content: space-between;
  }

  nav {
    width: 250px;
    right: 10px;
  }

  .logo {
    height: 50px;
  }
}

/* =========================
   HERO / MAIN IMAGE (ARREGLADO)
   Objetivo:
   - que NO lo tape el header fixed
   - que NO deje hueco abajo
   - que se vea bien en desktop y móvil
   ========================= */

/* Ajusta estas alturas si tu header real es distinto */
:root {
  --header-h-desktop: 120px;
  --header-h-mobile: 90px;
}

.main-image {
  position: relative;
  width: 100%;
  /* Empuja el hero debajo del header fijo */
  margin-top: var(--header-h-desktop);

  /* Altura visible del hero (restando el header) */
  height: calc(80vh - var(--header-h-desktop));
  min-height: 300px;

  overflow: hidden;
  background-color: rgb(0, 54, 98);

}

/* La clave: el <img> rellena el contenedor siempre */
.main-image img {
  position: absolute;
  inset: 0;                  /* top/right/bottom/left:0 */
  width: 100%;
  height: 100%;
  object-fit: cover;          /* llena (sin huecos) */
  object-position: center;    /* evita cortar demasiado arriba */
  display: block;
  z-index: 1;
}

/* Overlay */
.main-image .overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(30, 35, 55, 0.6);
  z-index: 2;
}

/* Texto */
.main-image .text-content {
  position: absolute;
  bottom: 3rem;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: left;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande',
    'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  z-index: 3;
}

.main-image .text-content h1 {
  margin: 0 0 clamp(10px, 2vw, 20px);
  font-size: 2.5rem;
  line-height: 1.2;
}

.main-image .text-content p {
  margin: 0;
  font-size: 1.2rem;
  text-align: justify;
  margin-top: 20px;
}

/* Ajustes responsivos */
@media (max-width: 1024px) {
  .main-image .text-content {
    max-width: 100%;
    padding: 0 20px;
  }
}

/* MÓVIL */
@media (max-width: 768px) {
  .main-image {
    margin-top: var(--header-h-mobile);
    height: calc(60vh - var(--header-h-mobile));
    min-height: 320px; /* ajusta si lo quieres más alto */
  }

  .main-image img {
    object-fit: cover;
    object-position: center; /* prueba center bottom si lo importante está abajo */
  }

  .main-image .text-content {
    width: 100%;
    bottom: 1rem;
    padding: 0 12px;
  }

  .main-image .text-content h1 {
    font-size: 1.4rem;
  }

  .main-image .text-content p {
    padding: 0;
    font-size: 12px;
    line-height: 1.4;
    margin-top: 10px;
  }
}



/* ======= SECCIÓN PRINCIPAL (IMAGE-TEXT-SECTION) ======= */
.image-text-sectionC1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    margin: 1rem auto;
    max-width: 1220px;
    padding: 0 10px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

/* Contenedor interno */
.image-text-containerC1 {
    display: flex;
    flex-direction: row;
    align-items: center; /* Alinea el contenido verticalmente */
    justify-content: space-between; /* Espaciado uniforme */
    gap: 1rem;
    width: 100%;
}


/* Contenedor de texto */
.text-contentC1 {
    flex: 1;
    max-width: 45%;
    text-align: justify;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Alinea el texto verticalmente */
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

/* Título */
.text-contentC1 h2 {
    font-size: 25px;
    margin-bottom: 1rem;
    color: rgb(0, 54, 98);
    text-align: justify;
}

/* Párrafo */
.text-contentC1 p {
    line-height: 2;
    color: gray;
    text-align: justify;
    font-size: 16px;
}

/* Contenedor de imagen */
.image-contentC1 {
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Imagen cuadrada */
.image-contentC1 img {
    margin-top: 2rem;  /* Margen superior */
    width: 100%;
    max-width: 510px;
    height: 510px;
    object-fit: cover;
    border-radius: 5px;
}

/* ======= RESPONSIVIDAD ======= */
@media (max-width: 1024px) {
    .image-text-sectionC1 {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }

    .image-text-containerC1 {
        flex-direction: column-reverse;
        align-items: center;
    }

    .text-contentC1 {
        max-width: 100%;
        text-align: left;
        padding: 1rem;
    }

    .image-contentC1 {
        max-width: 94%;
        justify-content: center;
    }

    .image-contentC1 img {
        max-width: 94%;
        height: auto;
    }
}


/* ======= SECCIÓN NUEVA (IMAGE LEFT - TEXT RIGHT) ======= */
.new-section {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Asegura que la imagen y el texto tengan la misma altura */
    gap: 2rem;
    margin-top: 2rem;  /* Margen superior */
    margin-bottom: 5rem;  /* Margen inferior aumentado */
    margin-left: auto;
    margin-right: auto;
    max-width: 1220px;
    padding: 0 20px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

/* Contenedor de imagen */
.new-section .image-content {
    flex: 1;
    max-width: 47%;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Asegura alineación arriba */
}

/* Imagen cuadrada sin recorte */
.new-section .image-content img {
    margin-top: 2rem;  /* Margen superior */
    width: 100%;
    max-width: 500px;
    height: 470px;
    object-fit: cover;
}
/* Imagen cuadrada sin recorte */
.new-section .image-contents img {
    margin-top: 2rem;  /* Margen superior */
    width: 100%;
    max-width: 500px;
    height: 470px;
    object-fit: contain;
}
/* Contenedor de texto */
.new-section .text-content {
    flex: 1;
    max-width: 48%;
    text-align: left;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Asegura que el título quede alineado arriba */
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

/* Título alineado con la imagen */
.new-section .text-content h2 {
    font-size: 25px;
    margin-bottom: 1rem;
    color: rgb(0, 54, 98);
}

/* Texto */
.new-section .text-content p {
    line-height: 2;
    color: gray;
    text-align: justify;
    font-size: 16px;
}

/* ======= RESPONSIVIDAD ======= */
@media (max-width: 1024px) {
    .new-section {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }

    .new-section .image-content {
        max-width: 100%;
        justify-content: center;
    }

    .new-section .image-content img {
        max-width: 94%;
        height: auto;
    }

    .new-section .text-content {
        max-width: 95%;
        text-align: left;
        padding: 1rem;
        justify-content: center; /* Centra el texto en dispositivos móviles */
    }
}

/* Footer */
footer {
    background-color: rgb(0, 54, 98);
    color: #fff;
    padding: 20px 0; /* Espaciado uniforme */
    margin: 0; /* Elimina márgenes externos */
    width: 100%; /* Asegura que ocupe todo el ancho visible */
    position: relative; /* Posicionamiento adecuado */
    left: 0; /* Alinea al borde izquierdo */
    box-sizing: border-box; /* Incluye paddings y bordes en el cálculo del ancho */
    display: flex;
    min-height: 250px; /* Ajusta según la altura del footer */
    flex-direction: column; /* Alinea contenido verticalmente */
    align-items: center; /* Centra horizontalmente el contenido */
    overflow: hidden; /* Evita desbordamientos accidentales */
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

/* Contenedor principal del contenido del footer */
.footer-content {
    display: flex;
    justify-content: space-between; /* Distribuye uniformemente las secciones */
    align-items: flex-start;
    flex-wrap: wrap; /* Permite ajustar en pantallas pequeñas */
    width: 100%; /* Ocupa todo el ancho disponible */
    max-width: 1200px; /* Ajusta el ancho máximo en pantallas grandes */
    margin: 0; /* Centra el contenido horizontalmente */
    padding: 0 20px; /* Espaciado interno */
    box-sizing: border-box; /* Incluye paddings en el cálculo del ancho */
    gap: 10px; /* Espaciado entre las secciones */
}

/* Logo del footer */
.footer-section.logo {
    flex-grow: 2; /* Más espacio proporcional */
    flex-basis: 20%; /* Tamaño base mayor */
    min-width: 200px; /* Asegura un tamaño mínimo */
    text-align: left; /* Alinea el contenido */
}

.footer-logo {
    width: 100%; /* Ocupa todo el ancho disponible del contenedor */
    max-width: 150px; /* Tamaño máximo reducido */
    height: auto; /* Mantiene las proporciones */
    margin: 40px auto 20px auto; /* Agrega un margen superior de 20px, conserva el margen inferior de 70px */
}

/* Sección de contacto más grande */
.footer-section.contacto {
    flex-grow: 2; /* Más espacio proporcional */
    flex-basis: 35%; /* Tamaño base más grande */
    min-width: 300px; /* Asegura un tamaño mínimo */
    text-align: left; /* Alinea el texto a la izquierda */
    margin: 0 10px; /* Espaciado horizontal entre secciones */
}

/* Sección "Follow Us" */
.footer-section.follow {
    flex-grow: 1;
    flex-basis: 5%;
    min-width: 150px;
    text-align: center;
    margin: 0;
}

/* Contenedor de iconos de redes sociales */
.footer-section.follow .social-icons {
    display: flex; /* Mantiene en línea */
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Alinea verticalmente */
    gap: 0; /* Elimina espacio entre elementos flex */
}

/* Iconos de redes sociales */
.footer-section.follow img {
    width: 20px;
    height: auto;
    vertical-align: middle;
    margin: 0; /* Asegura que no tenga margen */
    padding: 0; /* Elimina cualquier relleno */
}
.footer-section.follow .social-icons a {
    margin: 7px;
    padding: 0;
    display: flex; /* Asegura alineación perfecta */
}

/* Sección de legalidad */
.footer-section.legality {
    flex-grow: 1; /* Proporción estándar */
    flex-basis: 15%; /* Tamaño base */
    min-width: 150px; /* Asegura un tamaño mínimo */
    text-align: left; /* Justifica el texto a la izquierda */
    margin: 0 20px; /* Espaciado horizontal entre secciones */
}
/* Margen específico para Follow y Legality */
.footer-section.follow h3,
.footer-section.legality h3 {
    margin: 10px 30px; /* Margen superior/inferior de 10px y lateral de 45px */
}

/* Mantener el margen separado para Contacto */
.footer-section.contacto h3 {
    margin: 10px 0; /* Margen superior/inferior de 10px, sin margen lateral */
}
/* Títulos dentro de las secciones */
.footer-section h3 {
    font-size: 18px; /* Tamaño de fuente ajustado */
    text-align: justify; /* Centrado */
    color: white;
}

/* Texto dentro de las secciones */
.footer-section p {
    font-size: 14px; /* Tamaño de fuente ajustado */
    line-height: 1.6; /* Altura de línea para legibilidad */
    margin: 0; /* Elimina márgenes */
    text-align: justify; /* Justifica el texto */
}
.footer-pdf {
    width: 100%;
    display: flex;
    justify-content: flex-end;  /* lo manda a la derecha */
    align-items: center;
    padding-right: 15px;        /* mismo padding que el copy */
    margin: 5px 0;
}

.footer-pdf a {
    color: white;
    font-size: 14px;
    text-decoration: none;
}

.footer-pdf a:hover {
    text-decoration: underline;
}


.footer-copy {
    width: 100%;
    display: flex;
    justify-content: flex-end; /* Alinea el texto a la derecha */
    align-items: center;
    padding-right: 15px; /* Mantiene el margen derecho */
    box-sizing: border-box;
    white-space: nowrap; /* Evita que el texto se divida en varias líneas */
    font-size: 12.5px;
    margin-bottom: 0 !important;
}
.footer-copy p {
    margin-bottom: 0 !important; /* Asegura que los párrafos dentro no tengan margen inferior */
}

/* Enlaces en el footer */
.footer-section a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items:flex-end;
    justify-content:flex-start; /* Centra los enlaces */
    margin: 5px 30px; /* Espaciado entre enlaces */
}

.footer-section a:hover {
    text-decoration: underline; /* Subraya al pasar el mouse */
}

@media (max-width: 1024px) {
    .footer-content {
        display: flex;
        flex-wrap: wrap; /* Permite que las secciones se ajusten */
        justify-content: center; /* Centra el contenido horizontalmente */
        gap: 20px; /* Espaciado uniforme entre filas */
    }

    /* Logo y Contacto en la parte superior */
    .footer-section.logo {
        flex-basis: calc(50% - 10px); /* Ocupa la mitad del espacio horizontal */
        order: 1; /* Queda en la parte superior */
        text-align: center; /* Centra el contenido */
    }

    .footer-section.contacto {
        flex-basis: calc(50% - 10px); /* Ocupa la mitad del espacio horizontal */
        order: 2; /* Queda junto al logo en la fila superior */
        text-align: justify; /* Mantiene el texto alineado a la izquierda */
    }

    /* Follow y Legality juntas en la parte inferior */
    .footer-section.follow {
        flex-basis: calc(50% - 10px); /* Ocupa la mitad del espacio horizontal */
        order: 3; /* Aparece debajo del logo y contacto */
        text-align: justify; /* Centra el contenido */
    }

    .footer-section.legality {
        flex-basis: calc(50% - 10px); /* Ocupa la mitad del espacio horizontal */
        order: 4; /* Aparece junto a Follow */
        text-align: justify; /* Centra el contenido */
    }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column; /* Cambia a disposición de una columna */
        align-items: center; /* Centra las secciones */
        padding: 0 10px; /* Reduce el padding lateral */
        gap: 20px; /* Espaciado entre secciones */
    }

    .footer-section {
        flex-basis: 100%; /* Ocupa todo el ancho disponible */
        text-align: center; /* Centra el contenido */
        margin: 10px 0; /* Espaciado uniforme entre secciones */
    }

    .footer-logo {
        margin: 20px auto; /* Asegura que el logo tenga margen superior e inferior */
    }
}
@media (max-width: 768px) {
    .footer-copy {
        order: 5; /* Asegura que se posicione al final */
        justify-content: center; /* Centra el texto en móviles */
        padding: 10px 0; /* Espaciado superior e inferior */
    }
}
