/* =====================================================================
   Brickweb v4 — estilo inspirado en la estructura de designbyency.com,
   con color propio: rojo ladrillo vivo, oscuro cálido, amarillo de resaltado.
   Contrastes: blanco sobre --red 4,6:1; --text sobre blanco 11:1; --on-dark-2 sobre --dark 7:1.
   ===================================================================== */
:root {
  --red: #D2361A;
  --red-2: #F0603A;           /* final del degradado */
  --red-deep: #A82812;
  --dark: #1F1411;            /* secciones oscuras */
  --dark-card: #2D1D19;
  --dark-line: rgba(255, 240, 232, 0.14);
  --on-dark: #FFF4EE;
  --on-dark-2: #CDB7AE;
  --yellow: #FFD60A;
  --white: #FFFFFF;
  --tint: #FFF5F1;            /* tarjetas claras */
  --tint-2: #FBE5DC;
  --text: #3A2622;
  --title: #2A1511;
  --muted: #7A625B;
  --line: rgba(42, 21, 17, 0.12);

  --f-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --f-text: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-hand: "Caveat", "Bradley Hand", cursive;
  --f-mono: "Geist Mono", ui-monospace, Consolas, monospace;

  --gut: clamp(16px, 3.4vw, 48px);
  --max: 1344px;
  --r-card: 20px;
  --r-big: 28px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --nav-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { background: var(--white); color: var(--text); font: 400 17px/1.55 var(--f-text); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: var(--yellow); color: var(--title); }

.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }
.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: -80px; z-index: 300; background: var(--title); color: var(--white); padding: 8px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

/* ---------- Titulares, anotaciones y etiquetas ---------- */
.display { margin: 0; font: 400 clamp(56px, 7.2vw, 104px)/0.92 var(--f-display); text-transform: uppercase; letter-spacing: 0.005em; color: var(--title); }
.display--xl { font-size: clamp(64px, 12.4vw, 184px); }
.display .soft { color: var(--red); }
.display .line { display: block; overflow: hidden; padding: 0.14em 0 0.04em; margin-top: -0.14em; }
.display .line > span { display: inline-block; }
.on-dark .display, .on-red .display { color: var(--white); }
.on-dark .display .soft { color: var(--yellow); }
.on-red .display .soft { color: #FFD3C4; }
.hand {
  display: inline-block; margin: 0 0 10px; padding: 1px 10px; border-radius: 6px;
  background: var(--yellow); color: var(--title);
  font: 600 clamp(24px, 2.2vw, 34px)/1.2 var(--f-hand); transform: rotate(-3deg); transform-origin: left center;
}
.note { font: 600 clamp(22px, 1.9vw, 30px)/1.15 var(--f-hand); color: var(--yellow); }
.mono { font: 500 12px/1.4 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.lead { margin: 24px 0 0; max-width: 44ch; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.4; }
.swoosh { display: block; width: min(100%, 620px); height: 22px; margin-top: 6px; color: var(--yellow); }

/* ---------- Botones en píldora ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 64px; padding: 0 32px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--white); color: var(--title); font: 500 18px/1 var(--f-text); text-decoration: none; white-space: nowrap;
  transition: transform .3s var(--ease), background-color .3s, color .3s, box-shadow .3s; will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(0,0,0,.35); }
.btn:active { transform: translateY(0) scale(.98); }
.btn__arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translate(3px, -3px); }
.btn--ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1.5px var(--white); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-deep); }
.btn--sm { height: 48px; padding: 0 22px; font-size: 16px; }

/* ---------- Cabecera: logo, menú en píldora, botón ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h); transition: transform .45s var(--ease), background-color .3s; }
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-light { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav__bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font: 400 30px/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.01em; }
.logo__mark { position: relative; width: 28px; height: 20px; flex: none; }
.logo__mark i { position: absolute; height: 9px; border-radius: 2.5px; background: var(--white); }
.logo__mark i:nth-child(1) { left: 0; top: 11px; width: 13px; background: var(--yellow); }
.logo__mark i:nth-child(2) { left: 15px; top: 11px; width: 13px; }
.logo__mark i:nth-child(3) { left: 7.5px; top: 0; width: 13px; }
.nav.is-light .logo { color: var(--title); }
.nav.is-light .logo__mark i:nth-child(2), .nav.is-light .logo__mark i:nth-child(3) { background: var(--title); }
.pillnav { display: flex; gap: 2px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.88); box-shadow: 0 0 0 1px rgba(42,21,17,.06); }
.pillnav a { padding: 10px 16px; border-radius: 999px; font-size: 15px; color: var(--title); text-decoration: none; transition: background-color .25s, color .25s; }
.pillnav a:hover { background: var(--tint-2); }
.pillnav a.is-active { background: var(--red); color: var(--white); }
.nav__cta { padding-left: 8px; }
.nav__cta .dot { width: 32px; height: 32px; border-radius: 50%; background: var(--red); display: grid; place-items: center; }
.nav__cta .dot i { display: block; width: 14px; height: 9px; border-radius: 2px; background: var(--yellow); box-shadow: 0 -6px 0 -2px var(--white); }

/* ---------- Hero en rojo con escena 3D ---------- */
.hero { position: relative; overflow: hidden; color: var(--white); background: linear-gradient(180deg, var(--red) 0%, var(--red-2) 100%); padding: calc(var(--nav-h) + 32px) 0 104px; }
.hero::before { /* rejilla tenue de fondo, como un plano de obra */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .13;
  background-image: linear-gradient(rgba(255,255,255,.7) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.7) 1px, transparent 1px);
  background-size: 80px 80px; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 90%); mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; align-items: center; min-height: calc(min(100svh, 980px) - var(--nav-h) - 136px); }
