/* =====================================================
   César González Photography — estilos
   Estética: fondo negro, tipografía grande, mucho aire.
   Mobile-first: los valores base son para móvil y se
   amplían en las media queries.
   ===================================================== */

/* Tipografía Inter (variable, 300–700) alojada en el propio servidor */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../assets/fonts/inter.woff2) format("woff2");
}

:root {
  --bg: #000;
  --bg-2: #0a0a0c;
  --bg-3: #141416;
  --fg: #f5f5f7;
  --fg-2: #c9c9ce;
  --muted: #86868b;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #f5f5f7;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Tipografía fluida: se escala sola entre móvil y escritorio */
  --t-hero: clamp(2.75rem, 11vw, 7.5rem);
  --t-h2: clamp(2rem, 6vw, 4.5rem);
  --t-manifesto: clamp(1.6rem, 5vw, 3.75rem);
  --t-lead: clamp(1.05rem, 1.6vw, 1.35rem);
  --t-body: clamp(0.98rem, 1.2vw, 1.1rem);

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --section: clamp(5rem, 14vw, 11rem);
  --nav-h: 56px;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Utilidades ---------- */
.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95em 1.7em;
  border-radius: 999px;
  background: var(--fg);
  color: #000;
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid var(--fg);
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); background: #fff; }
.btn--small { padding: 0.55em 1.1em; font-size: 0.85rem; }
.btn--ghost { background: transparent; color: var(--fg); border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.08); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .3em 0; /* área táctil cómoda en móvil */
  font-weight: 500;
  color: var(--fg);
}
.link-arrow::after {
  content: "→";
  transition: transform .25s ease;
}
.link-arrow:hover::after { transform: translateX(4px); }

.section-head {
  text-align: center;
  padding: 0 var(--gutter);
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}
.section-head h2 { font-size: var(--t-h2); }
.section-head--left { text-align: left; padding: 0; }

/* Elementos que se revelan al hacer scroll (estado inicial) */
[data-reveal] { opacity: 0; transform: translateY(32px); }
.no-js [data-reveal], .reduced-motion [data-reveal] { opacity: 1; transform: none; }

/* ---------- PORTADA: la firma se escribe sola ---------- */
.intro {
  position: fixed; inset: 0; z-index: 300; background: #000;
  display: grid; place-items: center;
  animation: intro-out .7s ease 8s forwards;           /* solo de seguridad: si el script no arranca, la portada se retira a los 8 s */
  pointer-events: none;
}
.intro__logo { width: min(74vw, 520px); }
.intro__svg { display: block; width: 100%; height: auto; overflow: visible; }
/* Cada trazo de la firma (César · G · onzález · línea · P · hotography) empieza oculto y se escribe de izquierda a derecha */
.intro__svg .g { clip-path: inset(-5% 100% -5% -2%); }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
.no-intro .intro { display: none; }
.intro.is-done { display: none; }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(0,0,0,.55);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(0,0,0,.75); }

.nav__inner {
  height: var(--nav-h);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__logo { flex: 0 0 auto; }
.nav__logo img { height: 30px; width: auto; max-width: none; }

.nav__links {
  display: none; /* móvil: desplegable */
}
.nav__links a {
  position: relative;
  font-size: 0.86rem;
  white-space: nowrap;
  color: var(--fg-2);
  padding: .35em 0;
  transition: color .2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--fg); transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.nav__links a:hover { color: var(--fg); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--fg); }
.nav__links a:active { transform: translateY(1px); }

.nav__right { display: flex; align-items: center; gap: 0.9rem; }
.nav__right .btn--small { display: none; }

.lang { display: flex; align-items: center; gap: .3rem; font-size: .8rem; }
.lang__btn {
  background: none; border: 0; padding: .2rem .1rem;
  color: var(--muted); font: inherit; font-weight: 500; cursor: pointer;
  letter-spacing: .04em;
}
.lang__btn.is-active { color: var(--fg); }
.lang__sep { color: var(--muted); }
.lang--mobile { display: none; }

.nav__burger {
  width: 40px; height: 40px;
  background: none; border: 0; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  margin-right: -10px;
}
.nav__burger span {
  display: block; width: 20px; height: 1.5px; background: var(--fg);
  transition: transform .3s ease, opacity .3s ease;
}
.nav.is-open .nav__burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav.is-open .nav__burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* Menú móvil abierto: el propio header crece a pantalla completa
   (backdrop-filter impide usar position:fixed en los hijos) */
