/* Landing de compra (mobile-first). Paleta oficial: coffee / ivory / orchid / cta / wisteria (ver app.css). */
body.landing { background: var(--coffee); color: var(--ivory); min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }
.landing h1, .landing h2, .landing h3 { color: var(--ivory); }
.landing a { color: var(--wisteria); }
.landing a.cta { color: var(--coffee); }
.landing a.fact, .landing .foot-l a.wa { color: var(--ivory); }
.landing { --card: #2B1A21; --card-line: rgba(180, 160, 229, .2); --soft: rgba(251, 255, 241, .72); --c-general: #FF4B3E; --c-vip: #A8E52C; --c-iconik: #FF63B8; }
.wrap-l { width: 100%; max-width: 520px; margin: 0 auto; padding: 0 18px; }
.boot { min-height: 100dvh; display: grid; place-items: center; }
.boot img { width: 150px; opacity: .8; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* hero */
.hero { position: relative; min-height: 92vh; min-height: min(92svh, 820px); display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--safe-t) + 18px) 0 28px; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background-color: var(--coffee); background-image: url('/img/hero-m.jpg'); background-image: -webkit-image-set(url('/img/hero-m.jpg') 1x, url('/img/hero-m@2x.jpg') 2x); background-image: image-set(url('/img/hero-m.jpg') 1x, url('/img/hero-m@2x.jpg') 2x); background-size: cover; background-position: center top; background-repeat: no-repeat; }
/* Degradado de arriba hacia abajo con curva suave (sin bandas) que termina EXACTAMENTE en --coffee, el color de fondo de la página: la imagen se funde sin costura. */
.hero::after { content: ''; position: absolute; inset: -1px 0; z-index: -1; background: linear-gradient(180deg,
  rgba(30, 16, 20, .55) 0%, rgba(30, 16, 20, .25) 8%, rgba(30, 16, 20, 0) 18%, rgba(30, 16, 20, 0) 36%,
  rgba(30, 16, 20, .06) 44%, rgba(30, 16, 20, .16) 52%, rgba(30, 16, 20, .32) 60%, rgba(30, 16, 20, .52) 68%,
  rgba(30, 16, 20, .72) 76%, rgba(30, 16, 20, .88) 84%, rgba(30, 16, 20, .96) 91%, rgba(30, 16, 20, .995) 96%, #1E1014 100%); }
.hero .brand { position: absolute; top: calc(var(--safe-t) + 16px); left: 18px; width: 92px; filter: drop-shadow(0 3px 12px rgba(0, 0, 0, .5)); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--cta); margin-bottom: 10px; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--cta); border-radius: 2px; }
.hero h1 { font-size: clamp(40px, 14vw, 76px); font-weight: 400; letter-spacing: .04em; line-height: .95; white-space: nowrap; margin: 0 0 14px; text-shadow: 0 4px 30px rgba(0, 0, 0, .55); }
.hero .sub { color: var(--soft); font-size: 15px; margin: 0 0 22px; max-width: 34ch; }
.hero .sub b { color: var(--ivory); font-weight: 600; }
.cta { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; padding: 0 22px; border: 0; border-radius: 16px; background: var(--cta); color: var(--coffee); font-size: 17px; font-weight: 700; letter-spacing: .02em; text-decoration: none; cursor: pointer; box-shadow: 0 10px 34px rgba(13, 231, 86, .32); transition: transform .1s ease, filter .15s ease; }
.cta:active { transform: scale(.98); }
.cta:hover { filter: brightness(1.06); }
.cta svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cta:disabled { opacity: .5; box-shadow: none; cursor: not-allowed; }
.from { text-align: center; margin: 12px 0 0; font-size: 13px; color: var(--soft); }
.from b { color: var(--ivory); }

