/* =============================================================
   layout.css — Estructura y secciones principales
   
   Define cómo se organizan las grandes áreas del sitio:
   el hero, el nav, las secciones, el footer.
   ============================================================= */

/* ── Contenedor centrado reutilizable ────────────────────── */
.contenedor {
  max-width: 1220px;
  margin: 0 auto;
}

/* ── Sección genérica ────────────────────────────────────── */
.seccion {
  padding: var(--space-2xl) var(--space-lg);
  position: relative;
}
.seccion--blanca  { background: var(--color-white); }
.seccion--navy    { background: var(--color-navy); }

/* ── Etiqueta de sección (ej: "01 · Servicios") ─────────── */
.etiqueta-seccion {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-navy-40);
  margin-bottom: 22px;
}
.etiqueta-seccion::before {
  content: '';
  width: 22px;
  height: 1.5px;
  background: var(--color-red);
}
.etiqueta-seccion--clara { color: rgba(240,241,240,.58); }
[data-theme="dark"] .etiqueta-seccion--clara { color: rgba(14,17,23,.48); }

/* ── Títulos de sección (serif + sans combinados) ────────── */
.titulo-seccion .linea-serif {
  display: block;
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: clamp(42px, 4.4vw, 62px);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--color-navy);
}
.titulo-seccion .linea-sans {
  display: block;
  overflow: hidden;
  font-family: var(--font-sans);
  font-size: clamp(40px, 4.2vw, 60px);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: .97;
  color: var(--color-navy);
}
.titulo-seccion--claro .linea-serif,
.titulo-seccion--claro .linea-sans { color: var(--color-bg); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  padding-top: 62px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
/* Cuadrícula de fondo decorativa */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--color-navy-05) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-navy-05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 65% 75% at 50% 50%, black 30%, transparent 100%);
}
.hero__orb {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(234,105,105,.1) 0%,
    rgba(77,120,187,.06) 40%,
    transparent 70%);
  top: 50%;
  left: 35%;
  transform: translate(-50%,-50%);
  pointer-events: none;
  z-index: 0;
}
[data-theme="dark"] .hero__orb {
  background: radial-gradient(circle,
    rgba(234,105,105,.15) 0%,
    rgba(77,120,187,.1) 40%,
    transparent 70%);
}
.hero__grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  z-index: 1;
}
.hero__izquierda {
  padding: 52px 48px 52px 44px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--color-rule);
  justify-content: space-between;
}
.hero__derecha {
  padding: 52px 44px 52px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  position: relative;
}

/* Pastilla de estado (ej: "Studio · Disponibles") */
.hero__pastilla {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-navy-40);
  opacity: 0;
  animation: fadeUp .6s .1s ease forwards;
}
.hero__punto-verde {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-red);
  box-shadow: 0 0 0 3px rgba(234,105,105,.18);
  animation: pulso 2s infinite;
}

/* Título hero animado */
.hero__titulo { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 8px; }
.hero__linea-serif, .hero__linea-sans { overflow: hidden; display: block; }
.hero__linea-serif { line-height: 1; }
.hero__linea-sans  { line-height: .95; }
.hero__palabra-serif {
  font-family: var(--font-serif);
  font-size: clamp(64px, 6.8vw, 98px);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -.02em;
  color: var(--color-navy);
  display: inline-block;
  transform: translateY(108%);
  transition: transform 1s cubic-bezier(.16,1,.3,1);
}
.hero__palabra-sans {
  font-family: var(--font-sans);
  font-size: clamp(62px, 6.5vw, 94px);
  font-weight: 800;
  letter-spacing: -.055em;
  color: var(--color-navy);
  display: inline-block;
  transform: translateY(108%);
  transition: transform 1s cubic-bezier(.16,1,.3,1);
}
.hero__palabra-serif.visible,
.hero__palabra-sans.visible { transform: translateY(0); }

/* Línea acento roja bajo el título */
.hero__linea-acento {
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--color-red), transparent);
  border-radius: 2px;
  margin-top: 12px;
  transition: width 1.2s 1.1s cubic-bezier(.16,1,.3,1);
}
.hero__linea-acento.visible { width: 180px; }

/* Subtítulo y CTAs del hero */
.hero__sub {
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-gray);
  max-width: 420px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .8s .8s, transform .8s .8s;
}
.hero__sub.visible { opacity: 1; transform: none; }
.hero__ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .8s .95s, transform .8s .95s;
}
.hero__ctas.visible { opacity: 1; transform: none; }

