/* Reto Cintura 28 · Apertura (una sola pantalla), bloque de precio y quiz.
   Dos temas: "noche" (oscuro premium, por defecto) y "hueso" (claro editorial). Se elige con ?tema= o con "tema" en landing-config.json. */

.ap, .qz, .pb {
  --a-bg: #150A1F; --a-bg2: #26102F; --a-ink: #FFFFFF; --a-sub: rgba(255, 255, 255, .78); --a-mute: rgba(255, 255, 255, .56);
  --a-card: rgba(255, 255, 255, .07); --a-line: rgba(255, 255, 255, .16); --a-hi: #CFF56A; --a-hi-ink: #1C1324;
  --a-btn: #E5156E; --a-btn-ink: #FFFFFF; --a-glow: rgba(229, 21, 110, .5); --a-glow2: rgba(207, 245, 106, .16);
  --a-sel: rgba(207, 245, 106, .14); --a-red: #FF5C6C;
  --a-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --a-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.ap[data-theme="hueso"], .qz[data-theme="hueso"], [data-theme="hueso"] .pb {
  --a-bg: #FCF9F7; --a-bg2: #F3D3D0; --a-ink: #1C1324; --a-sub: #463A4E; --a-mute: #6E6475;
  --a-card: #FFFFFF; --a-line: rgba(28, 19, 36, .14); --a-hi: #E5156E; --a-hi-ink: #FFFFFF;
  --a-btn: #E5156E; --a-btn-ink: #FFFFFF; --a-glow: rgba(229, 21, 110, .18); --a-glow2: rgba(207, 245, 106, .5);
  --a-sel: #FFE4EE; --a-red: #C8142A;
}
.ap *, .ap *::before, .ap *::after, .qz *, .qz *::before, .qz *::after { box-sizing: border-box; }
.ap, .qz { font-family: var(--a-body); }
.ap h1, .ap h2, .qz h2, .ap p, .qz p, .ap ul, .qz ul { margin: 0; }

/* ---------- Apertura ---------- */
.ap { position: relative; isolation: isolate; overflow: hidden; background: var(--a-bg); color: var(--a-ink);
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 84px 0 28px; }
.ap::before { content: ""; position: absolute; z-index: -1; inset: 0;
  background: radial-gradient(60% 50% at 82% 38%, var(--a-glow) 0%, transparent 70%), radial-gradient(50% 40% at 8% 100%, var(--a-glow2) 0%, transparent 70%), linear-gradient(180deg, var(--a-bg) 0%, var(--a-bg2) 130%); }
.ap-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.ap-kick { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: .84rem; letter-spacing: .06em; text-transform: uppercase; color: var(--a-sub);
  background: var(--a-card); border: 1px solid var(--a-line); padding: 7px 14px 7px 10px; border-radius: 999px; }
.ap-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--a-hi); box-shadow: 0 0 0 0 var(--a-hi); animation: ap-pulse 2s infinite; }
@keyframes ap-pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.ap-h1 { margin-top: 18px !important; font-family: var(--a-display); font-weight: 800; font-variation-settings: "wdth" 82; letter-spacing: -.035em; line-height: .96; text-wrap: balance;
  font-size: clamp(2.7rem, 6vw, 5.3rem); }