.hero h1 { margin: 0; font: 400 clamp(52px, min(6.3vw, 11.5svh), 118px)/0.9 var(--f-display); text-transform: uppercase; letter-spacing: 0.005em; }
.hero h1 .line { display: block; overflow: hidden; padding: 0.14em 0 0.03em; margin-top: -0.14em; } /* sitio para las tildes de las mayúsculas */
.hero h1 .line > span { display: inline-block; }
.hero .lead { color: rgba(255,255,255,.95); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__stage { position: relative; height: min(62svh, 620px); }
.hero__stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; touch-action: pan-y; }
.hero__note { position: absolute; left: -12%; bottom: -6%; z-index: 2; transform: rotate(-5deg); pointer-events: none; }
.hero__note svg { display: block; width: 90px; height: 50px; margin: 2px 0 0 70px; color: var(--yellow); }
.hero__fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.wallmini { width: 74%; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; transform: rotate(-4deg); }
.wallmini i { grid-column: span 2; height: 40px; border-radius: 8px; background: rgba(255,255,255,.92); box-shadow: inset 0 -5px 0 rgba(0,0,0,.08); }
.wallmini i:nth-child(4n+2) { background: var(--dark); }
.wallmini i:nth-child(5) { background: var(--yellow); }
.wallmini i:nth-child(4), .wallmini i:nth-child(7) { grid-column: span 1; }
html.has-3d .hero__fallback { display: none; }
.hero__cut { position: absolute; left: 0; right: 0; bottom: -1px; height: 56px; background: var(--white); border-radius: 48px 48px 0 0; }

/* ---------- Secciones ---------- */
.sec { padding: clamp(96px, 11vw, 160px) 0; position: relative; }
.on-dark { background: var(--dark); color: var(--on-dark); }
.on-red { background: linear-gradient(90deg, var(--red) 0%, var(--red-2) 100%); color: var(--white); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }

