/*
  02-layout.css — 224live
  Nav fija, menú móvil y footer. Componentes de layout presentes en todas las páginas.
  FIEL al HTML original salvo el bloque marcado "MEJORA R7" (contraste de la nav
  transparente sobre el hero claro de Home).
*/

/* ─── NAV ────────────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  height: 72px;
  display: flex;
  align-items: center;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;

  /* ── HEADER INTEGRADO PREMIUM (R7 ampliado) ──
     Estado inicial: franja glass cálida a todo el ancho basada en --bg
     (#F8F5F0), translúcida, con blur suave y un hairline inferior muy fino.
     Da al logo + nav + CTA una superficie común legible sobre las dos zonas
     del hero (editorial clara e imagen), sin blanco opaco plano. */
  background: rgba(248, 245, 240, 0.72);
  -webkit-backdrop-filter: blur(10px) saturate(115%);
  backdrop-filter: blur(10px) saturate(115%);
  box-shadow: 0 1px 0 rgba(226, 221, 214, 0.55);
}

/* Estado sólido (scroll en home, siempre en páginas interiores):
   la franja se asienta a fondo opaco --bg con hairline pleno. */
nav.solid {
  background: var(--bg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 1px 0 var(--line);
}

/* Aviso legal: nav sticky en lugar de fixed */
.page-aviso-legal nav {
  position: sticky;
  top: 0;
  background: var(--bg);
  box-shadow: 0 1px 0 var(--line);
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* ─── MARCA (logo + nombre) ─────────────────────────────────────────────── */
.brand {
  display: flex;
  align-items: center;
  gap: 0;
}

.brand-logo {
  height: 52px;
  width: auto;
}

.brand-logo-text {
  display: flex;
  align-items: baseline;
  gap: 0;
  font-family: var(--lato);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
  margin-left: 10px;
  letter-spacing: -0.01em;
}

.brand-logo-text .n { color: var(--gold); }
.brand-logo-text .l {
  color: var(--blue);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.02em;
}

/* ─── ENLACES NAV ────────────────────────────────────────────────────────── */
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t2);
  transition: color .2s;
}

.nav-links a:hover       { color: var(--text); }
.nav-links a.active      { color: var(--text); }

.nav-links a.active {
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
}

/* ════════════════════════════════════════════════════════════════════════
   MEJORA R7 AMPLIADO — Contraste + dirección visual del header sobre el hero.
   Original: nav transparente con texto blanco (rgba(255,255,255,.65)) sobre
   el lado claro del hero (#F8F5F0) → enlaces casi ilegibles (captura 083551).
   Solución: header integrado premium (franja glass cálida, arriba) + enlaces
   OSCUROS legibles sobre las dos zonas del hero. Sigue pasando a sólido al
   scroll (estado .solid intacto). No cambia branding, layout ni el
   comportamiento documentado; el CTA "Hablemos" se mantiene naranja dominante.
   ════════════════════════════════════════════════════════════════════════ */
nav:not(.solid) .brand-logo-text .l { color: var(--blue); }
nav:not(.solid) .nav-links a        { color: var(--t2); }
nav:not(.solid) .nav-links a:hover  { color: var(--text); }
nav:not(.solid) .hbg span           { background: var(--text); }

/* ─── CTA NAV ───────────────────────────────────────────────────────────── */
.nav-cta {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 24px;
  background: var(--orange);
  color: #fff;
  border-radius: 1px;
  transition: opacity .2s, transform .15s;
}

.nav-cta:hover {
  opacity: .88;
  transform: translateY(-1px);
}

/* ─── HAMBURGUESA (móvil) ───────────────────────────────────────────────── */
.hbg {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hbg span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
}

/* ─── MENÚ MÓVIL ────────────────────────────────────────────────────────── */
.mmenu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 64px 24px 36px;
  overflow-y: auto;
}

.mmenu.open { display: flex; }

/* Logo (colibrí) en la cabecera del menú móvil */
.mm-brand { display: inline-flex; margin-bottom: 20px; }
.mm-brand img { width: 64px; height: auto; display: block; }

.mmenu a {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  padding: 6px 0;
}

.mmenu a.active { color: var(--orange); }

/* CTA "Hablemos" dentro del menú móvil */
.mm-cta {
  margin-top: 18px;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 13px 30px;
  background: var(--orange);
  color: #fff !important;
  border-radius: 1px;
}

.mm-x {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  color: var(--t2);
}

/* ─── FOOTER ────────────────────────────────────────────────────────────── */
footer {
  background: var(--bg-dark);
  padding: 44px 0;
  border-top: 1px solid #1e1e22;
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.foot-brand img {
  height: 28px;
  opacity: 0.8;
}

.foot-brand-txt {
  font-size: 1.1rem;
  font-weight: 900;
}

.foot-brand-txt .n { color: var(--gold); }
.foot-brand-txt .l {
  color: #7aaddf;
  font-weight: 300;
  font-style: italic;
}

.foot-links {
  display: flex;
  gap: 28px;
  list-style: none;
  flex-wrap: wrap;
}

.foot-links a {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a8a96;          /* MEJORA R7/A11Y: subido desde #3a3a42 (apenas legible sobre fondo oscuro) */
  transition: color .2s;
}

.foot-links a:hover { color: #cfcfd6; }

.foot-copy {
  font-size: 0.68rem;
  color: #6a6a72;          /* MEJORA A11Y: subido desde #2e2e36 (invisible sobre #111214) */
}
