[hidden] { display: none !important; }
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--cr-font);
  color: var(--cr-ink);
  background: var(--cr-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--cr-violet-600); }
:focus-visible { outline: 3px solid var(--cr-violet-400); outline-offset: 3px; border-radius: 8px; }

/* ---------- Fondo con manchas de color ---------- */
.blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blobs span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 1; animation: drift 22s ease-in-out infinite alternate; }
.blobs span:nth-child(1) { width: 520px; height: 520px; background: var(--cr-blob-1); top: -160px; left: -120px; }
.blobs span:nth-child(2) { width: 420px; height: 420px; background: var(--cr-blob-3); top: 30%; right: -140px; animation-delay: -6s; }
.blobs span:nth-child(3) { width: 380px; height: 380px; background: var(--cr-blob-2); bottom: -120px; left: 20%; animation-delay: -12s; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .blobs span, .snow { animation: none !important; } html { scroll-behavior: auto; } }

/* ---------- Glass ---------- */
.glass {
  background: var(--cr-glass);
  border: 1px solid var(--cr-glass-border);
  border-radius: var(--cr-radius-lg);
  box-shadow: var(--cr-shadow);
  backdrop-filter: blur(var(--cr-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--cr-blur)) saturate(140%);
}

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 12px; z-index: 20; margin-top: 12px; }
.nav .glass { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 10px 18px; border-radius: 999px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cr-ink); font-weight: 700; }
.brand img { height: 28px; width: auto; }
.brand small { font-weight: 600; color: var(--cr-ink-3); font-size: 13px; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--cr-ink-2); font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 999px; }
.nav-links a:not(.btn):hover { background: rgba(255, 255, 255, 0.6); }
@media (max-width: 640px) { .nav-links a:not(.btn) { display: none; } .brand small { display: none; } }