/* ¿Te suena? — libreta amarilla de problemas */
.pains .lead { color: var(--text); }
.notepad { position: relative; padding: 52px 28px 24px; border-radius: 16px; background: #FFF3B8; box-shadow: 0 24px 50px -28px rgba(42,21,17,.45); transform: rotate(1deg); }
.notepad::before { content: ""; position: absolute; inset: 0 0 auto; height: 30px; border-radius: 16px 16px 0 0; background: var(--yellow); border-bottom: 2px dashed rgba(42,21,17,.25); }
.notepad::after { content: ""; position: absolute; top: 30px; bottom: 0; left: 70px; width: 2px; background: rgba(210,54,26,.35); }
.notepad ul { list-style: none; margin: 0; padding: 0; }
.notepad li { display: flex; align-items: center; gap: 30px; padding: 16px 4px; border-bottom: 1px solid rgba(42,21,17,.12); color: var(--title); font-size: 17px; }
.notepad li svg { flex: none; width: 22px; height: 22px; color: var(--red); }

/* Escena oscura fijada con scroll: de ladrillos a web */
.build { padding: 0; }
.build__intro { text-align: center; padding-top: clamp(96px, 11vw, 160px); }
.build__intro .lead { margin-inline: auto; color: var(--on-dark-2); max-width: 52ch; }
.build__intro .hand { transform: rotate(-4deg); }
.build__track { position: relative; }
.build__pin { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: calc(var(--nav-h) + 2svh) var(--gut) 3svh; max-width: calc(var(--max) + 2 * var(--gut)); margin-inline: auto; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.step { padding: 20px 24px; border-radius: var(--r-card); background: var(--dark-card); border: 1px solid var(--dark-line); transition: background-color .45s var(--ease), border-color .45s, transform .45s var(--ease); }
.step.is-on { background: linear-gradient(180deg, var(--red) 0%, var(--red-2) 100%); border-color: transparent; transform: translateX(8px); }
.step__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.step__icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: var(--on-dark); }
.step.is-on .step__icon { background: var(--white); color: var(--red); }
.step__icon svg { width: 20px; height: 20px; }
.step__day { color: var(--yellow); }
.step h3 { margin: 12px 0 6px; font: 500 clamp(20px, min(2vw, 3.2svh), 26px)/1.2 var(--f-text); color: var(--white); }
.step p { margin: 0; color: var(--on-dark-2); font-size: 16px; }
.step.is-on p { color: rgba(255,255,255,.95); }
.build.is-pinned .step:not(.is-on) p { display: none; }
.build__stage { display: grid; place-items: center; }
.canvas { position: relative; width: min(100%, 600px, calc(66svh / 1.02)); aspect-ratio: 1 / 1.02; border-radius: var(--r-big); background: #2E1F1B; border: 1px solid var(--dark-line); overflow: hidden; }
.canvas__bar { position: absolute; inset: 0 0 auto; height: 44px; display: flex; align-items: center; gap: 6px; padding: 0 16px; border-bottom: 1px solid var(--dark-line); z-index: 3; background: #2E1F1B; }
.canvas__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,240,232,.22); }
.canvas__bar span { margin-inline: auto; padding: 4px 14px; border-radius: 999px; background: rgba(255,240,232,.08); color: var(--on-dark-2); font: 500 12px/1.4 var(--f-mono); }
.canvas__area { position: absolute; inset: 44px 0 0; }
.brick { position: absolute; left: 0; top: 0; border-radius: 8px; background: var(--on-dark); will-change: transform; box-shadow: inset 0 -4px 0 rgba(0,0,0,.12); }
.brick--a { background: var(--red-2); }
.brick--y { background: var(--yellow); }
.brick--l { background: #5A443D; }
.canvas__shot { position: absolute; inset: 44px 0 0; z-index: 2; opacity: 0; clip-path: inset(100% 0 0 0); }
.canvas__shot img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
html:not(.anim) .canvas__shot { opacity: 1; clip-path: none; }
.build.is-pinned .build__track { height: calc(100svh * 3.2); }
.build.is-pinned .build__pin { position: sticky; top: 0; height: 100svh; }
.build__cta { display: flex; justify-content: center; padding: 24px 0 clamp(96px, 10vw, 140px); }

/* Qué incluye — tarjetas con mini interfaces */
.cards__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.cards__head .lead { color: var(--text); }
.arrows { display: flex; gap: 10px; }
.arrow { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; display: grid; place-items: center; transition: box-shadow .25s; }
.arrow:hover { box-shadow: inset 0 0 0 1.5px var(--title); }
.arrow svg { width: 18px; height: 18px; }
.cards { display: flex; gap: 20px; margin-top: 48px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 10px; }
.cards::-webkit-scrollbar { display: none; }
.card { flex: 0 0 min(360px, 82vw); scroll-snap-align: start; padding: 22px; border-radius: var(--r-card); background: var(--tint); transition: transform .35s var(--ease); }
.card:hover { transform: translateY(-4px); }
.card__art { position: relative; height: 210px; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, var(--red) 0%, var(--red-2) 100%); }
.card__art--dark { background: var(--dark); }
.card h3 { margin: 24px 0 8px; font: 500 22px/1.2 var(--f-text); color: var(--title); }
.card p { margin: 0; font-size: 15.5px; color: var(--text); }
.card__tag { display: inline-block; margin-top: 18px; padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--title); font-size: 14px; }
.chip { position: absolute; padding: 7px 14px; border-radius: 999px; background: var(--white); color: var(--title); font-size: 13px; font-weight: 500; box-shadow: 0 6px 16px -8px rgba(0,0,0,.4); white-space: nowrap; }
.chip--o { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.65); }
.chip--y { background: var(--yellow); }
.mini { position: absolute; inset: 22px 22px auto; height: 150px; border-radius: 10px; background: var(--white); overflow: hidden; }
.mini__bar { height: 22px; background: #F1E4DE; display: flex; gap: 4px; align-items: center; padding: 0 8px; }
.mini__bar i { width: 6px; height: 6px; border-radius: 50%; background: #CDB7AE; }
.mini__h { margin: 14px 12px 6px; height: 16px; width: 60%; border-radius: 4px; background: var(--title); }
.mini__l { margin: 6px 12px; height: 6px; width: 45%; border-radius: 3px; background: #CDB7AE; }
.mini__b { margin: 12px 12px 0; height: 18px; width: 30%; border-radius: 999px; background: var(--red); }
.mini__phone { position: absolute; right: 26px; bottom: -30px; width: 70px; height: 130px; border-radius: 14px; background: var(--white); border: 4px solid var(--title); }
.mini__phone::before { content: ""; position: absolute; left: 8px; right: 8px; top: 14px; height: 10px; border-radius: 3px; background: var(--title); box-shadow: 0 16px 0 -2px #CDB7AE, 0 28px 0 -2px #CDB7AE, 0 46px 0 0 var(--red); }
.cal { position: absolute; left: 50%; top: 50%; width: 200px; transform: translate(-50%, -50%) rotate(-3deg); padding: 14px; border-radius: 10px; background: var(--white); color: var(--title); font: 500 11px/1 var(--f-mono); box-shadow: 0 14px 30px -14px rgba(0,0,0,.5); }
.cal b { display: block; margin-bottom: 10px; text-align: center; color: var(--red); letter-spacing: .08em; }
.cal__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px 4px; text-align: center; }
.cal__days .on { position: relative; color: var(--red); }
.cal__days .on::after { content: ""; position: absolute; inset: -5px -2px; border: 2px solid var(--red); border-radius: 50%; }
.cal__note { position: absolute; right: 6px; bottom: -10px; padding: 0 8px; border-radius: 5px; background: var(--yellow); font: 600 18px/1.2 var(--f-hand); transform: rotate(-4deg); }
.rec { position: absolute; left: 50%; top: 22px; width: 196px; transform: translateX(-50%) rotate(2deg); padding: 14px; background: var(--white); color: var(--title); font: 500 10.5px/1.6 var(--f-mono); box-shadow: 0 14px 30px -14px rgba(0,0,0,.5); }
.rec div { display: flex; justify-content: space-between; border-bottom: 1px dashed #DDCCC5; padding: 3px 0; }
.rec .big { font-size: 13px; border: 0; padding-top: 8px; color: var(--red); }

/* Banda roja con píldoras que se pueden lanzar (física) */
.pills { overflow: hidden; padding-bottom: 0; text-align: center; }
.pills .display { max-width: 16ch; margin-inline: auto; }
.pills .lead { margin-inline: auto; color: rgba(255,255,255,.95); max-width: 52ch; }
.pills .hand { transform: rotate(-2deg); margin-top: 24px; }
.pills__box { position: relative; height: 380px; margin-top: 16px; overflow: hidden; } /* las píldoras caen dentro de su caja, sin pisar el titular */
.pill { position: absolute; left: 0; top: 0; padding: 16px 26px; border-radius: 999px; background: var(--white); color: var(--title); font: 500 clamp(15px, 1.4vw, 19px)/1 var(--f-text); white-space: nowrap; cursor: grab; user-select: none; touch-action: none; box-shadow: 0 10px 24px -14px rgba(0,0,0,.5); will-change: transform; }
.pill:active { cursor: grabbing; }
.pill--y { background: var(--yellow); }
.pill--d { background: var(--dark); color: var(--white); }
html:not(.has-physics) .pills__box { display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-end; gap: 12px; padding-bottom: 40px; height: auto; min-height: 200px; }
html:not(.has-physics) .pill { position: static; }

/* Precio — tarjeta roja con tique */
.price__card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 48px; padding: clamp(32px, 4vw, 56px); border-radius: var(--r-big); background: linear-gradient(135deg, var(--red) 0%, var(--red-2) 100%); color: var(--white); }
.price__from { margin: 0; font-size: 20px; }
.price__num { display: flex; align-items: flex-start; gap: 6px; margin: 4px 0 0; font: 400 clamp(110px, 13vw, 200px)/0.86 var(--f-display); }
.price__num small { font: 400 0.32em/1.1 var(--f-display); margin-top: 0.12em; }
.price__per { margin: 10px 0 0; font-size: 22px; }
.price__text { margin: 22px 0 32px; max-width: 42ch; color: rgba(255,255,255,.95); }
.receipt { position: relative; align-self: start; margin: -8px 0 -88px; padding: 26px 26px 40px; background: var(--white); color: var(--title); font: 500 13px/1.5 var(--f-mono); text-transform: uppercase; letter-spacing: 0.03em; box-shadow: 0 30px 60px -30px rgba(0,0,0,.55); transform: rotate(1.5deg);
  -webkit-mask: radial-gradient(10px at 50% 100%, #0000 98%, #000) 50% / 20px 100% repeat-x; mask: radial-gradient(10px at 50% 100%, #0000 98%, #000) 50% / 20px 100% repeat-x; }
.receipt__row { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; }
.receipt__row span:first-child { flex: none; }
.receipt__row i { flex: 1; border-bottom: 1.5px dotted #CDB7AE; transform: translateY(-4px); }
.receipt__row b { font-weight: 500; color: var(--red-deep); }
.receipt__sep { height: 1px; margin: 10px 0; background: #EADBD4; }
.receipt__total { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.receipt__total strong { position: relative; padding: 8px 18px; font: 500 22px/1 var(--f-text); text-transform: none; letter-spacing: 0; }
.receipt__total strong svg { position: absolute; left: -10px; top: -8px; width: calc(100% + 20px); height: calc(100% + 16px); color: var(--red); overflow: visible; }
.price__badge { position: absolute; left: 47%; bottom: 14%; padding: 4px 12px; border-radius: 6px; background: var(--yellow); color: var(--title); font: 600 24px/1.15 var(--f-hand); transform: rotate(-6deg); }
.price__after { margin: 104px 0 0; text-align: center; font-size: clamp(20px, 2vw, 26px); color: var(--title); }
.price__after span { background: linear-gradient(var(--yellow), var(--yellow)) 0 92% / 100% 6px no-repeat; }

/* Preguntas — acordeón en píldoras */
.faq__side .lead { color: var(--text); font-size: 16px; }
.faq__side a { color: var(--red-deep); }
.faq__list { display: grid; gap: 10px; }
.faq__item { border-radius: 16px; background: var(--tint); }
.faq__item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; font-size: 18px; color: var(--title); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { flex: none; width: 34px; height: 34px; border-radius: 8px; background: var(--red); color: var(--white); display: grid; place-items: center; transition: transform .3s var(--ease); }
.faq__item[open] .faq__plus { transform: rotate(45deg); }
.faq__item p { margin: 0; padding: 0 20px 20px; color: var(--text); }

/* Tarjeta final */
.close__card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; overflow: hidden; padding: clamp(32px, 4.5vw, 64px); border-radius: var(--r-big); background: linear-gradient(135deg, var(--red) 0%, var(--red-2) 100%); color: var(--white); }
.close__card .display { font-size: clamp(48px, 5.6vw, 84px); color: var(--white); }
.close__card .lead { color: rgba(255,255,255,.95); }
.close__card .hero__actions { margin-top: 32px; }
.close__shots { position: relative; align-self: stretch; min-height: 320px; margin: calc(-1 * clamp(32px, 4.5vw, 64px)) calc(-1 * clamp(32px, 4.5vw, 64px)) calc(-1 * clamp(32px, 4.5vw, 64px)) 0; }
.close__shots img { position: absolute; bottom: 0; border-radius: 10px 10px 0 0; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); object-fit: cover; object-position: top; }
.close__shots img:nth-child(1) { left: 4%; width: 52%; height: 86%; }
.close__shots img:nth-child(2) { left: 60%; width: 34%; height: 72%; }

/* Pie: HABLEMOS gigante y tarjeta blanca */
.foot { background: var(--red); color: var(--white); padding: 96px 0 24px; overflow: hidden; }
.talk { margin: 0; font: 400 clamp(84px, 23.4vw, 360px)/0.8 var(--f-display); text-transform: uppercase; letter-spacing: 0.005em; white-space: nowrap; }
.talk span { display: block; }
.talk span:nth-child(1) { color: #F3866B; }
.talk span:nth-child(2) { color: #FAB8A6; }
.talk span:nth-child(3) { color: var(--white); }
.foot__row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 40px 0 48px; }
.foot__call { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.foot__call svg { width: 70px; height: 40px; color: var(--yellow); }
.foot__row p { margin: 0; }
.foot__card { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 32px; padding: 40px; border-radius: var(--r-big); background: var(--white); color: var(--title); }
.foot__card .logo { color: var(--title); font-size: 44px; }
.foot__card .logo__mark i:nth-child(2), .foot__card .logo__mark i:nth-child(3) { background: var(--title); }
.foot__card p { margin: 14px 0 0; color: var(--text); max-width: 36ch; }
.foot__col h3 { margin: 0 0 12px; color: var(--muted); font: 500 12px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.foot__col a { display: block; padding: 4px 0; text-decoration: none; }
.foot__col a:hover { text-decoration: underline; }
.foot__legal { margin: 24px 0 0; text-align: center; font: 500 12px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #FFE1D7; }

/* ---------- Revelados (solo con JS y movimiento permitido) ---------- */
html.anim [data-reveal] .line > span { transform: translateY(105%); }
html.anim [data-fade] { opacity: 0; transform: translateY(26px); }
html.anim .swoosh path { stroke-dasharray: 700; stroke-dashoffset: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .pillnav { display: none; }
  .price__card { grid-template-columns: 1fr; }
  .receipt { margin: 0; }
  .price__badge { left: auto; right: 24px; bottom: auto; top: 24px; }
  .close__card { grid-template-columns: 1fr; }
  .close__shots { margin: 0 calc(-1 * clamp(32px, 4.5vw, 64px)) calc(-1 * clamp(32px, 4.5vw, 64px)); }
}
@media (max-width: 900px) {
  :root { --nav-h: 72px; }
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__stage { height: 380px; margin-top: 8px; }
  .hero__note { left: 2%; bottom: 2%; }
  .split { grid-template-columns: 1fr; }
  .build__pin { grid-template-columns: 1fr; }
  .cards__head { flex-direction: column; align-items: start; }
  .foot__card { grid-template-columns: 1fr 1fr; }
  .foot__card > :first-child { grid-column: 1 / -1; }
  .build.is-pinned .build__pin { align-content: center; row-gap: 2svh; padding: calc(var(--nav-h) + 1svh) var(--gut) 2svh; }
  .build.is-pinned .step:not(.is-on) { display: none; }
  .build.is-pinned .step.is-on { transform: none; }
  .build.is-pinned .canvas { width: min(100%, 44svh); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .btn { height: 56px; padding: 0 24px; font-size: 16px; }
  .nav__cta .dot { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__stage { height: 320px; }
  .notepad::after { left: 54px; }
  .notepad li { gap: 22px; font-size: 16px; }
  .pills__box { height: 460px; }
  .foot__card { grid-template-columns: 1fr; padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .card:hover, .btn:hover { transform: none; }
}

/* móvil: la anotación de la portada no pisa el 3D y la etiqueta del precio va bajo la cifra */
@media (max-width: 600px) {
  .hero__note { display: none; }
  .price__badge { position: static; display: inline-block; margin: 14px 0 0; }
}

/* Migas de pan de las páginas de nivel 1 del AST (las genera tools/build_landings.py) */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; font: 500 13px/1.4 var(--f-mono); color: rgba(255,255,255,.82); }
.crumbs a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover, .crumbs [aria-current] { color: #fff; }
.price__links { margin: 18px auto 0; max-width: 60ch; text-align: center; color: var(--text); }
.price__links a { color: var(--title); text-decoration: underline; text-underline-offset: 3px; }

/* Formulario de pedido (pedir/index.html): fondo rojo de la portada y tarjeta blanca */
.order { min-height: 100svh; background: linear-gradient(180deg, var(--red) 0%, var(--red-2) 100%); color: var(--text); }
.order__main { display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 32px var(--gut) 40px; min-height: 100svh; }
.order__logo { color: var(--white); align-self: center; }
.order__card { width: min(100%, 560px); padding: clamp(28px, 5vw, 48px); border-radius: var(--r-big); background: var(--white); box-shadow: 0 40px 80px -40px rgba(0,0,0,.5); }
.order__card .hand { margin: 0; color: var(--red); }
.order__h { font-size: clamp(48px, 9vw, 80px); }
.order__lead { margin: 14px 0 0; font-size: 18px; line-height: 1.45; }
.order__form { display: grid; gap: 16px; margin-top: 28px; }
.order__form label { display: grid; gap: 6px; font-weight: 600; color: var(--title); }
.order__form input:not([type="checkbox"]) { height: 54px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--tint); font: 400 17px var(--f-text); color: var(--title); transition: border-color .2s, background .2s; }
.order__form input:not([type="checkbox"]):focus { outline: none; border-color: var(--red); background: var(--white); box-shadow: 0 0 0 4px rgba(210,54,26,.15); }
.order__check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; font-size: 15px; color: var(--text) !important; }
.order__check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--red); flex: none; }
.order__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.order__msg { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--tint-2); color: var(--red-deep); font-weight: 600; }
.order__form .btn { justify-self: start; margin-top: 6px; }
.order__ok .btn { margin-top: 24px; }
.order__foot { margin: auto 0 0; color: #FFE1D7; font: 500 12px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.foot__legal a, .order__foot a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.order__check a { color: var(--red-deep); text-decoration: underline; text-underline-offset: 2px; }
.order__check > span:first-child { display: flex; }

/* Páginas legales (aviso-legal/, privacidad/) */
.legal { background: var(--tint); color: var(--text); font-family: var(--f-text); }
.legal__top { background: var(--red); padding: 22px 0; }
.legal__top .logo { color: var(--white); }
.legal__main { max-width: 760px; padding-block: 56px 72px; }
.legal__main .display { font-size: clamp(44px, 7vw, 76px); }
.legal__date { margin: 12px 0 0; font: 500 12px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.legal__main h2 { margin: 40px 0 10px; font: 600 22px/1.25 var(--f-text); color: var(--title); }
.legal__main p, .legal__main li { font-size: 17px; line-height: 1.6; }
.legal__main ul { padding-left: 20px; }
.legal__main a { color: var(--red-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal__foot { padding: 24px 0; background: var(--dark); color: var(--on-dark-2); font: 500 12px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.legal__foot a { color: inherit; }