.ap-h1 em { font-style: normal; color: var(--a-hi); }
.ap-h1 span { display: block; margin-top: .18em; font-size: .42em; font-variation-settings: "wdth" 92; font-weight: 700; letter-spacing: -.02em; line-height: 1.12; color: var(--a-sub); }
.ap-sub { margin-top: 18px !important; font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.5; color: var(--a-sub); max-width: 46ch; }
.ap-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px !important; }
.ap-chips li { font-weight: 600; font-size: .86rem; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--a-line); color: var(--a-ink); background: var(--a-card); }
.ap-chips li::before { content: "✓"; margin-right: 7px; color: var(--a-hi); font-weight: 800; }
.ap-cta { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.ap-btn { appearance: none; border: 0; cursor: pointer; font-family: var(--a-body); display: inline-flex; flex-direction: column; align-items: center; gap: 2px; text-align: center;
  background: var(--a-btn); color: var(--a-btn-ink); font-weight: 800; font-size: 1.14rem; padding: 17px 34px 15px; border-radius: 999px; min-width: min(100%, 340px);
  box-shadow: 0 12px 34px var(--a-glow), inset 0 -3px 0 rgba(0, 0, 0, .16); transition: transform .15s, box-shadow .15s; animation: ap-nudge 4.5s 2.5s infinite; }
.ap-btn small { font-weight: 600; font-size: .78rem; opacity: .88; }
.ap-btn:hover { transform: translateY(-2px); }
.ap-btn:active { transform: scale(.98); }
@keyframes ap-nudge { 0%, 88%, 100% { transform: none; } 92% { transform: scale(1.035); } 96% { transform: scale(.995); } }
.ap-more { display: inline-block; margin-top: 14px; font-weight: 700; font-size: .95rem; color: var(--a-sub); text-underline-offset: 4px; }
.ap-more:hover { color: var(--a-ink); }

/* Video del hero: fondo integrado y compra directa como acción principal. */
.ap.ap-motion { --a-ink: #FFF; --a-sub: rgba(255,255,255,.78); --a-hi: #CFF56A; --a-hi-ink: #1C1324; --a-mute: rgba(255,255,255,.56); --a-card: rgba(255,255,255,.07); --a-line: rgba(255,255,255,.16); background: var(--hero-video-bg, #1C1224); }
.ap-motion::before { display: none; }
.ap-motion .ap-h1 { font-size: clamp(2.65rem, 5.4vw, 4.65rem); }
.ap-motion .ap-h1 > em { display: block; margin-top: .04em; }
.ap-motion .ap-visual { width: min(100%, 520px); }
.ap-hero-video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; background: var(--hero-video-bg, #1C1224); border: 0; border-radius: 0; box-shadow: none; cursor: pointer; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ap-hero-video[data-hero-video]:not([data-layout]) { display: none; }
.ap-support { margin-top: 20px; padding-left: 14px; border-left: 2px solid var(--a-hi); font-size: .91rem; line-height: 1.5; color: var(--a-sub); display: grid; gap: 4px; }
.ap-support b { color: #FFF; }
.ap-motion .ap-cta { gap: 14px; margin-top: 22px; }
.ap-buy { flex-direction: row; flex-wrap: wrap; justify-content: center; column-gap: 10px; text-decoration: none; background: #CFF56A; color: #1C1324; box-shadow: 0 10px 26px rgba(207,245,106,.14); animation: none; }
.ap-buy small { flex-basis: 100%; }
.ap-test { appearance: none; border: 0; background: transparent; padding: 8px 0; min-height: 44px; cursor: pointer; font: 600 .9rem var(--a-body); color: var(--a-sub); text-align: left; text-decoration: underline; text-underline-offset: 4px; }
.ap-test:hover { color: #FFF; }

/* Teléfono de versiones anteriores (sin uso en el hero actual). */
.ap-visual { position: relative; justify-self: center; width: min(100%, 390px); }
.ap-phone { position: relative; border-radius: 40px; padding: 9px; background: linear-gradient(160deg, #3b2548, #120819); box-shadow: 0 40px 90px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .12) inset; transform: rotate(3deg); }
.ap-phone img { width: 100%; border-radius: 32px; aspect-ratio: 780 / 1688; object-fit: cover; object-position: top; }
.ap[data-theme="hueso"] .ap-phone { box-shadow: 0 40px 80px rgba(28, 19, 36, .28), 0 0 0 1px rgba(255, 255, 255, .12) inset; }
.ap-float { position: absolute; z-index: 2; display: grid; gap: 1px; background: var(--a-card); border: 1px solid var(--a-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 11px 16px; border-radius: 18px; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); }
.ap[data-theme="noche"] .ap-float { background: rgba(32, 16, 44, .72); }
.ap-float b { font: 800 1.15rem var(--a-display); letter-spacing: -.02em; color: var(--a-ink); }
.ap-float span { font-size: .76rem; color: var(--a-sub); }
.ap-float.f1 { top: 9%; left: -14%; animation: ap-bob 6s ease-in-out infinite; }
.ap-float.f2 { top: 46%; right: -12%; animation: ap-bob 7s -2s ease-in-out infinite; }
.ap-float.f3 { bottom: 9%; left: -9%; animation: ap-bob 6.5s -4s ease-in-out infinite; }
.ap-float.f2 b { color: var(--a-hi); }
@keyframes ap-bob { 50% { transform: translateY(-9px); } }

/* ---------- Bloque de precio ---------- */
.pb { position: relative; display: flex; flex-direction: column; gap: 6px; color: var(--a-ink); font-family: var(--a-body); }
.pb-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.pb-now { font: 800 clamp(2.6rem, 6.4vw, 3.6rem)/.9 var(--a-display); font-variation-settings: "wdth" 80; letter-spacing: -.045em; }
.pb-list { font: 700 1.2rem/1 var(--a-display); color: var(--a-mute); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--a-red); letter-spacing: -.02em; }
/* Sticker del descuento, al lado del precio */
.pb-off { display: inline-block; font: 800 1.05rem/1 var(--a-display); font-variation-settings: "wdth" 90; letter-spacing: -.01em; white-space: nowrap;
  background: var(--a-hi); color: var(--a-hi-ink); padding: 8px 11px 7px; border-radius: 12px; transform: rotate(-6deg); box-shadow: 0 8px 22px var(--a-glow2); animation: pb-pop .5s .3s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes pb-pop { from { transform: rotate(-6deg) scale(.4); opacity: 0; } }
.pb-l .pb-list { flex-basis: 100%; }
/* Cupón ya aplicado (ticket) */
.pb-coupon { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--a-hi); border: 1.5px dashed var(--a-hi); border-radius: 9px; padding: 5px 11px; margin-bottom: 4px; }
.pb-coupon::before { content: "✓"; font-weight: 800; }
.pb-coupon b { font-weight: 800; letter-spacing: .05em; }
/* Línea roja chica de urgencia (hero, debajo de cada botón al checkout y en el resultado del quiz) */
.pb-red { display: flex; align-items: center; gap: 7px; margin: 0; font-family: var(--a-body, var(--body)); font-size: .8rem; font-weight: 700; line-height: 1.3; letter-spacing: .01em; color: var(--a-red, #FF5C6C); }
.pb-red i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pb-blink 1.6s ease-in-out infinite; }
.pb-red b { font-variant-numeric: tabular-nums; }
.pb-red[hidden] { display: none; }
.pb-red-c { justify-content: center; text-align: center; margin-top: -4px; }
@keyframes pb-blink { 50% { opacity: .25; } }
.pb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pb-note { font-size: .86rem; color: var(--a-sub); }
.pb-note b { font-variant-numeric: tabular-nums; color: var(--a-ink); }
.pb-demo { align-self: flex-start; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: #FFC400; color: #1C1324; padding: 3px 8px; border-radius: 6px; }
.pb-l .pb-now { font-size: clamp(3rem, 12vw, 4rem); }

/* Dentro de la tarjeta de precio oscura (sección #precio) */
.r28-price .pb { --a-ink: #FFFFFF; --a-sub: rgba(255, 255, 255, .78); --a-mute: rgba(255, 255, 255, .56); --a-hi: #CFF56A; --a-hi-ink: #1C1324; }
.r28-price .pb-now { font-size: clamp(3rem, 7vw, 4.4rem); }
.r28-sticky s { color: rgba(255, 255, 255, .55); font-weight: 600; font-size: .9rem; margin-right: 6px; text-decoration-color: #FF5C6C; }
.r28-sticky small[data-deadline] { color: #FF5C6C; font-weight: 700; }
.r28-sticky small[data-deadline] b { font-variant-numeric: tabular-nums; color: #fff; }
.qz-buy s { font-weight: 600; opacity: .7; text-decoration-thickness: 2px; }

/* Barra superior sobre el tema oscuro */
html[data-tema="noche"] .r28-logo { background: rgba(21, 10, 31, .72); color: #fff; }
html[data-tema="noche"] .r28-topcta { background: var(--fucsia); }

/* ---------- Quiz ---------- */
html.qz-lock, html.qz-lock body { overflow: hidden; }
.qz { position: fixed; z-index: 100; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--a-bg); color: var(--a-ink); animation: qz-in .28s ease-out; }
.qz[hidden] { display: none; }
.qz::before { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(60% 40% at 80% 0%, var(--a-glow) 0%, transparent 70%), linear-gradient(180deg, var(--a-bg), var(--a-bg2) 140%); }
@keyframes qz-in { from { opacity: 0; transform: translateY(14px); } }
.qz-in { width: min(560px, 100%); margin: 0 auto; padding: calc(14px + env(safe-area-inset-top, 0px)) 18px calc(34px + env(safe-area-inset-bottom, 0px)); min-height: 100%; display: flex; flex-direction: column; }
.qz-top { display: flex; align-items: center; gap: 12px; padding-block: 6px 22px; }
.qz-back, .qz-x { appearance: none; border: 1px solid var(--a-line); background: var(--a-card); color: var(--a-ink); width: 40px; height: 40px; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; flex: none; }
.qz-bar { flex: 1; height: 8px; border-radius: 99px; background: var(--a-line); overflow: hidden; }
.qz-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #E5156E, var(--a-hi)); transition: width .35s ease; }
.qz-q { animation: qz-in .3s ease-out; }
.qz-count { font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--a-hi); }
.qz-h { margin-top: 10px !important; font: 800 clamp(1.8rem, 6.6vw, 2.5rem)/1.04 var(--a-display); letter-spacing: -.03em; font-variation-settings: "wdth" 88; text-wrap: balance; outline: none; }
.qz-hint { margin-top: 10px !important; color: var(--a-mute); font-size: .95rem; }
.qz-ops { margin-top: 22px; display: grid; gap: 10px; }
.qz-op { appearance: none; text-align: left; cursor: pointer; font: 600 1.04rem/1.3 var(--a-body); color: var(--a-ink); background: var(--a-card); border: 1.5px solid var(--a-line); border-radius: 18px; padding: 17px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; transition: transform .12s, border-color .12s, background .12s; }
.qz-op i { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--a-line); transition: .12s; }
.qz-op:hover { border-color: var(--a-hi); }
.qz-op:active { transform: scale(.985); }
.qz-op.is-sel { border-color: var(--a-hi); background: var(--a-sel); }
.qz-op.is-sel i { background: var(--a-hi); border-color: var(--a-hi); box-shadow: inset 0 0 0 5px var(--a-sel); }

.qz-res { animation: qz-in .35s ease-out; display: grid; gap: 12px; }
.qz-kick { font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--a-hi); }
.qz-rh { font: 800 clamp(2rem, 8vw, 2.8rem)/1 var(--a-display); letter-spacing: -.035em; font-variation-settings: "wdth" 84; text-wrap: balance; }
.qz-rs { color: var(--a-sub); }
.qz-chips { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.qz-chips-t { font-size: .84rem; color: var(--a-mute); width: 100%; }
.qz-chip { font-size: .84rem; font-weight: 600; border: 1px solid var(--a-line); background: var(--a-card); border-radius: 999px; padding: 6px 12px; }
.qz-card { background: var(--a-card); border: 1px solid var(--a-line); border-radius: 18px; padding: 14px 16px; }
.qz-card b { display: block; font: 800 .98rem var(--a-display); letter-spacing: -.01em; margin-bottom: 4px; }
.qz-card p { color: var(--a-sub); font-size: .96rem; line-height: 1.45; }
.qz-inc { list-style: none; padding: 0; display: grid; gap: 7px; font-size: .95rem; }
.qz-inc li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.qz-inc li::before { content: "✓"; color: var(--a-hi); font-weight: 800; }
.qz-offer { margin-top: 6px; display: grid; gap: 14px; background: var(--a-card); border: 1.5px solid var(--a-hi); border-radius: 24px; padding: 20px 18px; }
.qz-buy { display: block; text-align: center; text-decoration: none; background: var(--a-btn); color: var(--a-btn-ink); font-weight: 800; font-size: 1.15rem; padding: 18px 20px; border-radius: 999px; box-shadow: 0 12px 34px var(--a-glow), inset 0 -3px 0 rgba(0, 0, 0, .16); }
.qz-buy:active { transform: scale(.98); }
.qz-fix { position: sticky; bottom: 0; z-index: 3; margin: 6px -18px 0; padding: 22px 18px calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(180deg, transparent, var(--a-bg) 38%); transition: opacity .2s; }
.qz-fix .qz-buy { white-space: nowrap; }
.qz-fix.is-off { opacity: 0; pointer-events: none; }
.qz-close { text-align: center; color: var(--a-sub); font-size: .92rem; }
.qz-info, .qz-redo { appearance: none; background: none; border: 0; cursor: pointer; font: 700 .95rem var(--a-body); color: var(--a-sub); text-decoration: underline; text-underline-offset: 4px; padding: 6px; justify-self: center; }
.qz-g { font-size: .88rem; color: var(--a-sub); text-align: center; }
.qz-s { font-size: .74rem; color: var(--a-mute); text-align: center; line-height: 1.4; }

/* Selector de tema (solo con ?preview=1) */
.tema-sw { position: fixed; z-index: 120; left: 10px; bottom: 10px; display: flex; gap: 6px; align-items: center; background: rgba(0, 0, 0, .78); color: #fff; font: 600 12px system-ui; padding: 6px 8px; border-radius: 12px; }
.tema-sw button { appearance: none; border: 1px solid rgba(255, 255, 255, .4); background: none; color: #fff; border-radius: 8px; padding: 4px 9px; font: inherit; cursor: pointer; }

/* ---------- Celular ---------- */
@media (max-width: 860px) {
  .ap { align-items: flex-start; padding: 78px 0 0; min-height: 0; }
  .ap-grid { grid-template-columns: 1fr; gap: 0; }
  .ap-h1 { font-size: clamp(2.6rem, 12.4vw, 3.7rem); }
  .ap-cta { margin-top: 22px; width: 100%; }
  .ap-btn { width: 100%; }
  .ap-more { margin-top: 12px; }
  .ap-visual { width: min(100%, 480px); margin-top: 26px; margin-bottom: 0; }
  .ap-motion { padding-bottom: 28px; }
  .ap-motion .ap-h1 { font-size: clamp(2.6rem, 10.6vw, 3.7rem); }
  .ap-motion .ap-buy { width: 100%; }
  .ap-test { width: 100%; text-align: center; }
  .ap-float.f1 { left: -12%; } .ap-float.f2 { right: -10%; } .ap-float.f3 { display: none; }
  .ap-chips { margin-top: 14px !important; }
}
@media (min-width: 861px) { .ap { padding-top: 96px; } }
@media (prefers-reduced-motion: reduce) { .ap-btn, .ap-float, .ap-dot, .qz, .qz-q, .qz-res, .pb-off, .pb-red i { animation: none !important; } }

.r28-sticky small[data-deadline]:not([hidden]) + small { display: none; }
.qz-h:focus-visible { outline: none; }
.r28-sticky span, .r28-sticky b, .r28-sticky s { white-space: nowrap; }

/* Bonus dentro de la tarjeta de precio */
.r28-price .pb:not(.is-launch) .pb-note { display: none; }
.r28-bonuses { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 14px; }
.r28-bonuses p { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55); margin-bottom: 9px; }
.r28-bonuses ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.r28-bonuses li { display: grid; grid-template-columns: 18px 1fr; gap: 9px; align-items: start; font-size: .84rem; line-height: 1.4; color: rgba(255, 255, 255, .8); }
.r28-bonuses li::before { content: "✓"; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: rgba(207, 245, 106, .14); color: #CFF56A; font-size: 10px; font-weight: 800; display: grid; place-items: center; }

.ap-ask { font-weight: 700; font-size: 1.06rem; line-height: 1.3; color: var(--a-ink); margin: 0 0 -4px !important; max-width: 30ch; }

/* CTA del quiz repetida en la página */
.cta-quiz { appearance: none; border: 0; cursor: pointer; font-family: var(--body); display: inline-flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; margin-top: 22px;
  background: var(--fucsia); color: #fff; font-weight: 800; font-size: 1.1rem; padding: 16px 30px 14px; border-radius: 999px; box-shadow: 0 12px 30px rgba(229, 21, 110, .3); transition: transform .15s; }
.cta-quiz small { font-weight: 600; font-size: .78rem; opacity: .9; }
.cta-quiz:hover { transform: translateY(-2px); }
.cta-quiz:active { transform: scale(.98); }
.r28-final-cta { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.r28-final .cta-quiz { margin-top: 0; }
@media (max-width: 860px) { .cta-quiz { width: 100%; } .r28-final-cta .r28-white { width: 100%; justify-content: center; } }