/* Indicador de scroll */
.hero__scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-navy-40);
  opacity: 0;
  animation: fadeUp .6s 1.4s ease forwards;
}
.hero__scroll-track {
  position: relative;
  width: 28px;
  height: 1px;
  background: var(--color-navy-20);
}
.hero__scroll-punto {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-red);
  top: -1.5px;
  animation: scrollPunto 1.6s ease-in-out infinite;
}

/* Texto decorativo grande de fondo */
.hero__fondo-texto {
  position: absolute;
  bottom: -56px;
  right: -24px;
  font-family: var(--font-sans);
  font-size: clamp(260px, 24vw, 400px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.08em;
  color: var(--color-navy-05);
  pointer-events: none;
  user-select: none;
  transition: transform var(--transition-spring);
}

/* Pie del hero con logos de clientes */
.hero__pie {
  grid-column: 1 / -1;
  border-top: 1px solid var(--color-rule);
  padding: 18px var(--space-lg);
  display: flex;
  align-items: center;
  gap: 36px;
  background: rgba(240,241,240,.35);
  opacity: 0;
  transition: opacity .8s 1.1s;
  flex-wrap: wrap;
}
[data-theme="dark"] .hero__pie { background: rgba(14,17,23,.35); }
.hero__pie.visible { opacity: 1; }
.hero__pie-etiqueta {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-navy-40);
  white-space: nowrap;
}
.hero__pie-nombres {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.hero__pie-nombres span {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--color-navy-40);
}

/* ── MANIFESTO ────────────────────────────────────────────── */
.manifesto {
  background: var(--color-white);
  border-top: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
  overflow: hidden;
}
.manifesto__inner {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}
.manifesto__texto {
  padding: 80px 56px 80px var(--space-lg);
  border-right: 1px solid var(--color-rule);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.manifesto__linea { overflow: hidden; display: block; margin-bottom: 4px; }
.manifesto__frase {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(44px, 5.2vw, 76px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--color-navy);
  transform: translateY(110%);
  transition: transform 1s cubic-bezier(.16,1,.3,1);
}
.manifesto__frase.visible { transform: translateY(0); }
.manifesto__frase .sans {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 800;
  font-size: clamp(42px, 5vw, 73px);
  letter-spacing: -.055em;
}
.manifesto__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.stat-celda {
  padding: 40px 32px;
  border-bottom: 1px solid var(--color-rule);
  border-right: 1px solid var(--color-rule);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: background var(--transition-base);
}
.stat-celda:nth-child(2) { border-right: none; }
.stat-celda:nth-child(3) { border-bottom: none; }
.stat-celda:nth-child(4) { border-right: none; border-bottom: none; }
.stat-celda:hover { background: var(--color-bg-2); }
.stat-numero {
  font-family: var(--font-sans);
  font-size: clamp(52px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .95;
  color: var(--color-navy);
  margin-bottom: 10px;
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.stat-celda.contado .stat-numero { transform: scale(1.04); }
.stat-etiqueta { font-size: 13px; color: var(--color-gray); line-height: 1.5; }

/* ── MARQUEE (banda de scroll infinito) ───────────────────── */
.marquee {
  overflow: hidden;
  background: var(--color-navy);
  padding: 17px 0;
  cursor: default;
}
.marquee:hover .marquee__pista {
  animation-play-state: paused;
}
.marquee__pista {
  display: flex;
  width: max-content;
  animation: scrollMarquee 42s linear infinite;
}
.marquee__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 30px;
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
  font-weight: 300;
  color: rgba(240,241,240,.72);
  white-space: nowrap;
  transition: color 0.2s;
}
.marquee:hover .marquee__item { color: rgba(240,241,240,.92); }
.marquee__separador { color: var(--color-red); font-style: normal; font-size: 10px; opacity: .5; }

/* Dark mode: navy flips to light, so text must flip to dark */
[data-theme="dark"] .marquee__item { color: rgba(14,17,23,.62); }
[data-theme="dark"] .marquee:hover .marquee__item { color: rgba(14,17,23,.85); }

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 700;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
  transition: background .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav.activo {
  background: rgba(240,241,240,.94);
  backdrop-filter: blur(20px);
  border-color: var(--color-rule);
}
[data-theme="dark"] .nav.activo { background: rgba(14,17,23,.94); }

/* Footer siempre oscuro — todo su contenido usa rgba(240,241,240,...) */
[data-theme="dark"] footer { background: #12182a; }

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  padding: 2px 0;
}
.nav__logo-img {
  height: 30px;
  width: auto;
  display: block;
}
.logo--oscuro { display: none; }
[data-theme="dark"] .logo--claro { display: none; }
[data-theme="dark"] .logo--oscuro { display: block; }

/* Links de navegación */
.nav__links {
  display: flex;
  list-style: none;
}
.nav__links a {
  display: block;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-navy-40);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.nav__links a:hover,
.nav__links a.activo {
  color: var(--color-navy);
  background: var(--color-navy-05);
}

/* Controles de nav (idioma, tema, moneda) */
.nav__controles {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__controles-grupo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.boton-control {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-navy-40);
  background: transparent;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-body);
}
.boton-control:hover {
  color: var(--color-navy);
  border-color: var(--color-navy-20);
  background: var(--color-navy-05);
}

/* Botón CTA del nav */
.boton-nav {
  padding: 8px 20px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-bg);
  background: var(--color-navy);
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}
.boton-nav:hover { background: var(--color-navy-2); transform: translateY(-1px); }

