/* Hallmark · shape: stage sales page (brief order) · genre: playful · theme: Coral (deal 1/3, seed mobile-first-sales-puppy-training-6cd9·16d36cb5·2026-12-03·r0), brand colours and rounded type by brief · job: buy · draw: manual (fast mode)
 * hero: stage, copy beside a turnable book · nav: none · footer: logo and name · imagery: photographs, the product · signature: the book you can turn
 * axes: light/rounded-sans/warm · posture: restrained · contrast: pass · fold: pass · copy: verbatim · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R4 V4 · weakest: E, one pain card has no photograph; set it as a night card until a real one arrives */
/* Hallmark · waive 44c · the book canvas and its drag hint reach y 800 of 900 · the hero visual is a WebGL book the text-based measure does not count */
/* Hallmark · waive 79 · screenshot at 1440 shows the stage filled below the button · the gap measured under the copy is occupied by the turnable book */
/* Hallmark · waive 26b · no element on the page can be disabled · the only inputs are the problem chips of the quiz, always selectable */

.on-teal { background: var(--color-teal); color: var(--color-on-teal); --color-focus: var(--color-amber); }
.band { padding-block: var(--section-gap); }
h2 { margin-bottom: var(--space-xl); }

/* Botón único */
.btn { position: relative; display: inline-flex; justify-content: center; align-items: center; min-height: 52px; width: 100%; max-width: 26rem; padding: var(--space-sm) var(--space-lg);
  background: var(--color-amber); color: var(--color-accent-ink); border-radius: var(--radius-pill); box-shadow: 0 6px 0 var(--color-shade);
  font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg); line-height: 1.15; text-align: center; text-decoration: none;
  transition: transform var(--dur-short) var(--ease-out); }
.btn:hover { background: var(--color-amber-hi); transform: translateY(-2px); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--color-shade); }

/* 1 · Hero */
.hero { background: linear-gradient(180deg, var(--color-teal-night), var(--color-teal-deep) 55%, var(--color-teal)); padding-block: var(--space-lg) var(--space-xl); }
.hero-grid { display: grid; gap: var(--space-lg); }
.hero-copy { display: grid; gap: var(--space-md); justify-items: start; min-width: 0; }
.hook { font-size: clamp(3rem, 14.5vw, 5.75rem); line-height: 0.96; max-width: 9ch; }
.hero .lead { color: var(--color-on-teal-2); max-width: 30ch; }
.stage { position: relative; margin: 0; height: min(108vw, 460px); min-width: 0; isolation: isolate; }
.stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(closest-side, var(--color-glow), transparent); }
.stage-poster, .stage-video, .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-poster, .stage-video { object-fit: cover; mask-image: radial-gradient(closest-side, black 62%, transparent); }
.stage-poster { transition: opacity var(--dur-long) var(--ease-out); }
.stage canvas { height: calc(100% - var(--space-xl)); touch-action: pan-y; cursor: grab; border-radius: var(--radius-card); }
.stage canvas:active { cursor: grabbing; }
.stage.is-3d .stage-poster { opacity: 0; pointer-events: none; }
.stage-hint { position: absolute; inset: auto 0 0; text-align: center; font-size: var(--text-sm); color: var(--color-on-teal-2); pointer-events: none; }

/* 2 · Dolor */
.pain-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap-columns); grid-template-columns: minmax(0, 1fr); }
.pain-card { display: flex; flex-direction: column; background: var(--color-paper-2); border-radius: var(--radius-card); overflow: hidden; }
.pain-card img { width: 100%; aspect-ratio: 720 / 437; object-fit: cover; }
.pain-body { display: grid; gap: var(--space-sm); padding: var(--space-lg); }
.pain-body h3 { font-size: var(--text-2xl); line-height: 1.05; }
.pain-body h3::after { content: ""; display: block; width: 48px; height: 5px; margin-top: var(--space-sm); border-radius: var(--radius-pill); background: var(--color-coral); }
.pain-card.night { background: var(--color-teal-night); color: var(--color-on-teal); justify-content: center; --color-focus: var(--color-amber); }
.pain-card.night h3 { font-size: var(--text-display-s); }
.exit { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; text-decoration-color: var(--color-coral); text-decoration-thickness: 3px; }
.exit:hover { text-decoration-thickness: 5px; }
.verdict { margin-top: var(--space-2xl); max-width: 17ch; font-family: var(--font-display); font-weight: 800; font-size: var(--text-display-s); line-height: 1.05; color: var(--color-teal); text-wrap: balance; }