/* datos clave */
.facts { display: grid; gap: 10px; padding-top: 8px; padding-bottom: 6px; }
.fact { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--card); border: 1px solid var(--card-line); border-radius: 16px; text-decoration: none; color: var(--ivory); }
.fact svg { flex: none; width: 24px; height: 24px; stroke: var(--wisteria); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fact small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--wisteria); }
.fact span { display: block; font-size: 15px; font-weight: 500; line-height: 1.3; }
.fact .go { margin-left: auto; color: var(--cta); font-size: 13px; font-weight: 600; white-space: nowrap; }

/* secciones */
.sec { padding-top: 44px; padding-bottom: 6px; }
.sec h2 { font-size: 38px; font-weight: 400; letter-spacing: .03em; margin: 0 0 6px; }
.sec .lead { color: var(--soft); margin: 0 0 20px; font-size: 15px; }

/* categorías */
.cards { display: grid; gap: 16px; }
.tk-card { position: relative; display: block; border-radius: 22px; overflow: hidden; background: var(--card); border: 2px solid var(--card-line); cursor: pointer; transition: border-color .15s ease, transform .1s ease, box-shadow .2s ease; --acc: var(--wisteria); }
.tk-card.GENERAL { --acc: var(--c-general); } .tk-card.VIP { --acc: var(--c-vip); } .tk-card.ICONIK { --acc: var(--c-iconik); }
.tk-card:active { transform: scale(.985); }
.tk-card input { position: absolute; opacity: 0; pointer-events: none; }
.tk-card:has(input:checked) { border-color: var(--acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 28%, transparent), 0 14px 40px rgba(0, 0, 0, .4); }
.tk-card:has(input:focus-visible) { outline: 3px solid var(--wisteria); outline-offset: 3px; }
.tk-card .art { display: block; width: 100%; height: auto; aspect-ratio: 1772 / 945; object-fit: cover; background: #3a2430; }
.tk-card .body { display: flex; align-items: flex-end; gap: 12px; padding: 16px 18px 18px; }
.tk-card .name { font-family: var(--serif); font-size: 34px; font-weight: 400; letter-spacing: .03em; line-height: 1; color: var(--ivory); }
.tk-card .name::after { content: ''; display: block; width: 34px; height: 3px; border-radius: 3px; background: var(--acc); margin-top: 8px; }
.tk-card .desc { display: block; margin-top: 10px; font-size: 14px; color: var(--soft); }
.tk-card .price { margin-left: auto; text-align: right; font-family: var(--serif); font-size: 38px; font-weight: 400; letter-spacing: .02em; line-height: 1; color: var(--ivory); white-space: nowrap; }
.tk-card .price small { display: block; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--wisteria); margin-top: 6px; }
.tk-card .tag { position: absolute; top: 12px; right: 12px; padding: 5px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; background: rgba(30, 16, 20, .82); backdrop-filter: blur(6px); color: var(--ivory); border: 1px solid var(--acc); }
.tk-card .tick { position: absolute; top: 12px; left: 12px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: var(--coffee); transform: scale(0); transition: transform .18s cubic-bezier(.3, 1.6, .5, 1); }
.tk-card:has(input:checked) .tick { transform: scale(1); }
.tk-card .tick svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tk-card.off { opacity: .45; filter: grayscale(.8); cursor: not-allowed; }

/* pasos */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 4px; }
.steps li { position: relative; display: flex; gap: 16px; padding: 14px 0; }
.steps li::before { counter-increment: s; content: counter(s); flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 24px; font-weight: 400; font-variant-numeric: lining-nums; color: var(--coffee); background: var(--cta); z-index: 1; }
.steps li:not(:last-child)::after { content: ''; position: absolute; left: 18px; top: 52px; bottom: -14px; width: 2px; background: linear-gradient(var(--cta), rgba(13, 231, 86, .05)); }
.steps b { display: block; font-size: 16px; margin-bottom: 2px; }
.steps span { color: var(--soft); font-size: 14px; }

