/* ==========================================================================
   Estilos de la web
   Concepto: web siempre blanca y limpia (sin modo oscuro, a petición del
   cliente). Acento verde bosque y tonos arena suaves en tarjetas.
   Radios: botones en píldora, paneles 14px, campos 10px.
   Capas (z-index): contenido 1, cabecera 300, aviso de vista previa 400.
   ========================================================================== */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-grotesque-500-800.woff2') format('woff2');
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('../fonts/geist-400-600.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/geist-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #FFFFFF;
  --surface: #FAF8F4;
  --sunk: #F1ECE3;
  --ink: #1C2420;
  --ink-soft: #59635D;
  --line: #E6E1D7;
  --accent: var(--cfg-accent, #2F6B4F);
  --accent-ink: #FFFFFF;
  --accent-wash: color-mix(in srgb, var(--accent) 9%, var(--paper));
  --night: #FFFFFF;
  --night-2: #FAF8F4;
  --night-ink: #1C2420;
  --night-soft: #5E665F;
  --night-line: #E6E1D7;
  --ok: #2F6B4F;
  --warn: #9A5600;
  --warn-wash: #F6EAD7;

  --f-display: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Geist', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --r-panel: 14px;
  --r-field: 10px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 68px;
  color-scheme: light;
}


/* Modo oscuro: solo cuando el visitante lo activa con el botón de la cabecera.
   Por defecto la web es siempre blanca. Se usa data-scheme (no data-theme)
   para que ningún sistema externo pueda activarlo sin querer. */
:root[data-scheme="dark"] {
  --paper: #111513;
  --surface: #181E1B;
  --sunk: #0C100E;
  --ink: #E8ECE9;
  --ink-soft: #A3ADA7;
  --line: #29312D;
  --accent: var(--cfg-accent-dark, #8CC7A6);
  --accent-ink: #0B1711;
  --night: #111513;
  --night-2: #181E1B;
  --night-ink: #E8ECE9;
  --night-soft: #A3ADA7;
  --night-line: #29312D;
  --ok: #8CC7A6;
  --warn: #F0B35C;
  --warn-wash: #2E2414;
  color-scheme: dark;
}
:root[data-scheme="dark"] .err { color: #FF8A80; }

/* Botón de modo oscuro */
.theme-btn { order: 3; margin-left: 8px; width: 44px; height: 44px; flex: none; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; transition: transform .2s var(--ease), background-color .2s, border-color .2s; }
.theme-btn:hover { border-color: var(--ink-soft); }
.theme-btn:active { transform: scale(.94); }
.theme-btn .icon { grid-area: 1 / 1; width: 20px; height: 20px; transition: transform .45s var(--ease), opacity .3s; }
.theme-btn__sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-scheme="dark"] .theme-btn__moon { opacity: 0; transform: rotate(90deg) scale(.5); }
:root[data-scheme="dark"] .theme-btn__sun { opacity: 1; transform: none; }
.header .nav { order: 2; }
.header .menu-btn { order: 4; }
@media (max-width: 960px) {
  .theme-btn { margin-left: auto; }
  .header .menu-btn { margin-left: 8px; }
}
/* Transición circular al cambiar de tema (navegadores compatibles) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 500; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 136px); }
.h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 700; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-soft); max-width: 60ch; }
.mono { font-family: var(--f-mono); font-size: 0.8125rem; letter-spacing: 0.02em; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  min-height: 48px; padding: 0 1.4em;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: transform .18s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.btn--ghost { border-color: color-mix(in srgb, var(--ink) 28%, transparent); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--small { min-height: 40px; padding: 0 1.1em; font-size: 0.9375rem; }
.btn:disabled, .btn[aria-disabled="true"] {
  cursor: not-allowed; background: var(--sunk); color: var(--ink-soft);
  border: 1.5px dashed color-mix(in srgb, var(--ink-soft) 55%, transparent);
}
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Nota de dato pendiente (solo en vista previa) */
.pending {
  display: inline-flex; align-items: center; gap: .45em;
  font-family: var(--f-mono); font-size: .75rem; line-height: 1.3;
  color: var(--warn); background: var(--warn-wash);
  padding: .35em .7em; border-radius: 6px;
}
html:not(.is-preview) .pending { display: none; }
.badge-soon {
  display: inline-block; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em;
  padding: .3em .7em; border-radius: 999px; border: 1px solid currentColor; color: var(--ink-soft);
}
.demo-label {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft);
}
.demo-label::before { content: ""; width: 14px; height: 1.5px; background: currentColor; }

/* ---------- Cabecera ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .25s, box-shadow .25s;
}
.header.is-scrolled { background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.header__in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand__mark { width: 32px; height: 32px; flex: none; }
.brand__img { height: 32px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-size: .9375rem; color: var(--ink-soft); padding: 8px 12px; border-radius: 999px; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.header__cta { margin-left: 8px; }
.nav a.btn--primary { color: var(--accent-ink); }
.nav a.btn--primary:hover:not([aria-disabled="true"]) { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; color: var(--ink); }
  .header__cta { margin: 16px 0 0; justify-content: center; }
  .header.menu-open { background: var(--paper); }
}

/* ---------- Portada ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(32px, 6vw, 80px)); padding-bottom: clamp(56px, 8vw, 104px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); font-weight: 750; letter-spacing: -0.035em; line-height: 1.0; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__sub { margin-top: 24px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 44ch; }
.hero__ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__note { margin-top: 14px; }
.hero__visual { position: relative; min-width: 0; display: flex; justify-content: center; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: 2; }
}
/* Entrada de la portada */
@media (prefers-reduced-motion: no-preference) {
  .hero [data-in] { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Teléfono de demostración ---------- */
.phone {
  position: relative; width: min(100%, 320px); aspect-ratio: 9 / 18.5;
  border-radius: 44px; padding: 10px; background: var(--ink);
  box-shadow: 0 30px 60px -24px color-mix(in srgb, var(--ink) 45%, transparent), 0 0 0 1px color-mix(in srgb, var(--ink) 30%, transparent);
}
.phone__screen { position: relative; height: 100%; border-radius: 35px; overflow: hidden; background: #F6F6F2; color: #14171D; }
.phone__notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 34%; height: 22px; border-radius: 999px; background: #0E1014; z-index: 5; }
.screen { position: absolute; inset: 0; padding: 48px 16px 18px; display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(10px) scale(.985); transition: opacity .5s var(--ease), transform .6s var(--ease); font-size: 13px; line-height: 1.4; }
.screen.is-on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .screen { transition: none; } }

/* Pantalla 1: web del negocio (ejemplo) */
.sw-head { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 13px; }
.sw-head span:last-child { font-size: 11px; color: #5A606B; }
.sw-cover { height: 132px; border-radius: 16px; background:
  radial-gradient(120% 90% at 20% 110%, #E8B86A 0 28%, transparent 29%),
  radial-gradient(90% 70% at 85% 0%, #D8C7A8 0 35%, transparent 36%),
  linear-gradient(160deg, #3A7A5B, #1F4A36); position: relative; overflow: hidden; }
.sw-cover b { position: absolute; left: 14px; bottom: 12px; color: #fff; font-family: var(--f-display); font-size: 20px; line-height: 1.05; letter-spacing: -.02em; }
.sw-row { display: flex; gap: 8px; }
.sw-chip { flex: 1; text-align: center; padding: 9px 4px; border-radius: 12px; background: #E9EAE4; font-weight: 600; font-size: 12px; }
.sw-chip--main { background: #14171D; color: #fff; }
.sw-info { display: grid; gap: 6px; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid #E2E3DC; }
.sw-info div { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.sw-info div span:first-child { color: #5A606B; }
.sw-dish { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 14px; background: #fff; border: 1px solid #E2E3DC; }
.sw-dish i { width: 40px; height: 40px; border-radius: 10px; flex: none; background: radial-gradient(circle at 35% 35%, #F2C77B, #D9893B 70%); filter: hue-rotate(var(--h, 0deg)); }
.sw-dish b { display: block; font-size: 12.5px; }
.sw-dish span { font-size: 11px; color: #5A606B; }
.sw-wa { margin-top: auto; text-align: center; padding: 11px; border-radius: 999px; background: #1F7A4D; color: #fff; font-weight: 600; font-size: 12.5px; }
/* Pantalla 2: chat */
.chat-top { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #E2E3DC; }
.chat-top i { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(140deg, #2F6B4F, #C9B596); flex: none; }
.chat-top b { font-size: 13px; display: block; }
.chat-top small { font-size: 11px; color: #5A606B; }
.bubble { max-width: 84%; padding: 9px 12px; border-radius: 16px; font-size: 12.5px; }
.bubble--me { align-self: flex-end; background: #DDEBE1; border-bottom-right-radius: 5px; }
.bubble--them { align-self: flex-start; background: #fff; border: 1px solid #E2E3DC; border-bottom-left-radius: 5px; }
.bubble small { display: block; margin-top: 3px; font-size: 10px; color: #5A606B; text-align: right; }
/* Pantalla 3: reserva */
.res-title { font-family: var(--f-display); font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.res-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.res-days span { text-align: center; padding: 8px 0; border-radius: 10px; background: #E9EAE4; font-size: 11.5px; line-height: 1.2; }
.res-days span.sel { background: #14171D; color: #fff; }
.res-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.res-times span { text-align: center; padding: 8px 0; border-radius: 10px; border: 1px solid #D6D8CF; font-size: 12px; }
.res-times span.sel { border-color: #2F6B4F; background: #DDEBE1; font-weight: 600; }
.res-cta { margin-top: auto; text-align: center; padding: 12px; border-radius: 999px; background: #2F6B4F; color: #fff; font-weight: 600; }
/* Pantalla 4: aviso al negocio */
.ok-card { margin-top: 18px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid #E2E3DC; display: grid; gap: 10px; }
.ok-card .tick { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #24785A; color: #fff; }
.ok-card b { font-family: var(--f-display); font-size: 18px; letter-spacing: -.02em; }
.ok-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 12px; }
.ok-card dt { color: #5A606B; }
.ok-card dd { margin: 0; font-weight: 600; }
.ok-actions { display: flex; gap: 8px; }
.ok-actions span { flex: 1; text-align: center; padding: 9px; border-radius: 999px; font-weight: 600; font-size: 12px; background: #14171D; color: #fff; }
.ok-actions span + span { background: #E9EAE4; color: #14171D; }

/* Tarjeta flotante de la portada */
.float-card {
  position: absolute; left: max(-8%, -48px); bottom: 12%;
  width: min(250px, 70%); padding: 14px 16px; border-radius: var(--r-panel);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 18px 40px -20px color-mix(in srgb, var(--ink) 40%, transparent);
  display: grid; gap: 4px; font-size: .875rem;
}
.float-card b { font-family: var(--f-display); font-size: 1.05rem; letter-spacing: -.01em; }
.float-card span { color: var(--ink-soft); }
@media (prefers-reduced-motion: no-preference) {
  .float-card { animation: rise .9s var(--ease) .7s both; }
}
@media (max-width: 520px) { .float-card { left: 0; bottom: 6%; } }
.hero__caption { position: absolute; top: -28px; right: 0; }

/* ---------- Problemas ---------- */
.problems__head { max-width: 760px; }
.problems__head p { margin-top: 18px; }
.problems__list { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 5vw, 80px); counter-reset: none; }
.problem { padding-block: 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
.problem .icon { width: 28px; height: 28px; color: var(--accent); margin-top: 4px; }
.problem h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 650; }
.problem p { margin-top: 8px; color: var(--ink-soft); max-width: 46ch; }
@media (max-width: 760px) { .problems__list { grid-template-columns: 1fr; } }

/* ---------- Recorrido (tramo oscuro) ---------- */
.journey { background: var(--night); color: var(--night-ink); position: relative; }
.journey .lead { color: var(--night-soft); }
.journey .demo-label { color: var(--night-soft); }
.journey__head { max-width: 720px; padding-bottom: clamp(24px, 4vw, 48px); }
.journey__head p { margin-top: 18px; }
.journey__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.journey__stage { position: sticky; top: calc(var(--header-h) + 24px); height: calc(100vh - var(--header-h) - 48px); height: calc(100dvh - var(--header-h) - 48px); display: flex; align-items: center; justify-content: center; }
.journey__stage .phone { width: min(100%, 300px); max-height: 100%; aspect-ratio: 9 / 18.5; height: auto; }
.journey__steps { padding-bottom: 20vh; }
.jstep { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; max-width: 46ch; opacity: .55; transition: opacity .4s var(--ease); }
.jstep.is-active { opacity: 1; }
.jstep__n { font-family: var(--f-mono); font-size: .8125rem; color: var(--night-soft); display: flex; align-items: center; gap: 10px; }
.jstep__n::after { content: ""; height: 1px; flex: 1; max-width: 80px; background: var(--night-line); }
.jstep h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
.jstep p { color: var(--night-soft); font-size: 1.0625rem; }
.jstep .note { font-size: .9375rem; color: var(--night-soft); border-left: 2px solid var(--night-line); padding-left: 12px; }
.journey__progress { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--night-line); }
.journey__progress span { display: block; width: 100%; height: 100%; background: var(--accent); transform-origin: top; transform: scaleY(var(--p, 0)); }
@media (max-width: 860px) {
  .journey__grid { grid-template-columns: 1fr; }
  .journey__stage { top: calc(var(--header-h) + 8px); height: auto; padding-block: 12px; z-index: 2; background: linear-gradient(var(--night) 85%, transparent); }
  .journey__stage .phone { width: 300px; zoom: .56; }
  .jstep { min-height: 60vh; justify-content: flex-start; padding-top: 2vh; }
}
@media (prefers-reduced-motion: reduce) { .jstep { opacity: 1; } }

/* ---------- Servicios ---------- */
.services__head { display: grid; gap: 18px; max-width: 760px; }
.services__grid { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.svc { border-radius: var(--r-panel); padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.svc:nth-child(1) { grid-column: span 4; background: var(--accent); color: var(--accent-ink); }
.svc:nth-child(2) { grid-column: span 2; background: var(--surface); border: 1px solid var(--line); }
.svc:nth-child(3) { grid-column: span 3; background: var(--sunk); }
.svc:nth-child(4) { grid-column: span 3; background: var(--surface); border: 1px solid var(--line); }
.svc:nth-child(5) { grid-column: span 2; background: var(--surface); border: 1px solid var(--line); }
.svc:nth-child(6) { grid-column: span 4; background: var(--ink); color: var(--paper); }
.svc__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, currentColor 10%, transparent); }
.svc__icon .icon { width: 24px; height: 24px; }
.svc h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); font-weight: 700; }
.svc p { opacity: .86; }
.svc dl { margin: 6px 0 0; display: grid; gap: 12px; }
.svc dt { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; opacity: .85; }
.svc dd { margin: 2px 0 0; }
.svc:nth-child(1) p, .svc:nth-child(1) dd { opacity: 1; }
.later { margin-top: 40px; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-panel); border: 1.5px dashed var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; }
.later h3 { font-size: 1.35rem; font-weight: 650; }
.later p { color: var(--ink-soft); margin-top: 8px; }
.later ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.later li { display: flex; gap: 10px; align-items: flex-start; }
.later li .icon { color: var(--accent); margin-top: 4px; }
.later li span { color: var(--ink-soft); }
.later li b { display: block; color: var(--ink); font-weight: 600; }
@media (max-width: 900px) {
  .svc:nth-child(n) { grid-column: span 6; }
  .later { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .later ul { grid-template-columns: 1fr; } }

/* ---------- Opciones de proyecto ---------- */
.options { background: var(--surface); border-block: 1px solid var(--line); }
.options__head { display: grid; gap: 18px; max-width: 780px; }
.picker { margin-top: 36px; padding: 18px 20px; border-radius: var(--r-panel); background: var(--paper); border: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.picker legend { padding: 0; font-weight: 600; margin-right: 6px; float: left; }
.picker fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; min-width: 0; }
.tog { position: relative; }
.tog input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tog span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); font-size: .9375rem; transition: background-color .2s, border-color .2s, color .2s; }
.tog span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid currentColor; opacity: .6; }
.tog input:checked + span { border-color: var(--accent); background: var(--accent-wash); }
.tog input:checked + span::before { background: var(--accent); border-color: var(--accent); opacity: 1; }
.tog input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.picker__out { flex-basis: 100%; font-size: .9375rem; color: var(--ink-soft); min-height: 1.6em; }
.plans { margin-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; border-radius: var(--r-panel); border: 1.5px solid var(--line); background: var(--paper); padding: 26px; display: flex; flex-direction: column; gap: 16px; transition: border-color .3s, transform .3s var(--ease), box-shadow .3s; min-width: 0; }
.plan.is-match { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
@media (prefers-reduced-motion: no-preference) { .plan.is-match { transform: translateY(-4px); } }
.plan__tag { position: absolute; top: -13px; left: 22px; background: var(--accent); color: var(--accent-ink); font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; opacity: 0; transition: opacity .3s; }
.plan.is-match .plan__tag { opacity: 1; }
.plan--featured { border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--paper)); box-shadow: 0 28px 60px -28px color-mix(in srgb, var(--accent) 75%, transparent), 0 0 0 6px color-mix(in srgb, var(--accent) 10%, transparent); }
@media (min-width: 1181px) { .plan--featured { transform: translateY(-12px); } }
@media (min-width: 1181px) and (prefers-reduced-motion: no-preference) { .plan--featured.is-match { transform: translateY(-14px); } }
.plan--featured .price strong { color: var(--accent); }
.plan--featured h3 { color: var(--accent); }
.plan__best { position: absolute; top: -15px; left: 22px; display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: var(--accent-ink); font-size: .8125rem; font-weight: 700; letter-spacing: .02em; padding: 6px 14px; border-radius: 999px; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 80%, transparent); transition: opacity .3s; }
.plan--featured.is-match .plan__best { opacity: 0; }
.plan__best .icon { width: .95em; height: .95em; }
.plan h3 { font-size: 1.45rem; font-weight: 700; }
.plan__sum { color: var(--ink-soft); font-size: .975rem; }
.plan h4 { font-family: var(--f-mono); font-size: .72rem; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.plan ul { display: grid; gap: 8px; margin-top: 8px; }
.plan li { display: flex; gap: 10px; font-size: .9375rem; line-height: 1.45; }
.plan li .icon { color: var(--accent); margin-top: 3px; width: 1em; height: 1em; }
.plan .muted li { color: var(--ink-soft); }
.plan .muted li .icon { color: var(--ink-soft); }
.price { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: .9375rem; }
.price div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; align-items: baseline; }
.price span:first-child { color: var(--ink-soft); }
.price strong { font-family: var(--f-display); font-size: 1.15rem; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.price span:first-child { min-width: 0; }
.price__quote { font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; line-height: 1.3; color: var(--ink); text-wrap: balance; }
.plan__cta { justify-content: center; margin-block: 4px 6px; }
.plan__note { font-size: .8125rem; color: var(--ink-soft); line-height: 1.45; margin-top: 4px; }
.price .pending { justify-self: start; }
.plans__foot { margin-top: 24px; color: var(--ink-soft); font-size: .9375rem; max-width: 80ch; }
@media (max-width: 1180px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } }

/* ---------- Ejemplos demostrativos ---------- */
.demos__head { display: grid; gap: 18px; max-width: 760px; }
.demos__grid { margin-top: clamp(36px, 5vw, 60px); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; }
.demo { border-radius: var(--r-panel); padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.demo--main { grid-row: span 2; background: var(--sunk); }
.demo--a { background: var(--surface); border: 1px solid var(--line); }
.demo--b { background: var(--accent-wash); }
.demo h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); font-weight: 700; }
.demo p { color: var(--ink-soft); }
.demo ul { display: grid; gap: 8px; }
.demo li { display: flex; gap: 10px; font-size: .9375rem; }
.demo li .icon { color: var(--accent); margin-top: 4px; width: 1em; height: 1em; }
/* Mini widget de reserva */
.booker { margin-top: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 18px; display: grid; gap: 14px; }
.booker label, .booker .lbl { font-size: .875rem; font-weight: 600; display: block; margin-bottom: 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; cursor: pointer; font-size: .9rem; transition: background-color .2s, border-color .2s; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.booker__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.booker select { width: 100%; min-height: 44px; border-radius: var(--r-field); border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); padding: 0 12px; font: inherit; }
.booker__out { border-radius: var(--r-field); background: var(--paper); border: 1px dashed var(--line); padding: 14px; font-size: .9375rem; }
.booker__out b { display: block; font-size: .8125rem; font-family: var(--f-mono); font-weight: 400; color: var(--ink-soft); margin-bottom: 6px; }
@media (max-width: 860px) { .demos__grid { grid-template-columns: 1fr; } .demo--main { grid-row: auto; } }
@media (max-width: 420px) { .booker__row { grid-template-columns: 1fr; } }

/* ---------- Cómo trabajamos ---------- */
.process { background: var(--night); color: var(--night-ink); }
.process .lead { color: var(--night-soft); }
.steps-wrap { margin-top: clamp(40px, 6vw, 72px); position: relative; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.steps-wrap::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 2px; background: var(--night-line); }
.steps__line { position: absolute; left: 0; right: 0; top: 22px; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(1); }
.step { position: relative; padding-right: 20px; display: grid; gap: 12px; align-content: start; }
.step__dot { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--night-2); border: 2px solid var(--night-line); font-family: var(--f-mono); font-size: .875rem; position: relative; z-index: 1; transition: border-color .4s, background-color .4s; }
.step.is-in .step__dot { border-color: var(--accent); background: var(--night); }
.step h3 { font-size: 1.2rem; font-weight: 650; margin-top: 6px; }
.step p { color: var(--night-soft); font-size: .9375rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps-wrap::before, .steps__line { left: 22px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .steps__line { transform-origin: top; }
  .step { grid-template-columns: 46px minmax(0, 1fr); column-gap: 18px; padding-right: 0; }
  .step h3, .step p { grid-column: 2; }
  .step h3 { margin-top: 0; }
  .step__dot { grid-row: span 2; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .steps__line { animation: draw linear both; animation-timeline: view(); animation-range: entry 20% cover 55%; }
  }
}
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 900px) { @keyframes draw { from { transform: scaleY(0); } to { transform: scaleY(1); } } }

/* ---------- Equipo ---------- */
.team__grid:has(> .zones[hidden]) { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.team__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.team__text { display: grid; gap: 18px; font-size: 1.125rem; }
.team__text p { color: var(--ink-soft); }
.team__text p:first-of-type { color: var(--ink); font-family: var(--f-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.2; letter-spacing: -.02em; font-weight: 600; }
.zones { display: grid; gap: 14px; padding: 24px; border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--line); }
.zones__list { display: flex; flex-wrap: wrap; gap: 8px; }
.zones__list li { padding: 8px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 600; }
.zones p { color: var(--ink-soft); font-size: .9375rem; }
@media (max-width: 860px) { .team__grid { grid-template-columns: 1fr; } }

/* ---------- Preguntas frecuentes ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 18px; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-family: var(--f-display); font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 600; letter-spacing: -.01em; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s var(--ease); }
.faq__list details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq__list .ans { padding: 0 0 24px; color: var(--ink-soft); display: grid; gap: 10px; max-width: 62ch; }
.faq__list .ans ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 6px; }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; } .faq__head { position: static; } }

/* ---------- Contacto ---------- */
.contact { background: var(--surface); border-top: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__intro { display: grid; gap: 18px; }
.channels { margin-top: 18px; display: grid; gap: 12px; }
.channel { padding: 20px; border-radius: var(--r-panel); background: var(--paper); border: 1px solid var(--line); display: grid; gap: 12px; }
.channel__top { display: flex; align-items: center; gap: 12px; }
.channel__top .icon { width: 26px; height: 26px; color: var(--accent); }
.channel__top b { font-size: 1.05rem; }
.channel__val { font-family: var(--f-mono); font-size: .9375rem; word-break: break-all; }
.channel__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.form { padding: clamp(22px, 3vw, 36px); border-radius: var(--r-panel); background: var(--paper); border: 1px solid var(--line); display: grid; gap: 18px; }
.form h3 { font-size: 1.5rem; font-weight: 700; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: .9375rem; }
.field .hint { font-size: .8125rem; color: var(--ink-soft); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-field);
  border: 1.5px solid color-mix(in srgb, var(--ink) 22%, transparent); background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field [aria-invalid="true"] { border-color: #C2362B; }
.err { color: #B4291F; font-size: .875rem; min-height: 0; }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.form__status { border-radius: var(--r-field); padding: 14px 16px; font-size: .9375rem; display: flex; gap: 10px; align-items: flex-start; }
.form__status .icon { margin-top: 3px; }
.form__status[data-kind="info"] { background: var(--warn-wash); color: var(--ink); }
.form__status[data-kind="error"] { background: color-mix(in srgb, #C2362B 12%, var(--paper)); color: var(--ink); }
.form__status[data-kind="ok"] { background: color-mix(in srgb, var(--ok) 14%, var(--paper)); color: var(--ink); }
.form__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Pie ---------- */
.footer { padding-block: 64px 40px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer h4 { font-family: var(--f-mono); font-size: .75rem; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.footer li + li { margin-top: 8px; }
.footer a { text-decoration: none; color: var(--ink); }
.footer a:hover { text-decoration: underline; }
.footer__desc { margin-top: 14px; color: var(--ink-soft); max-width: 36ch; font-size: .9375rem; }
.footer__bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--ink-soft); font-size: .875rem; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Aviso de vista previa ---------- */
.preview-bar {
  position: fixed; z-index: 400; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: min(400px, calc(100vw - 32px)); border-radius: var(--r-panel);
  background: var(--ink); color: var(--paper); font-size: .875rem; line-height: 1.45;
  box-shadow: 0 16px 40px -16px rgba(0,0,0,.45);
}
.preview-bar summary { cursor: pointer; list-style: none; padding: 10px 14px; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.preview-bar summary::-webkit-details-marker { display: none; }
.preview-bar summary::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); flex: none; }
.preview-bar summary span { font-weight: 400; opacity: .75; }
.preview-bar__body { padding: 0 14px 14px; display: grid; gap: 8px; }
.preview-bar ul { display: flex; flex-wrap: wrap; gap: 6px; }
.preview-bar a { color: inherit; }
.preview-bar li { font-family: var(--f-mono); font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--paper) 16%, transparent); }

/* ---------- Revelado al hacer scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- Versión B: recorrido en vídeo (scroll-world) ---------- */
.is-world .sw-root {
  --sw-bg: var(--paper); --sw-ink: var(--ink); --sw-ink-soft: var(--ink-soft); --sw-accent: var(--accent);
  --sw-font-display: var(--f-display); --sw-font-body: var(--f-body);
}
.is-world .sw-topbar, .is-world .sw-hint, .is-world .sw-particles { display: none; }
.is-world .sw-copy__title { letter-spacing: -0.03em; font-weight: 750; }
.is-world .sw-copy { top: calc(50% + var(--header-h) / 2); }
.is-world .sw-btn--primary { background: var(--accent); color: var(--accent-ink); }
.is-world .sw-scrollbar { top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }
.after-world, .is-world .footer { position: relative; z-index: 200; background: var(--paper); }
/* Bocetos provisionales: se muestran enmarcados, no a pantalla completa */
.world--draft .sw-scene__still {
  inset: 0 clamp(64px, 9vw, 140px) 0 auto; margin: auto 0; width: min(44vw, 620px); height: auto;
  border-radius: var(--r-panel); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--ink) 45%, transparent);
}
.world__draft-note { position: fixed; z-index: 45; right: clamp(64px, 9vw, 140px); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); max-width: min(46vw, 640px); }
@media (max-width: 860px) {
  .world--draft .sw-scene__still { inset: calc(var(--header-h) + 60px) 0 auto 0; margin: 0 auto; width: min(88vw, 520px); }
  .world__draft-note { right: auto; left: 16px; top: calc(var(--header-h) + 8px); bottom: auto; max-width: calc(100vw - 32px); }
  .is-world .sw-copy { top: auto; }
}