.nav.is-open { height: 100dvh; background: rgba(0,0,0,.92); }
.nav.is-open .nav__links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  padding: 1.5rem var(--gutter) 2.5rem;
  gap: 1.1rem;
  overflow-y: auto;
}
.nav.is-open .nav__links a { font-size: 1.45rem; font-weight: 500; color: var(--fg); }
.nav.is-open .lang--mobile { display: flex; margin-top: auto; font-size: 1rem; }
body.menu-open { overflow: hidden; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 3rem) var(--gutter) 5rem;
  text-align: center;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero__bg img, .hero__media {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  transform: scale(1.08);
  will-change: transform;
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 40%, rgba(0,0,0,.85) 100%);
}
.hero__content {
  position: relative; z-index: 1;
  max-width: 900px;
  display: flex; flex-direction: column; align-items: center;
}
.hero__logo {
  width: min(78vw, 420px);
  height: auto;
  margin-bottom: 2.5rem;
}
.hero__eyebrow {
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-2); margin-bottom: 1.25rem;
}
.hero__countdown {
  min-height: 2.1em; min-width: 12em; visibility: hidden;
  display: inline-flex; align-items: center; gap: .5em;
  margin: -.25rem 0 1.5rem; padding: .45em 1em; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: .8rem; letter-spacing: .04em; color: var(--fg);
}
.hero__countdown.is-ready { visibility: visible; }
.hero__countdown::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ff6a3d; box-shadow: 0 0 10px #ff6a3d; }
.contact__countdown { margin-top: 1.25rem; color: var(--fg); font-size: var(--t-lead); font-weight: 500; }
.hero__title {
  font-size: var(--t-hero);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: .98;
}
.hero__title-sub { display: block; font-size: .5em; font-weight: 500; color: var(--fg-2); margin-top: .15em; letter-spacing: -.02em; }
.hero__sub {
  margin-top: 1.5rem;
  max-width: 34ch;
  font-size: var(--t-lead);
  color: var(--fg-2);
}
.hero__actions {
  margin-top: 2.25rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 1.25rem 2rem;
}
.hero__scroll {
  position: absolute; bottom: 1.75rem; left: 50%; transform: translateX(-50%);
  z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll i {
  width: 1px; height: 40px; background: linear-gradient(to bottom, var(--fg), transparent);
  animation: scrollhint 2s ease-in-out infinite;
}
@keyframes scrollhint {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- MANIFESTO ---------- */
.manifesto {
  padding: var(--section) var(--gutter);
  display: grid; place-items: center;
  min-height: 70vh;
}
.manifesto__text {
  max-width: 22ch;
  text-align: center;
  font-size: var(--t-manifesto);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.manifesto__text .w { color: var(--muted); display: inline-block; }

/* ---------- ZOOM: del detalle a la fallera ---------- */
.zoom { position: relative; height: 300vh; background: #000; }
.zoom__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.zoom__img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
  transform-origin: 50% 63%;     /* el aderezo del pecho: aquí arranca el zoom */
  transform: scale(3.2);
  will-change: transform;
}
@media (orientation: portrait) { .zoom__img { transform-origin: 50% 60%; } }
.zoom__veil { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.25), transparent 30%, transparent 60%, rgba(0,0,0,.7)); pointer-events: none; }
.zoom__captions { position: absolute; left: 0; right: 0; bottom: clamp(2.5rem, 8vh, 6rem); text-align: center; padding: 0 var(--gutter); pointer-events: none; }
.zoom__caption {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  font-size: clamp(2.2rem, 7vw, 5.5rem); font-weight: 700; letter-spacing: -.04em; line-height: 1;
  color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.7), 0 8px 40px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(12px);
}
.reduced-motion .zoom { height: auto; }
.reduced-motion .zoom__img { transform: none; }
.reduced-motion .zoom__caption[data-step="2"] { opacity: 1; transform: none; }

/* ---------- SERVICIOS / CÓMO TRABAJO ---------- */
.services { background: var(--bg-2); }
.services__inner { padding: 0 var(--gutter); }
.services__visual { display: none; } /* solo escritorio */

.step {
  padding: clamp(3.5rem, 10vw, 6rem) 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 0; }
.step__img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  margin-bottom: 2rem;
}
.step__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.step h3 { font-size: clamp(1.9rem, 6vw, 3.5rem); margin-bottom: 1rem; }
.step p { color: var(--fg-2); font-size: var(--t-lead); max-width: 42ch; }

.section-head--services { padding-top: var(--section); margin-bottom: 0; }

/* ---------- ENSAYO: fotografía fallera ---------- */
.essay { padding: var(--section) var(--gutter); }
.essay__inner { max-width: 1100px; margin: 0 auto; }
.essay__body p { color: var(--fg-2); font-size: var(--t-lead); max-width: 62ch; margin-bottom: 1.25rem; }
.essay__body h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin: 2rem 0 1rem; }
.essay__list { list-style: none; counter-reset: loc; margin: 0 0 1.5rem; padding: 0; max-width: 62ch; }
.essay__list li { counter-increment: loc; display: flex; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--line); color: var(--fg); font-size: 1.02rem; }
.essay__list li:last-child { border-bottom: 1px solid var(--line); }
.essay__list li::before { content: counter(loc, decimal-leading-zero); color: var(--muted); font-size: .8rem; letter-spacing: .1em; padding-top: .2em; flex: 0 0 2em; }
.essay__list--plain li::before { content: "—"; }
.statement__link { margin-top: 1.5rem; }
.essay__cta { margin-top: 2rem; }
.essay__cta--guide { margin-top: .75rem; }

/* ---------- LA LUZ: la foto se revela desde la oscuridad ---------- */
.light { position: relative; height: 260vh; background: #000; }
.light__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.light__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transform: scale(1.06); will-change: transform; }
/* Capa negra con un "agujero" de luz centrado en el rostro: se abre (escala) y al final se desvanece.
   Solo transformaciones y opacidad: funciona fluido en móvil y tablet. */