/* ---------- Botones ---------- */
.btn {
  --b: var(--cr-gradient);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; text-decoration: none;
  font: 700 15px/1 var(--cr-font); color: #fff;
  background: var(--b); padding: 14px 22px; border-radius: 999px;
  box-shadow: 0 10px 24px -10px rgba(127, 66, 235, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(127, 66, 235, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-ghost { background: rgba(255, 255, 255, 0.7); color: var(--cr-violet-700); box-shadow: inset 0 0 0 1px var(--cr-violet-200); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--cr-violet-300), 0 8px 20px -12px rgba(127, 66, 235, 0.5); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 72px 0 56px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 36px; } }
.pill { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--cr-violet-700); background: rgba(255, 255, 255, 0.7); border: 1px solid var(--cr-violet-100); }
h1, h2, h3, .price, legend { font-family: var(--cr-font-display); }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -0.03em; margin: 18px 0 16px; }
.grad { background: var(--cr-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: var(--cr-ink-2); max-width: 34ch; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 13px; color: var(--cr-ink-3); margin-top: 14px; }

.preview { position: relative; padding: 28px; transform: rotate(1.5deg); }
.preview .paper { background: #fffdf8; border-radius: 18px; padding: 26px 24px; box-shadow: 0 20px 40px -24px rgba(60, 30, 120, 0.45); font-family: var(--cr-font-letter); color: #3a2c5a; font-size: 15px; }
.preview .paper p { margin: 0 0 10px; }
.preview .sig { font-family: var(--cr-font-hand); font-size: 26px; color: var(--cr-violet-700); }
.player-mini { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 10px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.8); border: 1px solid var(--cr-violet-100); }
.player-mini .play { width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; font-size: 14px; background: var(--cr-gradient); display: grid; place-items: center; color: #fff; flex: none; box-shadow: 0 0 0 5px rgba(184,134,254,.25); animation: callme 2.4s ease-in-out infinite; }
@keyframes callme { 50% { box-shadow: 0 0 0 10px rgba(184,134,254,.08); } }
.wave { display: flex; gap: 3px; align-items: center; height: 26px; flex: 1; }
.wave i { flex: 1; background: var(--cr-violet-300); border-radius: 2px; animation: wave 1.2s ease-in-out infinite; }
@keyframes wave { 50% { transform: scaleY(0.4); } }
.floating { position: absolute; padding: 8px 14px; font-size: 13px; font-weight: 700; border-radius: 999px; }
.floating.f1 { top: -14px; left: -10px; transform: rotate(-4deg); }
.floating.f2 { bottom: -14px; right: -6px; transform: rotate(3deg); }

/* ---------- Secciones ---------- */
section { padding: 56px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.02em; margin: 10px 0; line-height: 1.1; }
.section-head p { color: var(--cr-ink-2); margin: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 24px; }
.step .num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--cr-gradient); color: #fff; font-weight: 800; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--cr-ink-2); font-size: 15px; }

/* ---------- Formulario ---------- */
.form-wrap { padding: clamp(20px, 4vw, 40px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.full { grid-column: 1 / -1; }
fieldset { border: 0; padding: 0; margin: 0 0 28px; }
legend { font-weight: 800; font-size: 18px; margin-bottom: 14px; display: flex; gap: 10px; align-items: center; }
legend .n { width: 28px; height: 28px; border-radius: 9px; background: var(--cr-violet-100); color: var(--cr-violet-700); display: grid; place-items: center; font-size: 14px; }
label.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
label.field span.hint { font-weight: 500; color: var(--cr-ink-3); font-size: 13px; }
input[type='text'], input[type='email'], input[type='number'], textarea, select {
  font: 500 16px/1.4 var(--cr-font); color: var(--cr-ink);
  background: rgba(255, 255, 255, 0.8); border: 1px solid var(--cr-violet-100);
  border-radius: var(--cr-radius-sm); padding: 12px 14px; width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { resize: vertical; min-height: 84px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--cr-violet-400); box-shadow: 0 0 0 4px rgba(184, 134, 254, 0.25); }

.choices { display: grid; gap: 12px; }
.choices.chars { grid-template-columns: repeat(4, 1fr); }
.choices.tiers { grid-template-columns: repeat(4, 1fr); }
.choices.gender { grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px; }
@media (max-width: 900px) { .choices.tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .choices.chars { grid-template-columns: repeat(2, 1fr); } .choices.tiers { grid-template-columns: 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .box {
  display: flex; flex-direction: column; gap: 4px; height: 100%; cursor: pointer;
  padding: 16px; border-radius: var(--cr-radius); background: rgba(255, 255, 255, 0.65);
  border: 1.5px solid var(--cr-violet-100); transition: all 0.15s ease;
}
.choice .box:hover { border-color: var(--cr-violet-300); transform: translateY(-2px); }
.choice input:checked + .box { border-color: var(--cr-violet-600); background: #fff; box-shadow: 0 0 0 4px rgba(184, 134, 254, 0.25), var(--cr-shadow); }
.choice input:focus-visible + .box { outline: 3px solid var(--cr-violet-400); outline-offset: 2px; }
.choices.gender .box { flex-direction: row; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.char .emoji { font-size: 34px; line-height: 1; }
.char b { font-size: 16px; }
.char small { color: var(--cr-ink-3); font-size: 12px; }
.tier .price { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.tier .price small { font-size: 13px; color: var(--cr-ink-3); font-weight: 600; }
.tier b { font-size: 15px; }
.tier ul { margin: 6px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--cr-ink-2); display: grid; gap: 4px; }
.tier ul li::before { content: '✓ '; color: var(--cr-violet-600); font-weight: 800; }
.tier .tag { position: absolute; top: -10px; right: 12px; font-size: 11px; font-weight: 800; color: #fff; background: var(--cr-gradient); padding: 4px 10px; border-radius: 999px; }
.summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px dashed var(--cr-violet-200); }
.summary .total { font-size: 15px; color: var(--cr-ink-2); }
.summary .total b { font-size: 26px; color: var(--cr-ink); }
.form-msg { color: #c0264b; font-weight: 600; min-height: 1.5em; margin: 12px 0 0; }
.hp { position: absolute; left: -9999px; }
.secure { font-size: 13px; color: var(--cr-ink-3); display: flex; gap: 6px; align-items: center; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.faq details { padding: 18px 22px; border-radius: var(--cr-radius); }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--cr-violet-600); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 10px 0 0; color: var(--cr-ink-2); }

footer { padding: 40px 0 60px; text-align: center; color: var(--cr-ink-3); font-size: 14px; }
footer img { height: 26px; margin: 0 auto 10px; opacity: 0.85; }

/* =========================================================
   Navidad: portada con escena ilustrada, luces y papel con acebo
   ========================================================= */
:root { --cr-blob-1: rgba(232, 65, 79, .22); --cr-blob-2: rgba(47, 143, 95, .2); --cr-blob-3: rgba(233, 180, 76, .3); }
body { background: #fbf6ee; }
.nav { margin-top: 40px; }
.hero-night { position: relative; margin-top: -110px; padding: 110px 0 40px; color: #fff; overflow: hidden;
  background: #0d1640 url('/img/escena-santa.jpg') center bottom / cover no-repeat; border-radius: 0 0 36px 36px; }
.hero-night::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 12, 36, .72) 0%, rgba(8, 12, 36, .35) 55%, rgba(8, 12, 36, .1) 100%); }
.hero-night > .container { position: relative; z-index: 1; }
@media (max-width: 760px) {
  .hero-night { background-image: url('/img/escena-santa-m.jpg'); background-position: 70% bottom; }
  .hero-night::after { background: linear-gradient(180deg, rgba(8, 12, 36, .7), rgba(8, 12, 36, .35) 60%, rgba(8, 12, 36, .15)); }
}
.snowfall { position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: .8;
  background-image: radial-gradient(2px 2px at 20px 30px, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 90px 120px, #fff 50%, transparent 51%),
    radial-gradient(2.5px 2.5px at 160px 60px, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 230px 170px, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 300px 90px, #fff 50%, transparent 51%);
  background-size: 320px 220px; animation: snowfall 14s linear infinite; }
@keyframes snowfall { to { background-position: 60px 220px, -40px 220px, 30px 220px, -20px 220px, 50px 220px; } }
.hero-night .pill { color: #fff; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); backdrop-filter: blur(8px); }
.hero-night h1 { color: #fff; text-shadow: 0 4px 30px rgba(0, 0, 0, .45); }
.hero-night .grad { background: linear-gradient(90deg, var(--xm-gold-2), var(--xm-gold) 60%, #ff9a6b); -webkit-background-clip: text; background-clip: text; }
.hero-night p.lead { color: #e7eaff; }
.hero-night .hero-note { color: #cdd4f7; }
.hero-night .btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.btn { --b: var(--xm-gradient); box-shadow: 0 10px 24px -10px rgba(200, 32, 47, .7), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn:hover { box-shadow: 0 14px 30px -10px rgba(200, 32, 47, .8), inset 0 1px 0 rgba(255, 255, 255, .35); }

.preview { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .35); padding: 22px; }
.preview .paper.stationery { --pw: min(430px, calc(100vw - 76px)); border-radius: 0; box-shadow: none; font-size: 14.5px;
  padding: calc(var(--pw) * .29) calc(var(--pw) * .17) calc(var(--pw) * .24); }
.preview .sig { color: var(--xm-red); text-align: right; }
.preview .floating { color: var(--cr-ink); }
.player-mini .play { background: var(--xm-gradient); box-shadow: 0 0 0 5px rgba(232, 65, 79, .25); }
@keyframes callme { 50% { box-shadow: 0 0 0 10px rgba(232, 65, 79, .08); } }
.wave i { background: var(--xm-red-2); }

.pill { color: var(--xm-red); border-color: rgba(200, 32, 47, .18); }
.step .num { background: linear-gradient(135deg, var(--xm-green-2), var(--xm-green)); }
.step:nth-child(2) .num { background: var(--xm-gradient); }
.step:nth-child(3) .num { background: linear-gradient(135deg, var(--xm-gold-2), var(--xm-gold)); color: #5a3a00; }
.tier .tag { background: var(--xm-gradient); }
.tier ul li::before { color: var(--xm-green-2); }
.choice input:checked + .box { border-color: var(--xm-red); box-shadow: 0 0 0 4px rgba(232, 65, 79, .18), var(--cr-shadow); }
legend .n { background: rgba(200, 32, 47, .1); color: var(--xm-red); }
.faq summary::after { color: var(--xm-red); }
@media (prefers-reduced-motion: reduce) { .snowfall { animation: none !important; } }

/* Barra de navegación en vidrio oscuro con logo blanco (solo en las cartas) */
.nav .glass { background: rgba(12, 18, 48, .62); border-color: rgba(255, 255, 255, .18);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 16px 40px -18px rgba(0, 0, 0, .55); }
.nav .brand img { filter: brightness(0) invert(1); }
.nav .brand small { color: rgba(255, 255, 255, .78); }
.nav-links a:not(.btn) { color: rgba(255, 255, 255, .9); }
.nav-links a:not(.btn):hover { background: rgba(255, 255, 255, .12); }

/* Celulares en horizontal: la barra no se queda fija para no tapar media pantalla */
@media (max-height: 520px) and (orientation: landscape) {
  .nav { position: relative; top: 0; margin-top: 30px; }
  .nav .glass { padding: 6px 10px 6px 14px; }
  .nav-links a:not(.btn) { padding: 6px 8px; font-size: 13px; }
}