/* formulario */
.formcard { background: var(--ivory); color: var(--coffee); border-radius: 24px; padding: 22px 18px 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); scroll-margin-top: 16px; }
.formcard h2 { color: var(--orchid); font-size: 36px; font-weight: 400; letter-spacing: .03em; }
.chosen { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0 0 18px; border-radius: 14px; background: #fff; border: 2px solid var(--acc, var(--linea)); }
.chosen.GENERAL { --acc: var(--c-general); } .chosen.VIP { --acc: var(--c-vip); } .chosen.ICONIK { --acc: var(--c-iconik); }
.chosen .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--acc, var(--wisteria)); flex: none; }
.chosen b { font-size: 16px; }
.chosen .p { margin-left: auto; font-family: var(--serif); font-size: 30px; font-weight: 400; letter-spacing: .02em; color: var(--orchid); }
.chosen a { color: var(--orchid); font-size: 13px; font-weight: 600; }
.chosen.empty { border-style: dashed; color: var(--muted); font-size: 14px; }
.how-pay { display: flex; gap: 12px; padding: 14px; margin: 4px 0 16px; border-radius: 14px; background: var(--info-bg); color: var(--coffee); font-size: 14px; }
.how-pay svg { flex: none; width: 22px; height: 22px; stroke: var(--orchid); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formcard .legal { font-size: 12px; color: var(--muted); margin: 10px 0 14px; }
.formcard .cta { box-shadow: 0 8px 24px rgba(13, 231, 86, .28); }

/* preguntas frecuentes */
.faq details { border-top: 1px solid var(--card-line); }
.faq details:last-child { border-bottom: 1px solid var(--card-line); }
.faq summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 0; font-weight: 600; font-size: 15px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; margin-left: auto; font-size: 26px; font-weight: 400; color: var(--cta); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 16px; color: var(--soft); font-size: 14px; }
.faq summary:focus-visible { outline-color: var(--wisteria); }

/* pie */
.foot-l { text-align: center; padding-top: 40px; padding-bottom: calc(110px + var(--safe-b)); color: var(--soft); font-size: 12px; }
.foot-l img { width: 92px; margin: 0 auto 14px; display: block; opacity: .9; }
.foot-l a.wa { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--card-line); border-radius: 14px; color: var(--ivory); text-decoration: none; font-weight: 600; font-size: 14px; margin-bottom: 18px; }

/* barra fija inferior */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 14px calc(10px + var(--safe-b)); background: linear-gradient(180deg, rgba(30, 16, 20, 0), rgba(30, 16, 20, .94) 38%); transform: translateY(110%); transition: transform .25s ease; pointer-events: none; }
.sticky-cta.show { transform: none; pointer-events: auto; }
.sticky-cta .row-s { max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.sticky-cta .t { flex: none; line-height: 1.15; }
.sticky-cta .t small { display: block; font-size: 12px; color: var(--wisteria); letter-spacing: .08em; text-transform: uppercase; }
.sticky-cta .t b { font-family: var(--serif); font-size: 30px; font-weight: 400; letter-spacing: .02em; }
.sticky-cta .cta { min-height: 52px; }

/* aparición suave */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } .sticky-cta { transition: none; } }

/* mensajes (error de carga) */
.fail { margin: 40vh auto 0; max-width: 360px; text-align: center; padding: 0 18px; }
.fail .cta { margin-top: 16px; }

@media (min-width: 720px) {
  .wrap-l { max-width: 640px; }
  .hero { min-height: 86vh; }
  .hero .brand { width: 110px; left: max(18px, calc(50% - 320px + 18px)); }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .fact { flex-direction: column; align-items: flex-start; gap: 10px; }
  .fact .go { margin-left: 0; }
  .sticky-cta { display: none; }
  .foot-l { padding-bottom: 50px; }
}

