/* Landing C-081 «Nébula» — tokens del design system (tienda/design-system.md) + marco AURIO (brand book §5) */
:root {
  /* mundo Nébula */
  --void: #04050d; --night: #0b0e26; --night-2: #141a44;
  --nebula: #8b3dff; --magenta: #ff4fa3; --cyan: #37e6d0;
  --amber: #ffb04d; --amber-deep: #ff8a3d;
  --star: #f6f4ff; --muted: #a9add6; --line: rgba(255,255,255,.09);
  --grad-aurora: linear-gradient(100deg, #ff4fa3, #8b3dff, #37e6d0);
  --grad-cta: linear-gradient(180deg, #ffc06b, #ff8a3d);
  --glow-nebula: 0 0 80px rgba(139,61,255,.45);
  /* marco AURIO */
  --aurio-crema: #F7F1E6; --aurio-crema-luz: #FBF8F2; --aurio-arena: #EDE0CC;
  --aurio-dorado: #C9971C; --aurio-miel: #E3A857;
  --aurio-tierra: #3B2E1E; --aurio-tierra-suave: #6B5A42; --aurio-oscuro: #2A2117;
  --grad-cta-aurio: linear-gradient(180deg, #E9B457, #C9971C);
  /* comunes */
  --r-sm: 12px; --r-md: 20px; --r-pill: 999px;
  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; color: var(--star); background: var(--void); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.container { max-width: 1120px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.container--narrow { max-width: 720px; }
.section { padding-block: clamp(64px, 12vw, 128px); }
.section--alt { background: var(--night); }
.section__title { font-size: clamp(1.75rem, 4.5vw, 2.75rem); margin-bottom: 12px; }
.section__sub { color: var(--muted); margin-bottom: 24px; }
.center { text-align: center; }
.microcopy { font-size: .9rem; color: var(--muted); margin-top: 10px; }

/* CTA — único elemento cálido */
.btn { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  color: var(--void); background: var(--grad-cta); border: 0; border-radius: var(--r-pill);
  padding: 14px 24px; text-decoration: none; cursor: pointer; min-height: 44px;
  transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 40px rgba(255,176,77,.4); }
.btn--lg { padding: 16px 28px; font-size: 1.1rem; }

/* 1 · trustbar (AURIO oscuro, fija) */
.trustbar { position: sticky; top: 0; z-index: 50; background: var(--aurio-oscuro); color: var(--aurio-crema);
  text-align: center; font-size: .9rem; padding: 9px 16px; }
.trustbar strong { color: var(--aurio-miel); }

/* 2 · header */
.header { display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(20px, 5vw, 40px); border-bottom: 1px solid var(--line); }
.header__logo { height: 30px; width: auto; }
.header__badge { font-size: .8rem; color: var(--aurio-miel); border: 1px solid rgba(227,168,87,.4);
  border-radius: var(--r-pill); padding: 5px 12px; }

/* 3 · hero — dirección 2b (cono de luz) + lavado ambiental de 2a (exploración Claude Design) */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 10vw, 110px);
  background:
    radial-gradient(ellipse 60% 45% at 72% 18%, rgba(139,61,255,.16), transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 85%, rgba(255,79,163,.08), transparent 65%),
    var(--void); }
.hero__grid { display: grid; gap: 36px; position: relative; }
.hero__copy { position: relative; z-index: 1; }
/* cono de luz: nace del producto y sangra hacia arriba de la sección */
.hero__media { position: relative; }
.hero__media::before { content: ""; position: absolute; left: -25%; bottom: 92%; width: 150%; height: 420px;
  background: linear-gradient(to top, rgba(139,61,255,.38), rgba(255,79,163,.14) 55%, rgba(55,230,208,.05) 80%, transparent);
  clip-path: polygon(44% 100%, 56% 100%, 100% 0, 0 0);
  pointer-events: none; }
.eyebrow { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.5rem, 8vw, 4.75rem); line-height: 1.05; margin-bottom: 16px; }
.aurora { background: var(--grad-aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { color: var(--muted); max-width: 46ch; margin-bottom: 26px; }
.hero__sub strong { color: var(--star); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 18px; }
.chip { background: var(--night-2); border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: .85rem; padding: 7px 14px; color: var(--muted); }
.hero__stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--star);
  opacity: .5; animation: twinkle 4s ease-in-out infinite; }
.hero__stars i:nth-child(1){top:12%;left:8%} .hero__stars i:nth-child(2){top:30%;left:88%;animation-delay:1s}
.hero__stars i:nth-child(3){top:65%;left:15%;animation-delay:2s} .hero__stars i:nth-child(4){top:18%;left:55%;animation-delay:.5s}
.hero__stars i:nth-child(5){top:80%;left:70%;animation-delay:1.5s} .hero__stars i:nth-child(6){top:45%;left:35%;animation-delay:2.5s}
.hero__stars i:nth-child(7){top:8%;left:75%;animation-delay:3s} .hero__stars i:nth-child(8){top:70%;left:92%;animation-delay:.8s}
@keyframes twinkle { 0%,100% { opacity:.15 } 50% { opacity:.7 } }

/* placeholders de assets (Paso 4 los reemplaza) */
.placeholder { display: flex; align-items: center; justify-content: center; text-align: center;
  border-radius: var(--r-md); border: 1px dashed rgba(255,255,255,.2); color: var(--muted); font-size: .85rem;
  background: radial-gradient(ellipse at 60% 40%, rgba(139,61,255,.35), rgba(255,79,163,.12) 45%, var(--night) 75%); }
.placeholder--hero { min-height: 320px; box-shadow: var(--glow-nebula); }
.placeholder--amb { min-height: 210px; margin-bottom: 14px; }
.placeholder--wide { min-height: 200px; margin-block: 28px; }

/* 4 · pasos */
.steps { display: grid; gap: 16px; list-style: none; margin-top: 28px; }
.step { background: var(--night-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; }
.step__n { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 50%; background: var(--grad-cta); color: var(--void); font-family: var(--font-display);
  font-weight: 700; margin-bottom: 12px; }
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .95rem; }

/* 5 · ambientes */
.ambientes { display: grid; gap: 28px; margin-top: 28px; }
.ambiente h3 { font-size: 1.15rem; margin-bottom: 4px; }
.ambiente p { color: var(--muted); font-size: .95rem; }
.antes-despues figcaption { text-align: center; color: var(--muted); font-family: var(--font-display); font-weight: 600; }

/* 7 · benefits */
.benefits { list-style: none; display: grid; gap: 12px; margin-top: 24px; }
.benefits li { background: var(--night-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 13px 16px; }

/* 8 · packs — layout horizontal (resultado 1) + cabecera ámbar en la popular (exploración 3a) */
.packs { display: grid; gap: 16px; margin-block: 28px; max-width: 640px; }
.pack { position: relative; display: block; cursor: pointer; }
.pack input { position: absolute; opacity: 0; }
.pack__card { display: block; background: var(--night-2); border: 2px solid var(--line);
  border-radius: var(--r-md); overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.pack input:checked + .pack__card { border-color: var(--amber); box-shadow: 0 0 30px rgba(255,176,77,.18); }
.pack input:focus-visible + .pack__card { outline: 2px solid var(--cyan); outline-offset: 3px; }
.pack__cap { display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--grad-cta); color: var(--void); font-size: .8rem; font-weight: 700; padding: 7px 16px; }
.pack__row { display: flex; align-items: center; gap: 14px; padding: 16px; }
.pack__dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--muted); position: relative; }
.pack input:checked + .pack__card .pack__dot { border-color: var(--amber); }
.pack input:checked + .pack__card .pack__dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--amber); }
.pack__info { flex: 1; display: grid; gap: 2px; }
.pack__qty { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.pack__name { color: var(--muted); font-size: .9rem; }
.pack__precios { display: grid; justify-items: end; }
.pack__anchor { color: var(--muted); text-decoration: line-through; font-size: .9rem; }
.pack__price { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--amber); }
.pack__foot { display: block; border-top: 1px solid var(--line); padding: 9px 16px; font-size: .85rem; color: var(--cyan); }