/* Urgencia: barra superior, contador y barra fija. El ámbar queda solo para comprar. */
.barra-oferta { margin: 0; padding: var(--space-xs) var(--space-md); background: var(--color-coral); color: var(--color-ink); text-align: center; font-weight: 700; font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.barra-oferta b { white-space: nowrap; }
.confianza { font-size: var(--text-sm); color: var(--color-on-teal-2); }
.pulso::after { content: ""; position: absolute; inset: 0; border: 3px solid var(--color-amber); border-radius: inherit; pointer-events: none; opacity: 0; animation: pulso 2.4s var(--ease-out) infinite; }
@keyframes pulso { 0% { opacity: 0.9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.07, 1.35); } }
.barra-compra { position: fixed; inset: auto 0 0; z-index: var(--z-sticky); display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); padding: var(--space-sm) var(--space-md) calc(var(--space-sm) + env(safe-area-inset-bottom)); background: var(--color-teal-night); box-shadow: 0 -6px 18px var(--color-shade); }
.barra-compra p { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--space-xs); font-variant-numeric: tabular-nums; min-width: 0; }
.barra-compra strong { font-family: var(--font-display); font-size: var(--text-xl); }
.barra-compra s { font-size: var(--text-sm); color: var(--color-on-teal-2); text-decoration-color: var(--color-coral); }
.barra-compra p [data-oferta] { flex-basis: 100%; font-size: var(--text-xs); }
.barra-compra .btn { width: auto; flex: none; font-size: var(--text-md); }

/* Diagnóstico interactivo */
.diag { background: var(--color-teal-night); }
.diag h2 { margin-bottom: var(--space-sm); }
.opciones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); margin: var(--space-xl) 0 0; padding: 0; border: 0; min-width: 0; }
.opciones label { position: relative; display: grid; }
.opciones input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opciones span { display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.2; min-height: 52px; padding: var(--space-2xs) var(--space-sm); border: 2px solid var(--color-on-teal-2); border-radius: var(--radius-pill); font-weight: 800; pointer-events: none; }
.opciones label:hover span { border-color: var(--color-coral); }
.opciones input:checked + span { background: var(--color-cream); border-color: var(--color-cream); color: var(--color-ink); }
.opciones input:focus-visible + span { outline: 3px solid var(--color-coral); outline-offset: 2px; }
.respuesta { display: none; scroll-margin-block: var(--space-md) 120px; justify-items: start; gap: var(--space-md); max-width: 40rem; margin-top: var(--space-xl); padding: var(--space-lg); background: var(--color-cream); color: var(--color-ink); border-radius: var(--radius-card); }
.respuesta h3 { font-size: var(--text-xl); }
.diag:has(#d-pipi:checked) #r-pipi, .diag:has(#d-muerde:checked) #r-muerde, .diag:has(#d-noche:checked) #r-noche,
.diag:has(#d-zapato:checked) #r-zapato, .diag:has(#d-correa:checked) #r-correa, .diag:has(#d-llamada:checked) #r-llamada,
.diag:has(#d-rebelde:checked) #r-rebelde, .diag:has(#d-miedo:checked) #r-miedo, .diag:has(#d-culpa:checked) #r-culpa { display: grid; }
@supports not selector(:has(*)) { .respuesta { display: grid; } }

/* Sin método / con método */
.versus { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap-columns); margin-bottom: var(--space-xl); }
.lado { padding: var(--space-lg); border-radius: var(--radius-card); }
.lado.sin { border: 2px dashed var(--color-rule); color: var(--color-muted); }
.lado.con { background: var(--color-teal); color: var(--color-on-teal); box-shadow: 8px 10px 0 var(--color-shade); }
.lado h3 { font-size: var(--text-2xl); margin-bottom: var(--space-md); }
.lado ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-md); font-weight: 700; }
.lado li { position: relative; padding-left: var(--space-xl); }
.sin li::before { content: "✕"; position: absolute; left: 0; color: var(--color-coral); font-weight: 800; }
.con li::before { content: "✓"; position: absolute; left: 0; color: var(--color-coral); font-weight: 800; }

/* 3 · Solución */
.solution-grid { display: grid; gap: var(--space-2xl); align-items: center; }
.steps { --avance: 1; position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xl); counter-reset: paso; }
.steps::before, .steps::after { content: ""; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 3px; background: var(--color-teal-night); }
.steps::after { background: var(--color-coral); transform-origin: top; transform: scaleY(var(--avance)); }
.steps li { position: relative; z-index: var(--z-base); counter-increment: paso; padding-left: 68px; min-height: 48px; }
.steps li::before { content: counter(paso); position: absolute; left: 0; top: 0; width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--radius-pill);
  background: var(--color-cream); color: var(--color-ink); font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg); }
.steps p { color: var(--color-on-teal-2); margin-top: var(--space-2xs); }
.post { width: 100%; max-width: 420px; justify-self: center; border-radius: var(--radius-card); box-shadow: 10px 14px 0 var(--color-shade); }