.light__dark {
  position: absolute; left: 50%; top: 38%; width: 400vmax; height: 400vmax; margin: -200vmax 0 0 -200vmax;
  pointer-events: none; transform: scale(1); transform-origin: 50% 50%; will-change: transform, opacity;
  /* agujero pequeño (2,4vmax) que crece al escalar; el negro cubre de sobra toda la pantalla */
  background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 0.6%, rgba(0,0,0,.85) 1.6%, rgba(0,0,0,.97) 2.4%, #000 3.2%);
}
.light__dim { position: absolute; inset: 0; background: #000; opacity: .6; pointer-events: none; }
/* Degradado oscuro en la base para que el texto se lea sobre zonas claras de la foto */
.light__stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.45) 45%, transparent 100%); pointer-events: none; }
.light__text { position: absolute; left: 0; right: 0; bottom: clamp(2.5rem, 9vh, 7rem); text-align: center; padding: 0 var(--gutter); pointer-events: none; z-index: 2; }
.light__line { margin: 0; font-size: clamp(2rem, 6.5vw, 5rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.02; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.7), 0 8px 40px rgba(0,0,0,.6); opacity: 0; transform: translateY(14px); }
.light__sub { margin: 1rem 0 0; font-size: var(--t-lead); color: #fff; letter-spacing: .02em; text-shadow: 0 1px 4px rgba(0,0,0,.8), 0 4px 24px rgba(0,0,0,.6); opacity: 0; }
.reduced-motion .light { height: auto; }
.reduced-motion .light__img { filter: none; transform: none; }
.reduced-motion .light__dark, .reduced-motion .light__dim { display: none; }
.reduced-motion .light__line, .reduced-motion .light__sub { opacity: 1; transform: none; }

/* ---------- PORTFOLIO ---------- */
.portfolio { padding: var(--section) 0; }
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0 12px;
}
.work {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-3);
}
.work--wide { aspect-ratio: 3 / 2; }
.work img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 12%;
  transform: scale(1.15);
  will-change: transform;
}
.work figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1.25rem 1.1rem;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
  font-size: .85rem; color: var(--fg-2);
  opacity: 0; transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease;
}
.work:hover figcaption, .work:focus-within figcaption { opacity: 1; transform: none; }
@media (hover: none) { .work figcaption { opacity: 1; transform: none; } }

.portfolio__more { text-align: center; margin-top: clamp(2.5rem, 6vw, 4rem); padding: 0 var(--gutter); }
.portfolio__note { color: var(--muted); margin-bottom: 1.25rem; }

/* ---------- STATEMENT ---------- */
.statement {
  position: relative;
  min-height: 90svh;
  display: grid; place-items: center;
  overflow: hidden;
  padding: var(--section) var(--gutter);
  text-align: center;
}
.statement__bg { position: absolute; inset: -15% 0; z-index: 0; }
.statement__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: brightness(.45); }
@media (orientation: portrait) { .statement__bg img { object-position: center 15%; } }
.statement__content { position: relative; z-index: 1; max-width: 800px; }
.statement__content h2 { font-size: var(--t-h2); margin-bottom: 1.5rem; }
.statement__content p { font-size: var(--t-lead); color: var(--fg-2); max-width: 52ch; margin: 0 auto; }

/* ---------- CÓMO FUNCIONA ---------- */
.process { padding: var(--section) var(--gutter); background: var(--bg-2); }
.process__steps { list-style: none; margin: 0 auto; padding: 0; max-width: 1100px; display: grid; gap: 1rem; counter-reset: none; }
.process__step { padding: 1.75rem; border-radius: var(--radius); background: var(--bg-3); border: 1px solid var(--line); }
.process__num { display: block; font-size: .8rem; letter-spacing: .14em; color: var(--muted); margin-bottom: 1rem; }
.process__step h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: .6rem; }
.process__step p { color: var(--fg-2); }
@media (min-width: 700px) { .process__steps { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (min-width: 1024px) { .process__steps { grid-template-columns: repeat(4, 1fr); } }

/* "Aprende conmigo": destacado en escritorio (píldora) y en el menú móvil */
.nav__links a.nav__learn { color: var(--fg); }
.nav.is-open .nav__links a.nav__learn { order: -1; display: inline-flex; align-self: flex-start; padding: .45em 1em; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; font-size: 1.2rem; margin-bottom: .5rem; }
@media (min-width: 1200px) {
  .nav__links a.nav__learn { padding: .38em .9em; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; margin-left: .2rem; }
  .nav__links a.nav__learn::after { display: none; }
  .nav__links a.nav__learn:hover { background: rgba(255,255,255,.1); }
}

/* Enlace a la guía: "Las Fallas" en escritorio, "¿Qué son las Fallas?" en el menú móvil */
.nav__fallas-short { display: none; }
@media (min-width: 1200px) { .nav__fallas-short { display: inline; } .nav__fallas-long { display: none; } }

/* ---------- PÁGINAS POR SESIÓN ---------- */
.hero--page { min-height: 86svh; }
.hero--page .hero__title { font-size: clamp(2.6rem, 9vw, 6.4rem); }
.pages { padding: var(--section) var(--gutter); background: var(--bg-2); }
.pages__grid { display: grid; grid-template-columns: 1fr; gap: 1rem; max-width: 1240px; margin: 0 auto; }
.page-card {
  display: flex; flex-direction: column; gap: .5rem;
  padding: 1.75rem; border-radius: var(--radius);
  background: var(--bg-3); border: 1px solid var(--line);
  color: var(--fg); text-decoration: none;
  transition: border-color .3s ease, transform .3s ease;
}
.page-card:hover { border-color: rgba(255,255,255,.35); transform: translateY(-3px); }
.page-card strong { font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.page-card p { color: var(--fg-2); font-size: .98rem; line-height: 1.5; margin: 0; }
.page-card .link-arrow { margin-top: auto; padding-top: .75rem; }
.faq__more { margin-top: 1.5rem; }
/* En móvil y tablet la lista de sesiones va plegada tras un botón; al abrir, filas compactas en cascada */
.pages__toggle { display: inline-flex; margin: 0 auto; }
.pages .section-head { margin-bottom: 1.5rem; }
.pages__toggle + .pages__grid { display: none; margin-top: 1.5rem; }
.pages.is-open .pages__toggle + .pages__grid { display: grid; }
.pages__grid--compact .page-card { position: relative; gap: .25rem; padding: 1.05rem 3rem 1.05rem 1.25rem; }
.pages__grid--compact .page-card strong { font-size: 1.12rem; }
.pages__grid--compact .page-card p { font-size: .9rem; }
.pages__grid--compact .page-card .link-arrow { display: none; }
.pages__grid--compact .page-card::after { content: "→"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.1rem; }

/* ---------- CONTACTO: guardar contacto ---------- */
.contact__vcard { margin: 1.25rem 0; display: flex; flex-direction: column; gap: .25rem; }
.contact__vcard span { font-size: .85rem; color: var(--muted); }

/* ---------- PÁGINA 404 ---------- */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--nav-h) + 3rem) var(--gutter) 4rem; position: relative; overflow: hidden; }
.notfound__bg { position: absolute; inset: 0; z-index: 0; }
.notfound__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: brightness(.35); }
.notfound__content { position: relative; z-index: 1; max-width: 720px; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.notfound__logo { width: min(70vw, 360px); }
.notfound h1 { font-size: clamp(2.4rem, 7vw, 5rem); letter-spacing: -.04em; line-height: 1; }
.notfound h1 .nf-title { display: block; font-size: 1em; font-weight: 700; color: var(--fg); margin: 0; }
.notfound h1 span { display: block; font-size: .5em; font-weight: 500; color: var(--fg-2); margin-top: .2em; }
.notfound p { color: var(--fg-2); font-size: var(--t-lead); }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2rem; margin-top: .5rem; }