/* Botón hamburguesa (mobile) */
.nav__hamburguesa {
  display: none;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.nav__hamburguesa span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: all .3s;
  transform-origin: center;
}
.nav__hamburguesa.abierto span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburguesa.abierto span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburguesa.abierto span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Menú mobile */
.menu-mobile {
  display: none;
  position: fixed;
  inset: 0;
  top: 62px;
  z-index: 690;
  background: var(--color-bg);
  flex-direction: column;
  padding: 32px 28px;
  border-top: 1px solid var(--color-rule);
  overflow-y: auto;
}
.menu-mobile.abierto { display: flex; }
.menu-mobile__controles {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-rule);
}
.menu-mobile a {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--color-navy-40);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-rule);
  transition: color var(--transition-base);
}
.menu-mobile a:hover { color: var(--color-navy); }
.menu-mobile a.cta-mobile {
  margin-top: 20px;
  padding: 16px;
  background: var(--color-navy);
  color: var(--color-bg);
  border-radius: var(--radius-md);
  text-align: center;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  border-bottom: none;
}

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  background: var(--color-navy);
  border-top: 1px solid rgba(240,241,240,.06);
  padding: 72px var(--space-lg) 36px;
}
.footer__grid {
  max-width: 1220px;
  margin: 0 auto;
}
.footer__columnas {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(240,241,240,.07);
}
.footer__logo-img {
  height: 24px;
  width: auto;
  display: block;
  margin-bottom: 14px;
}
.footer__descripcion {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(240,241,240,.58);
  max-width: 260px;
  margin-bottom: 22px;
}
.footer__redes { display: flex; gap: 7px; }
.footer__boton-red {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(240,241,240,.05);
  border: 1px solid rgba(240,241,240,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(240,241,240,.55);
  text-decoration: none;
  transition: all var(--transition-base);
}
.footer__boton-red:hover {
  background: var(--color-red);
  border-color: var(--color-red);
  color: #fff;
}
.footer__titulo-col {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(240,241,240,.48);
  margin-bottom: 18px;
}
.footer__lista { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__lista a {
  font-size: 13px;
  font-weight: 300;
  color: rgba(240,241,240,.58);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer__lista a:hover { color: rgba(240,241,240,.85); }
.footer__pie {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__copyright {
  font-size: 11.5px;
  font-weight: 300;
  color: rgba(240,241,240,.4);
}
.footer__legal { list-style: none; display: flex; gap: 18px; }
.footer__legal a {
  font-size: 11.5px;
  font-weight: 300;
  color: rgba(240,241,240,.4);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer__legal a:hover { color: rgba(240,241,240,.65); }

/* ── WhatsApp flotante ────────────────────────────────────── */
.wa-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 600;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.35);
  text-decoration: none;
  transition: all var(--transition-base);
}
.wa-btn:hover { transform: translateY(-3px) scale(1.08); }
.wa-btn svg { width: 26px; height: 26px; fill: #fff; }

/* ── Botón flotante "Disponibles" ─────────────────────────── */
.boton-flotante {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 600;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  background: var(--color-navy);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-bg);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(18,24,42,.4);
  transition: all var(--transition-base);
}
.boton-flotante:hover { transform: translateY(-2px); }
.boton-flotante__punto {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-red);
  animation: pulso 2s infinite;
  flex-shrink: 0;
}