/* 4 · Módulos */
.modules { background: var(--color-paper-2); }
.module-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--gap-columns); counter-reset: modulo; }
.module-list li { counter-increment: modulo; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: var(--space-md); padding: var(--space-lg) var(--space-xs); border-top: 2px solid var(--color-rule); }
.module-list li::before { content: counter(modulo); grid-row: span 2; font-family: var(--font-display); font-weight: 800; font-size: var(--text-3xl); line-height: 1; color: var(--color-teal); text-align: center; }
.module-list li:target { background: var(--color-cream); border-radius: var(--radius-input); }
.module-list p { color: var(--color-ink-2); }

/* 5 · Qué incluye */
.included-grid { display: grid; gap: var(--space-xl); align-items: center; }
.photo { width: 100%; border-radius: var(--radius-card); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-md); font-size: var(--text-lead); font-weight: 700; }
.checks li { position: relative; padding-left: var(--space-xl); }
.checks li::before { content: ""; position: absolute; left: 6px; top: 0.2em; width: 9px; height: 17px; border: solid var(--color-coral); border-width: 0 4px 4px 0; transform: rotate(45deg); }

/* 6 · Precio */
.price-box { display: grid; justify-items: center; text-align: center; gap: var(--space-md); }
.price h2 { margin: 0; max-width: 18ch; }
.amount { display: grid; justify-items: center; gap: var(--space-sm); font-family: var(--font-display); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.amount s { font-size: var(--text-2xl); color: var(--color-on-teal-2); text-decoration-color: var(--color-coral); text-decoration-thickness: 4px; }
.amount strong { font-size: clamp(4rem, 19vw, 8rem); }
.amount [data-precio] { display: block; }
.terms { font-size: var(--text-lead); max-width: 30ch; }
.honest { font-size: var(--text-sm); color: var(--color-on-teal-2); margin-top: var(--space-sm); }

.ticket { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--space-md); width: 100%; max-width: 34rem; padding: var(--space-xl) var(--space-lg); background: var(--color-cream); color: var(--color-ink); border-radius: var(--radius-card); box-shadow: 12px 14px 0 var(--color-shade); --color-focus: var(--color-teal); }
.ticket .amount s { color: var(--color-muted); }
.ticket .amount strong { color: var(--color-teal); font-size: clamp(3.5rem, 17vw, 6rem); }
.cuenta { display: grid; justify-items: center; gap: var(--space-sm); width: 100%; padding-bottom: var(--space-lg); border-bottom: 3px dashed var(--color-rule); font-weight: 800; }
.cajas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-xs); width: 100%; margin: 0; padding: 0; list-style: none; }
.cajas li { display: grid; padding-block: var(--space-sm); background: var(--color-teal-night); color: var(--color-cream); border-bottom: 5px solid var(--color-coral); border-radius: var(--radius-input); }
.cajas b { font-family: var(--font-display); font-size: var(--text-3xl); line-height: 1; font-variant-numeric: tabular-nums; }
.cajas span { font-size: var(--text-xs); }
.cierre { font-size: var(--text-sm); font-weight: 700; color: var(--color-muted); }
.ticket .resumen { justify-self: stretch; text-align: left; font-size: var(--text-md); gap: var(--space-xs); }
.garantia { display: flex; align-items: center; gap: var(--space-md); text-align: left; font-weight: 800; max-width: 22rem; }
.garantia b { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border: 4px double var(--color-teal); border-radius: var(--radius-pill); font-family: var(--font-display); font-size: var(--text-2xl); color: var(--color-teal); }

/* 7 · Preguntas */
.faq-box { max-width: 60rem; }
.faq details { border-top: 2px solid var(--color-rule); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); min-height: 64px; padding-block: var(--space-sm); cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: var(--text-2xl); color: var(--color-teal); transition: transform var(--dur-short) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--color-teal); }
.faq details p { padding-bottom: var(--space-lg); color: var(--color-ink-2); }

/* 8 · Cierre y pie */
.final { background: var(--color-teal-deep); }
.final-box { display: grid; justify-items: center; text-align: center; gap: var(--space-lg); }
.final-video { width: 100%; max-width: 900px; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--radius-card); }
.final h2 { margin: 0; }
.footer { background: var(--color-teal-night); color: var(--color-on-teal); padding-block: var(--space-xl); }
.footer-row { display: flex; align-items: center; gap: var(--space-md); font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg); }
.footer img { width: 72px; height: 72px; border-radius: var(--radius-pill); }

@media (min-width: 45rem) {
  .opciones { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
  .pain-grid, .module-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 60rem) {
  .barra-compra { display: none; }
  .versus { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: 100svh; display: grid; align-items: center; }
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
  .hero-copy { gap: var(--space-lg); }
  .hook { font-size: clamp(4rem, 6.4vw, 5.75rem); }
  .stage { height: min(86svh, 740px); }
  .solution-grid, .included-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