/* 9 · checkout (marco AURIO) — corte limpio con costura dorada + ficha a caballo (exploración 3c) */
.checkout { background: var(--aurio-crema); color: var(--aurio-tierra); border-top: 3px solid var(--aurio-dorado);
  padding-top: 48px; padding-bottom: clamp(64px, 12vw, 128px); }
.ficha { display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--night-2); color: var(--star); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px 20px; margin-top: -84px; margin-bottom: 32px; box-shadow: 0 14px 40px rgba(4,5,13,.45); }
.ficha__info { display: grid; gap: 2px; }
.ficha__label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ficha__nombre { font-family: var(--font-display); font-weight: 700; }
.ficha__ahorro { font-size: .85rem; color: var(--cyan); }
.ficha__ahorro:empty { display: none; }
.ficha__precio { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--amber); }
.checkout__seguro { display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--aurio-dorado); font-weight: 700; }
.checkout__seguro img { height: 21px; width: auto; }
.checkout .section__sub { color: var(--aurio-tierra-suave); }
.form { display: grid; gap: 16px; margin-top: 10px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
.form input, .form select { font: inherit; padding: 12px 14px; border: 1px solid var(--aurio-arena);
  border-radius: var(--r-sm); background: var(--aurio-crema-luz); color: var(--aurio-tierra); min-height: 44px; }
.form input:focus-visible, .form select:focus-visible { outline: 2px solid var(--aurio-dorado); outline-offset: 1px; }
.form__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  border-top: 1px dashed var(--aurio-arena); padding-top: 16px; font-size: .95rem; }
.form__total-precio { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--aurio-tierra); }
.checkout .btn { background: var(--grad-cta-aurio); color: var(--aurio-oscuro); }
.checkout .microcopy { color: var(--aurio-tierra-suave); }
.gracias { text-align: center; padding-block: 24px; }
.gracias h2 { font-size: 1.8rem; margin-bottom: 10px; }