/* Pantallas apaisadas (tablet horizontal y escritorio): imagen horizontal; el texto va a la izquierda, sobre la zona oscura del arte */
@media (min-width: 720px) and (orientation: landscape) {
  .hero { min-height: clamp(560px, 56vw, 860px); }
  .hero::before { background-image: url('/img/hero-d.jpg'); background-image: -webkit-image-set(url('/img/hero-d.jpg') 1x, url('/img/hero-d@2x.jpg') 2x); background-image: image-set(url('/img/hero-d.jpg') 1x, url('/img/hero-d@2x.jpg') 2x); background-position: center 18%; }
  .hero > .wrap-l { margin: 0 auto 0 max(28px, 7vw); max-width: 480px; padding: 0; }
  .hero .brand { left: max(28px, 7vw); width: 120px; }
}
/* Pantallas muy anchas: usa siempre la versión de más resolución */
@media (min-width: 1600px) and (orientation: landscape) {
  .hero::before { background-image: url('/img/hero-d@2x.jpg'); }
}

/* foco visible acorde al tema oscuro (y al formulario claro) */
.landing :focus-visible { outline: 3px solid var(--wisteria); outline-offset: 3px; }
.landing .formcard :focus-visible { outline-color: var(--orchid); }
.landing .cta:focus-visible { outline-color: var(--ivory); }

/* ---------- compras en grupo: cantidad por categoría ---------- */
.landing .tk-card.sel { border-color: var(--acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 28%, transparent), 0 14px 40px rgba(0, 0, 0, .4); }
.landing .tk-card.sel .tick { transform: scale(1); }
.stepper { display: flex; align-items: center; gap: 12px; padding: 0 18px 16px; }
.stepper .st-l { margin-right: auto; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wisteria); }
.st-b { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--card-line); background: rgba(251, 255, 241, .06); color: var(--ivory); display: grid; place-items: center; cursor: pointer; transition: transform .1s ease, background .15s ease; }
.st-b:not(:disabled):active { transform: scale(.92); }
.st-b:not(:disabled):hover { background: rgba(251, 255, 241, .14); }
.st-b:disabled { opacity: .3; cursor: not-allowed; }
.st-b svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.6; stroke-linecap: round; }
.st-n { min-width: 34px; text-align: center; font-family: var(--serif); font-size: 36px; line-height: 1; color: var(--ivory); font-variant-numeric: lining-nums; }
.tk-card.sel .st-n { color: var(--acc); }

/* resumen de la compra */
.cart { margin: 0 0 18px; padding: 14px; border-radius: 14px; background: #fff; border: 2px solid var(--linea, #e6dfd0); display: grid; gap: 8px; }
.cart-row { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.cart-row b { margin-left: auto; font-weight: 700; }
.cart-row .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--wisteria); }
.cart-row.GENERAL .dot { background: var(--c-general); } .cart-row.VIP .dot { background: var(--c-vip); } .cart-row.ICONIK .dot { background: var(--c-iconik); }
.cart-total { display: flex; align-items: baseline; gap: 10px; padding-top: 10px; border-top: 1px dashed var(--linea, #e6dfd0); font-weight: 600; }
.cart-total b { margin-left: auto; font-family: var(--serif); font-size: 32px; font-weight: 400; color: var(--orchid); letter-spacing: .02em; }
.cart a { color: var(--orchid); font-size: 13px; font-weight: 600; }

/* datos por asistente */
.att-h { margin: 18px 0 6px; font-size: 22px; font-weight: 400; letter-spacing: .03em; color: var(--orchid); }
.att-p { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.att { margin: 10px 0 14px; padding: 12px 14px 2px; border-radius: 14px; border: 1px solid var(--linea, #e6dfd0); background: #fff; }
.att-t { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 700; font-size: 14px; color: var(--coffee); }
.att .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--wisteria); }
.att.GENERAL .dot { background: var(--c-general); } .att.VIP .dot { background: var(--c-vip); } .att.ICONIK .dot { background: var(--c-iconik); }

/* precio según la fecha de pago */
.pricebox { margin-top: 22px; padding: 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--card-line); }
.pricebox h3 { margin: 0 0 8px; font-size: 20px; font-weight: 400; letter-spacing: .04em; }
.pricebox p { margin: 0 0 14px; font-size: 14px; color: var(--soft); }
.pricebox p b { color: var(--ivory); }
.stages { display: grid; gap: 8px; }
.stg { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--card-line); }
.stg.now { border-color: var(--cta); background: rgba(13, 231, 86, .07); }
.stg-h { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.stg-h b { font-size: 15px; }
.stg-h span { color: var(--soft); }
.stg-h em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cta); }
.stg-p { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 13px; color: var(--soft); }
.stg-p b { color: var(--ivory); }