/* ---------- GUÍA LAS FALLAS ---------- */
.hero__stats { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2.5rem; margin: 1.75rem 0 .25rem; }
.hero__stats > div { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.hero__stats strong { font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.hero__stats span { font-size: .78rem; color: var(--fg-2); letter-spacing: .02em; max-width: 16ch; text-align: center; line-height: 1.3; }
.hero__stats-src { flex-basis: 100%; margin-top: .5rem; font-size: .7rem; color: var(--muted); letter-spacing: .04em; }
.guide { padding: var(--section) var(--gutter); max-width: 1240px; margin: 0 auto; }
.guide__body { max-width: 720px; }
.guide__intro { font-size: var(--t-lead); color: var(--fg-2); line-height: 1.6; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.guide__intro a, .guide__sec p a:not(.link-arrow) { color: var(--fg); text-decoration: underline; text-underline-offset: .2em; }
.guide__toc { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.guide__toc ol { list-style: none; margin: 1rem 0 0; padding: 0; counter-reset: toc; display: grid; gap: .35rem; }
.guide__toc li { counter-increment: toc; }
.guide__toc a { color: var(--fg-2); text-decoration: none; font-size: .95rem; display: inline-flex; gap: .6rem; }
.guide__toc a::before { content: counter(toc, decimal-leading-zero); color: var(--muted); font-size: .75rem; letter-spacing: .1em; padding-top: .25em; }
.guide__toc a:hover, .guide__toc a.is-active { color: var(--fg); }
.guide__sec { margin-bottom: clamp(3rem, 7vw, 5rem); scroll-margin-top: calc(var(--nav-h) + 1.5rem); }
.guide__sec h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); letter-spacing: -.03em; line-height: 1.08; margin-bottom: 1.25rem; }
.guide__sec h3 { font-size: 1.15rem; margin: 2rem 0 .75rem; }
.guide__sec p { color: var(--fg-2); font-size: 1.08rem; line-height: 1.65; margin-bottom: 1.1rem; }
.guide__sec p strong, .guide__list strong { color: var(--fg); font-weight: 600; }
.guide__sec em { font-style: italic; color: var(--fg); }
.guide__list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.guide__list li { color: var(--fg-2); font-size: 1.05rem; line-height: 1.6; padding: .9rem 0; border-top: 1px solid var(--line); }
.guide__list li:last-child { border-bottom: 1px solid var(--line); }
.guide__note { border-left: 2px solid rgba(255,255,255,.35); padding-left: 1.1rem; color: var(--fg); }
.guide__fig { margin: 1.75rem 0 2rem; }
.guide__fig a { display: block; }
.guide__fig img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.guide__fig--v img { max-height: 80vh; width: auto; max-width: 100%; margin: 0 auto; }
.guide__fig figcaption { margin-top: .6rem; font-size: .85rem; color: var(--muted); line-height: 1.5; }
.guide__credit { display: block; font-size: .75rem; }
.guide__credit a { color: var(--muted); }
.guide__fig--mine img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center 15%; }
.guide__fig--mine:not(.guide__fig--v) img { aspect-ratio: 3 / 2; }
.guide__links { display: flex; flex-wrap: wrap; gap: .75rem 2rem; }
.guide__glossary { margin: 0; display: grid; gap: 0; }
.guide__term { padding: .9rem 0; border-top: 1px solid var(--line); }
.guide__term:last-child { border-bottom: 1px solid var(--line); }
.guide__term dt { font-weight: 600; margin-bottom: .2rem; }
.guide__term dd { margin: 0; color: var(--fg-2); font-size: .98rem; line-height: 1.55; }
.guide__cta { margin: clamp(3rem, 7vw, 5rem) 0; padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: var(--radius); background: var(--bg-3); border: 1px solid var(--line); }
.guide__cta h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.03em; margin-bottom: .75rem; }
.guide__cta p { color: var(--fg-2); margin-bottom: 1.5rem; line-height: 1.6; }
.guide__sources { margin: 0 0 1.5rem; padding-left: 1.2rem; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.guide__sources a { color: var(--muted); }
.guide__sources a:hover { color: var(--fg); }
.guide__sec--sources p { font-size: .98rem; }
@media (min-width: 1024px) {
  .guide { display: grid; grid-template-columns: 260px 1fr; gap: 4rem; align-items: start; }
  .guide__toc { position: sticky; top: calc(var(--nav-h) + 2rem); margin: 0; }
  .guide__body { max-width: 760px; }
}

/* ---------- FORMACIÓN ---------- */
.training { padding: var(--section) var(--gutter); }
.training__inner { max-width: 1100px; margin: 0 auto; }
.training__lead { color: var(--fg-2); font-size: var(--t-lead); max-width: 62ch; margin-top: 1rem; }
.training__days { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.training__card { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--radius); background: var(--bg-3); border: 1px solid var(--line); display: flex; flex-direction: column; gap: .9rem; }
.section--light .training__card { background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.1); }
.training__card h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); letter-spacing: -.02em; }
.training__card p { color: var(--fg-2); line-height: 1.6; font-size: 1.02rem; }
.training__card .training__price { margin-top: auto; padding-top: .5rem; }
.training__foot { margin-top: clamp(1.5rem, 4vw, 2.5rem); display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; }
.training__price { font-weight: 600; color: var(--fg); font-size: 1.05rem; }
.training__meta { color: var(--muted); font-size: .9rem; }
.training__foot .btn { margin-top: .5rem; }
.training__badge { display: inline-block; vertical-align: middle; margin-left: .5rem; padding: .3em .8em; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); }
.training--team .essay__body p { color: var(--fg-2); font-size: var(--t-lead); max-width: 62ch; margin-bottom: 1.25rem; }
@media (min-width: 700px) { .training__days { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.waitlist { padding: var(--section) var(--gutter); background: var(--bg-2); }
.waitlist__inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
.waitlist__text h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -.03em; margin-bottom: .75rem; }
.waitlist__text p { color: var(--fg-2); line-height: 1.6; }
.waitlist__form { display: grid; gap: 1rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius); background: var(--bg-3); border: 1px solid var(--line); }
.waitlist__form label { display: grid; gap: .35rem; font-size: .85rem; color: var(--muted); }
.waitlist__form input[type="text"], .waitlist__form input[type="email"] { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 10px; color: var(--fg); padding: .8rem 1rem; font: inherit; }
.waitlist__form .form__check { display: flex; gap: .6rem; align-items: flex-start; font-size: .8rem; }
.waitlist__form .form__check input { margin-top: .2em; }
.waitlist__form .form__ok, .waitlist__form .form__err { display: none; margin: 0; }
.waitlist__form.is-sent .form__ok { display: block; }
.waitlist__form.is-error .form__err { display: block; }
.waitlist__form.is-sent button, .waitlist__form.is-sent label { display: none; }
.faq__terms p { color: var(--fg-2); font-size: .98rem; line-height: 1.6; margin: 0 0 .9rem; }
.faq__terms strong { color: var(--fg); }
@media (min-width: 900px) { .waitlist__inner { grid-template-columns: 1fr 1fr; gap: 3rem; } }