/* 10 · FAQ + specs */
details { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--night-2); margin-top: 12px; }
details summary { cursor: pointer; padding: 15px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
details summary::after { content: "+"; color: var(--amber); font-family: var(--font-display); }
details[open] summary::after { content: "–"; }
details p, details ul { padding: 0 18px 16px; color: var(--muted); }
details ul { list-style: none; display: grid; gap: 8px; }
.specs { margin-top: 28px; }

/* 12 · garantía (crema) */
.garantia { background: var(--aurio-crema-luz); color: var(--aurio-tierra); padding-block: clamp(64px, 12vw, 128px); text-align: center; }
.garantia__grid { display: grid; gap: 32px; text-align: left; margin-bottom: 32px; }
.garantia h2 { font-size: 1.5rem; margin-bottom: 10px; }
.garantia p { color: var(--aurio-tierra-suave); }
.garantia .btn { background: var(--grad-cta-aurio); color: var(--aurio-oscuro); }

/* 14 · footer */
.footer { background: var(--aurio-oscuro); color: var(--aurio-crema); text-align: center;
  padding: 56px 20px 120px; display: grid; gap: 14px; justify-items: center; }
.footer__simbolo { height: 40px; width: auto; }
.footer__claim { font-family: var(--font-display); font-weight: 600; }
.footer__links { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.footer__links a { color: var(--aurio-miel); text-decoration: none; font-size: .9rem; }
.footer__links a:hover { text-decoration: underline; }
.footer .microcopy { color: rgba(247,241,230,.55); }

/* sticky buy bar (móvil) */
.stickybar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; display: flex; align-items: center;
  justify-content: space-between; gap: 14px; padding: 12px clamp(16px, 4vw, 28px);
  background: rgba(4,5,13,.92); backdrop-filter: blur(8px); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .25s ease; }
.stickybar.visible { transform: translateY(0); }
.stickybar__price { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--amber); }

/* WhatsApp flotante (se activa cuando exista número) */
.wsp { position: fixed; right: 18px; bottom: 84px; z-index: 60; width: 52px; height: 52px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  text-decoration: none; box-shadow: 0 4px 20px rgba(0,0,0,.4); }

/* desktop */
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; align-items: center; }
  .steps, .ambientes { grid-template-columns: repeat(3, 1fr); }
  .benefits { grid-template-columns: 1fr 1fr; }
  .packs { margin-inline: auto; }
  .garantia__grid { grid-template-columns: 1fr 1fr; }
  .stickybar { display: none; }
  .footer { padding-bottom: 56px; }
}

/* accesibilidad de movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__stars i { animation: none; }
  .btn, .pack__body, .stickybar { transition: none; }
}