/* medios de pago */
.paybox { margin-top: 20px; padding: 16px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--card-line); }
.paybox h3 { margin: 0 0 6px; font-size: 22px; font-weight: 400; letter-spacing: .04em; }
.paybox .payee { margin: 0 0 8px; font-size: 13px; color: var(--soft); }
.paybox ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.paybox li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--card-line); }
.paybox .pl { flex: none; min-width: 84px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--wisteria); }
.paybox .pv { font-size: 17px; letter-spacing: .02em; word-break: break-all; }
.paybox .copy { margin-left: auto; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--card-line); background: transparent; color: var(--ivory); font-weight: 600; font-size: 13px; cursor: pointer; }
.paybox .copy:active { background: rgba(251, 255, 241, .12); }

/* pie: crédito de la plataforma y enlaces legales */
.foot-l .legal-links { margin: 6px 0 10px; }
.foot-l .legal-links a, .foot-l .prov a { color: var(--soft); text-decoration: underline; text-underline-offset: 3px; }
.foot-l .prov { margin-top: 6px; opacity: .85; }
.formcard .check a { color: var(--orchid); }

/* aviso de cookies (solo aparece si hay IDs de medición en analytics-config.js) */
.cookie-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); z-index: 60; max-width: 560px; margin: 0 auto; padding: 16px; border-radius: 16px; background: #2a171c; border: 1px solid var(--card-line); box-shadow: 0 14px 44px rgba(0, 0, 0, .55); color: var(--ivory); font-size: 14px; line-height: 1.5; }
.cookie-bar p { margin: 0 0 12px; color: var(--soft); }
.cookie-bar a { color: var(--ivory); }
.cookie-bar .ck-row { display: flex; gap: 10px; }
.cookie-bar .ck-b { flex: 1; min-height: 48px; border-radius: 12px; border: 1px solid var(--card-line); background: transparent; color: var(--ivory); font-weight: 700; font-size: 15px; cursor: pointer; }
.cookie-bar .ck-b:last-child { background: var(--cta); color: var(--coffee); border-color: var(--cta); }
.ck-link { display: block; margin: 0 auto 14px; background: none; border: 0; color: var(--soft); font-size: 12px; text-decoration: underline; cursor: pointer; min-height: 40px; }

/* line-up */
.lineup { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.lineup li { padding: 16px 18px; background: var(--card); border: 1px solid var(--card-line); border-radius: 18px; }
.lineup li.head { border-color: var(--cta); box-shadow: 0 0 0 1px rgba(13, 231, 86, .25), 0 10px 34px rgba(13, 231, 86, .12); }
.lineup .ln-n { font-family: var(--serif); font-size: 32px; font-weight: 400; letter-spacing: .03em; line-height: 1.05; color: var(--ivory); }
.lineup li.head .ln-n { font-size: 44px; }
.lineup .ln-m { margin-top: 6px; font-size: 14px; color: var(--soft); }
.lineup .ln-ig { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lineup .ln-ig a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--card-line); border-radius: 99px; color: var(--ivory); text-decoration: none; font-size: 14px; font-weight: 600; }
.lineup .ln-ig a:hover { border-color: var(--cta); }