/* ---------- OPINIONES ---------- */
.reviews { padding: var(--section) var(--gutter); background: var(--bg-2); }
.reviews__grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
  max-width: 1100px; margin: 0 auto;
}
.review {
  margin: 0;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--bg-3);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 1.25rem;
}
.stars { color: #e8b923; letter-spacing: .12em; font-size: 1rem; line-height: 1; }
.review--cta p strong { font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; margin-right: .3em; }
.review--cta p::before, .review--cta p::after { content: none; }
.review p { font-size: 1.05rem; line-height: 1.55; }
.review p::before { content: "“"; color: var(--muted); margin-right: .1em; }
.review p::after { content: "”"; color: var(--muted); margin-left: .1em; }
.review footer { font-size: .85rem; color: var(--muted); margin-top: auto; }
.review--cta footer { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.review__google { font-size: .85rem; }
.reviews__real { max-width: 760px; margin: -.5rem auto clamp(2rem, 5vw, 3rem); text-align: center; color: var(--muted); font-size: 1.02rem; line-height: 1.6; }
.reviews__real strong { color: var(--text); font-weight: 600; }
/* Opiniones largas: se recortan y se despliegan con "Leer más" */
.review--long p { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.review--long.is-open p { display: block; -webkit-line-clamp: none; overflow: visible; }
.review__more { align-self: flex-start; margin-top: -.6rem; background: none; border: 0; padding: 0; color: var(--text); font: inherit; font-size: .9rem; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.review__more:hover { color: var(--muted); }

.reviews__stats {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
  max-width: 1100px; margin: clamp(3rem, 7vw, 5rem) auto 0;
  text-align: center;
}
.reviews__stats strong { display: block; font-size: clamp(2.2rem, 6vw, 3.5rem); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.reviews__stats span { display: block; margin-top: .5rem; color: var(--muted); font-size: .9rem; }

/* ---------- COLABORADORES ---------- */
.partners { padding: var(--section) var(--gutter); }
.partners__inner { max-width: 1100px; margin: 0 auto; }
.partners__lead { color: var(--muted); margin-top: 1rem; font-size: var(--t-lead); }
.partners__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.partner {
  position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .6rem;
  min-height: 150px; padding: 1.5rem 1.25rem; text-align: center;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-3);
  color: inherit; transition: border-color .25s, transform .25s;
}
a.partner:hover { border-color: rgba(255,255,255,.4); transform: translateY(-2px); }
.partner__cat { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.partner__logo { max-height: 44px; width: auto; max-width: 70%; object-fit: contain; filter: brightness(0) invert(1); opacity: .9; }
.partner__name { font-weight: 600; font-size: 1.05rem; }
.partner__text { color: var(--fg-2); font-size: .88rem; max-width: 28ch; }
.partner--free { border-style: dashed; background: transparent; }
.partner--free .partner__name { color: var(--muted); font-weight: 400; font-size: .9rem; }
.campaigns { margin-top: clamp(2.5rem, 6vw, 4rem); padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius); background: var(--bg-3); border: 1px solid var(--line); display: grid; gap: 1.5rem; align-items: center; }
.campaigns h3 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); margin-bottom: .75rem; }
.campaigns p { color: var(--fg-2); font-size: var(--t-lead); max-width: 52ch; }
.campaigns p strong { color: var(--fg); font-weight: 600; }
.campaigns .btn { justify-self: start; }
@media (min-width: 900px) { .campaigns { grid-template-columns: 1fr auto; } .campaigns .btn { justify-self: end; } }
.partners__cta { text-align: center; margin-top: 2rem; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.partners__plans { color: var(--muted); font-size: .85rem; }

/* ---------- FAQ ---------- */
.faq { padding: var(--section) var(--gutter); }
.faq__inner { max-width: 1100px; margin: 0 auto; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer;
  padding: 1.35rem 2.5rem 1.35rem 0;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem); font-weight: 500;
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 300; color: var(--muted);
  transition: transform .3s ease;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { padding: 0 0 1.5rem; color: var(--fg-2); max-width: 62ch; }

/* ---------- SOBRE MÍ ---------- */
.about { padding: var(--section) var(--gutter); background: var(--bg-2); }
.about__inner { max-width: 1100px; margin: 0 auto; display: grid; gap: 2.5rem; }
.about__img { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
/* La foto de César se ilumina poco a poco al hacer scroll (capa negra que se desvanece) */
.about__dim { position: absolute; inset: 0; background: #000; opacity: .92; pointer-events: none; }
.reduced-motion .about__dim { display: none; }
.about__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.about__text h2 { font-size: var(--t-h2); margin-bottom: 1.5rem; }
.about__text p { color: var(--fg-2); font-size: var(--t-lead); margin-bottom: 1.1rem; }
.about__facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line);
}
.about__facts strong { display: block; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -.02em; }
.about__facts span { display: block; color: var(--muted); font-size: .8rem; margin-top: .25rem; }

/* ---------- REGALA UNA SESIÓN ---------- */
.gift { padding: 0 var(--gutter) var(--section); }
.gift__inner { max-width: 1100px; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem); border-radius: var(--radius); background: var(--bg-3); border: 1px solid var(--line); display: grid; gap: 1.75rem; align-items: center; }
.gift__text h2 { font-size: clamp(1.8rem, 4.5vw, 3rem); margin-bottom: .9rem; }
.gift__text p { color: var(--fg-2); font-size: var(--t-lead); max-width: 56ch; }
.gift .btn { justify-self: start; }
@media (min-width: 900px) { .gift__inner { grid-template-columns: 1fr auto; } .gift .btn { justify-self: end; } }

.about__more { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.about__more p { color: var(--fg-2); font-size: 1rem; }
.about__more strong { color: var(--fg); font-weight: 600; }
.about__links { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin: .75rem 0 1.5rem; }
.about__links .link-arrow { font-size: .95rem; }

/* ---------- CONTACTO ---------- */
.contact { padding: var(--section) var(--gutter); }
.contact__inner { max-width: 1100px; margin: 0 auto; display: grid; gap: 3rem; }
.contact__text h2 { font-size: var(--t-h2); margin-bottom: 1rem; }
.contact__text p { color: var(--fg-2); font-size: var(--t-lead); }
.btn--whatsapp { background: #25d366; border-color: #25d366; color: #062b15; gap: .6em; margin-top: 1.75rem; font-size: 1.05rem; }
.btn--whatsapp:hover { background: #2ee57a; }
.contact__notice { margin-top: 1.25rem; padding: 1rem 1.2rem; border-left: 2px solid var(--fg); background: var(--bg-3); color: var(--fg-2); font-size: .98rem; }
.contact__notice strong { color: var(--fg); font-weight: 600; }
.contact__ask { margin-top: 1.25rem; color: var(--fg-2); font-size: var(--t-lead); }
.contact__or { margin-top: 1.25rem; color: var(--muted); font-size: .95rem; }
.contact__list { margin-top: 2rem; display: grid; gap: .75rem; }
.contact__list a { display: inline-block; color: var(--fg); border-bottom: 1px solid var(--line); padding: .25rem 0 .15rem; transition: border-color .2s; }
.contact__list a:hover { border-color: var(--fg); }

.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; }
.form label { display: grid; gap: .45rem; font-size: .85rem; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--fg);
  font: inherit;
  padding: .85rem 1rem;
  transition: border-color .2s;
  -webkit-appearance: none;
  appearance: none;
}
.form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: rgba(255,255,255,.5); }
.form textarea { resize: vertical; min-height: 120px; }
.form .btn { justify-self: start; margin-top: .5rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__check { display: flex !important; flex-direction: row; align-items: flex-start; gap: .6rem; font-size: .85rem; color: var(--muted); }
.form__check--fm { color: var(--fg-2); font-size: .95rem; padding: .9rem 1rem; background: var(--bg-3); border: 1px solid var(--line); border-radius: 12px; }
.form__check input { -webkit-appearance: checkbox; appearance: auto; width: 18px; height: 18px; padding: 0; margin: .15em 0 0; flex: 0 0 18px; accent-color: var(--fg); border-radius: 4px; }
.form__check a { color: var(--fg-2); text-decoration: underline; }
.form.is-sending .btn { opacity: .5; pointer-events: none; }
.form__err { display: none; color: #ff8a80; }
.form.is-error .form__err { display: block; }
.form__ok { display: none; color: var(--fg-2); }
.form.is-sent .form__ok { display: block; }
.form.is-sent .btn { display: none; }

/* ---------- PÁGINAS LEGALES ---------- */
.legal-page .nav { position: sticky; }
.link-arrow--back { font-size: .9rem; color: var(--fg-2); }
.legal { max-width: 760px; margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) var(--gutter); }
.legal h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin-bottom: .75rem; }
.legal__updated { color: var(--muted); font-size: .85rem; margin-bottom: 2.5rem; }
.legal h2 { font-size: clamp(1.15rem, 2.2vw, 1.5rem); margin: 2.25rem 0 .75rem; }
.legal p, .legal li { color: var(--fg-2); margin-bottom: .9rem; line-height: 1.6; }
.legal ul { padding-left: 1.2rem; list-style: disc; }
.legal a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- SECCIÓN CLARA (ritmo visual, como Apple) ---------- */
.section--light {
  --bg: #f5f5f7; --bg-2: #f5f5f7; --bg-3: #ffffff;
  --fg: #1d1d1f; --fg-2: #4a4a4f; --muted: #6e6e73; --line: rgba(0,0,0,.1);
  background: var(--bg-2); color: var(--fg);
}
.section--light .process__step { box-shadow: 0 2px 12px rgba(0,0,0,.05); }
/* En sección clara el botón se invierte: fondo oscuro, letra clara */
.section--light .btn { background: #1d1d1f; color: #f5f5f7; border-color: #1d1d1f; }
.section--light .btn:hover { background: #000; color: #fff; }
.section--light .btn--ghost { background: transparent; color: #1d1d1f; border-color: rgba(0,0,0,.35); }
.section--light .btn--ghost:hover { background: rgba(0,0,0,.06); }
.section--light .training__badge { border-color: rgba(0,0,0,.3); }

/* ---------- VISOR DE FOTOS ---------- */
.lightbox[hidden] { display: none !important; }
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.96);
  display: flex; align-items: center; justify-content: center;
  padding: 0 clamp(8px, 4vw, 64px);
  opacity: 0; transition: opacity .25s ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox__figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lightbox__figure figcaption { font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.lightbox__count { margin-left: .75em; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.08); color: var(--fg); border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 28px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.2); }
.lightbox__close { top: max(12px, env(safe-area-inset-top)); right: 12px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; }
@media (max-width: 699px) { .lightbox__nav { top: auto; bottom: 16px; transform: none; } .lightbox__nav--prev { left: 16px; } .lightbox__nav--next { right: 16px; } }
body.lightbox-open { overflow: hidden; }
.work { cursor: zoom-in; }

/* ---------- WHATSAPP FLOTANTE (móvil y tablet) ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 90;
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25d366; color: #062b15; box-shadow: 0 8px 24px rgba(0,0,0,.45);
  opacity: 0; transform: translateY(12px) scale(.9);
  transition: opacity .3s ease, transform .3s ease;
}
.wa-float.is-visible { opacity: 1; transform: none; }
@media (min-width: 1024px) { .wa-float { right: 24px; bottom: 24px; } }
body.menu-open .wa-float { display: none; }

/* ---------- BOTÓN FLOTANTE "VOLVER" ---------- */
.back-float {
  position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 90;
  display: inline-flex; align-items: center; gap: .45em;
  padding: .7em 1.1em; border-radius: 999px; border: 1px solid rgba(255,255,255,.22);
  background: rgba(20,20,22,.72); color: var(--fg); font: inherit; font-size: .85rem; font-weight: 500; letter-spacing: .02em;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,.35); cursor: pointer;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
}
.back-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-float:hover { background: rgba(40,40,44,.85); }
.back-float span[aria-hidden] { font-size: 1.05em; line-height: 1; }
body.menu-open .back-float, body.lightbox-open .back-float { opacity: 0; pointer-events: none; }
@media (min-width: 1024px) { .back-float { left: 24px; bottom: 24px; } }

/* ---------- AVISO DE COOKIES ---------- */
.cookies {
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 95;
  max-width: 560px; margin: 0 auto; padding: 1rem 1.1rem;
  border-radius: 18px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(20,20,22,.82); color: var(--fg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
  animation: cookies-in .45s ease both;
}
.cookies[hidden] { display: none; }
.cookies p { margin: 0 0 .85rem; font-size: .9rem; line-height: 1.5; color: #d2d2d7; }
.cookies p a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.cookies__btns { display: flex; gap: .6rem; justify-content: flex-end; }
.cookies__btns .btn { padding: .65em 1.2em; font-size: .9rem; }
.cookies__btns .btn.ghost { background: transparent; color: var(--fg); border: 1px solid rgba(255,255,255,.3); }
body.cookies-open .wa-float, body.cookies-open .back-float { opacity: 0; pointer-events: none; }
@keyframes cookies-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (min-width: 768px) { .cookies { left: auto; right: 24px; bottom: 24px; margin: 0; display: flex; align-items: center; gap: 1.2rem; max-width: 720px; } .cookies p { margin: 0; } .cookies__btns { flex-shrink: 0; } }

/* Línea de precio bajo la declaración */
.statement__content .statement__price { margin: 1.6rem auto 0; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.18); font-size: 1rem; color: var(--fg); max-width: 32ch; }
.statement__content .statement__price + .statement__link { margin-top: .9rem; }

/* ---------- FOOTER ---------- */
.footer {
  padding: 4rem var(--gutter) 2.5rem;
  border-top: 1px solid var(--line);
  display: grid; gap: 2rem; justify-items: center;
  text-align: center;
}
.footer__logo { width: 180px; height: auto; opacity: .85; }
.footer__meta { display: grid; gap: 1rem; font-size: .8rem; color: var(--muted); }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.footer__links a { display: inline-block; padding: .35em 0; }
.footer__links a:hover { color: var(--fg); }

/* =====================================================
   TABLET  (≥ 700px)
   ===================================================== */
@media (min-width: 700px) {
  :root { --nav-h: 60px; }
  .nav__logo img { height: 34px; }
  .nav__right .btn--small { display: inline-flex; }

  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 0 14px; }
  .work--wide { grid-column: span 2; }

  .reviews__grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .pages__grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .partners__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .reviews__stats { grid-template-columns: repeat(3, 1fr); }

  .form__row { grid-template-columns: 1fr 1fr; }
}

/* =====================================================
   ESCRITORIO  (≥ 1024px)
   ===================================================== */
@media (min-width: 1024px) {
  .reviews__grid { grid-template-columns: repeat(3, 1fr); max-width: 1240px; }
  .pages__grid { grid-template-columns: repeat(3, 1fr); }
  .pages__toggle, .pages.is-open .pages__toggle { display: none; }
  .pages__toggle + .pages__grid { display: grid; }
  .pages .section-head { margin-bottom: clamp(2.5rem, 6vw, 4rem); }

  /* Sección "cómo trabajo": imagen fija a un lado, texto que pasa */
  .services__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 7rem);
    max-width: 1300px;
    margin: 0 auto;
  }
  .services__visual {
    display: block;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 5vh 0;
  }
  .services__img {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(1.04);
    width: min(100%, calc(90vh * 0.8)); aspect-ratio: 4 / 5;
    border-radius: var(--radius); overflow: hidden;
    opacity: 0;
    transition: opacity .7s ease, transform 1.2s ease;
  }
  .services__img.is-active { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  .services__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }

  .step {
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center;
    padding: 4rem 0;
    border-bottom: 0;
  }
  .step__img { display: none; }

  .grid { grid-template-columns: repeat(12, 1fr); gap: 16px; padding: 0 16px; }
  .work { grid-column: span 4; aspect-ratio: 4 / 5; }
  .work--wide { grid-column: span 8; aspect-ratio: 16 / 10; }
  .work--tall { grid-column: span 4; grid-row: span 1; }

  .essay__inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start; }
  .essay .section-head { position: sticky; top: 6rem; margin-bottom: 0; }
  .faq__inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start; }
  .faq .section-head { position: sticky; top: 6rem; margin-bottom: 0; }

  .about__inner { grid-template-columns: 1fr 1.1fr; gap: 5rem; align-items: center; }
  .contact__inner { grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: start; }

  .footer { grid-template-columns: auto 1fr; justify-items: start; text-align: left; align-items: center; }
  .footer__meta { justify-self: end; text-align: right; }
  .footer__links { justify-content: flex-end; }
}

