/* ==========================================================================
   LAYOUT — Header, navegación, footer y rejillas estructurales
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Header + navegación
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--blanco);
  border-bottom: 1px solid var(--gris-300);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px clamp(24px, 4.2vw, 64px);
  max-width: 1440px;
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.nav-wrap > .logo {
  flex: 0 0 auto;
  width: 290px;
  height: 86px;
  overflow: hidden;
}

.nav-wrap > .logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  display: block;
}

.logo-footer {
  background: var(--blanco);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

.logo-footer img {
  height: 64px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 600px) {
  .nav-wrap {
    padding: 8px 18px;
  }

  .nav-wrap > .logo {
    width: 168px;
    height: 58px;
  }

  .nav-wrap > .logo img {
    height: 100%;
  }
}

.main-nav ul {
  display: flex;
  gap: clamp(24px, 2.8vw, 42px);
}

.main-nav a {
  font-weight: 700;
  font-size: 14px;
  color: var(--gris-700);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--azul-900);
}

.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--amarillo);
}

.nav-wrap .nav-cta {
  display: none;
  min-width: 170px;
  justify-content: center;
}

.burger {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--azul-900);
  cursor: pointer;
  padding: 4px 8px;
}

@media (min-width: 900px) {
  .nav-wrap .nav-cta {
    display: inline-flex;
  }
}

@media (max-width: 899px) {
  .main-nav {
    display: none;
  }

  .burger {
    display: block;
  }
}

/* Menú móvil */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--blanco);
  border-top: 1px solid var(--gris-300);
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu a {
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--gris-300);
  font-weight: 600;
  color: var(--gris-700);
}

.mobile-menu .btn {
  margin: 16px var(--gutter);
  justify-content: center;
}

/* --------------------------------------------------------------------------
   2. Encabezado de sección
   -------------------------------------------------------------------------- */
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}

.section-head h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 800;
  color: var(--azul-950);
  margin-top: 10px;
}

.section-head p {
  margin-top: 14px;
  font-size: 15px;
  color: var(--gris-700);
}

/* --------------------------------------------------------------------------
   3. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--azul-950);
  color: #c7d1e8;
  padding-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand .logo {
  color: var(--blanco);
  margin-bottom: 12px;
}

.footer-brand .logo span {
  color: var(--amarillo);
}

.footer-brand p {
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 320px;
  color: #9fadd0;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  transition: background 0.2s, color 0.2s;
}

.socials a:hover {
  background: var(--amarillo);
  color: var(--azul-950);
}

.site-footer h2 {
  color: var(--blanco);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.site-footer li {
  margin-bottom: 10px;
}

.site-footer a:not(.logo):not(.socials a) {
  font-size: 13.5px;
  color: #9fadd0;
  transition: color 0.2s;
}

.site-footer a:not(.logo):hover {
  color: var(--amarillo);
}

.footer-contact li {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  color: #9fadd0;
  align-items: flex-start;
}

.footer-contact address {
  font-style: normal;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 12.5px;
  color: #7f8ec0;
  text-align: center;
}

.footer-bottom a {
  color: #7f8ec0;
}

.footer-bottom a:hover {
  color: var(--amarillo);
}

@media (min-width: 700px) {
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}