/* Pantallas muy anchas: limitar el hero para que no se desmadre */
@media (min-width: 1200px) {
  .nav__links { display: flex; gap: 1rem; }
  .nav__links a { font-size: 0.8rem; }
  .nav__logo img { height: 30px; }
  .nav__burger { display: none; }
  .nav__right .btn--small { display: none; }
}

@media (min-width: 1360px) {
  .nav__inner { max-width: 1320px; }
  .nav__links { gap: 1.4rem; }
  .nav__links a { font-size: 0.84rem; }
  .nav__logo img { height: 34px; }
}

@media (min-width: 1600px) {
  :root { --t-hero: 8.5rem; }
}

/* ---------- Accesibilidad: menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__scroll i { animation: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .work img { transform: none; }
  .manifesto__text .w { color: var(--fg); }
}

/* Enlace a las cifras del sector: «En cifras» en escritorio, «El sector en cifras» en el menú móvil (va al final para ganar a las reglas de escritorio) */
.nav__cifras-short { display: none; }
@media (min-width: 1200px) { .nav__cifras-short { display: inline; } .nav__cifras-long { display: none; } .nav__links { gap: .8rem; } }
@media (min-width: 1200px) and (max-width: 1439px) { .nav__links { gap: .6rem; } .nav__links a { font-size: .76rem; } .nav__links a.nav__learn { padding: .38em .7em; } }
