/* GOTI — identidad visual (manual Cast Out The Evil Studio): morado, coral, lima y crema. */
:root {
  --purple: #351c42;
  --purple-2: #4a2c5a;
  --coral: #f2705b;
  --coral-dark: #d9563f;
  --lime: #d6df5f;
  --cream: #fdf4e7;
  --cream-2: #f8e9d2;
  --ink: #351c42;
  --muted: #6b5a73;
  --line: #eadccb;
  --white: #fff;
  --ok: #2f7d4f;
  --error: #c0392b;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 12px 30px -12px rgba(53, 28, 66, .35);
  --display: "Fredoka", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.eyebrow { font-family: var(--display); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-size: .8rem; color: var(--coral-dark); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

/* ---------- Wordmark ---------- */
.wordmark { display: inline-flex; align-items: center; font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1; letter-spacing: .01em; color: var(--purple); text-decoration: none; }
.wordmark .o { width: .78em; height: .78em; margin: 0 .02em; }
.wordmark--light { color: var(--cream); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(253, 244, 231, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.site-header nav { display: flex; gap: 22px; align-items: center; }
.site-header nav a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-header nav a:not(.btn) { display: none; }
@media (min-width: 820px) { .site-header nav a:not(.btn) { display: inline; } }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.05rem; padding: 14px 26px; border-radius: 999px; background: var(--coral); color: var(--white); box-shadow: 0 6px 0 var(--coral-dark); transition: transform .12s, box-shadow .12s, background .2s; }
.btn:hover { background: #f47f6b; }
.btn:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--coral-dark); }
.btn--sm { padding: 9px 18px; font-size: .95rem; box-shadow: 0 4px 0 var(--coral-dark); }
.btn--ghost { background: transparent; color: var(--purple); box-shadow: inset 0 0 0 2px var(--purple); }
.btn--ghost:hover { background: var(--purple); color: var(--cream); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 48px 0 64px; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; }
.hero::before { width: 420px; height: 420px; background: var(--coral); top: -300px; left: -260px; }
.hero::after { width: 260px; height: 260px; background: var(--lime); right: -90px; top: 60px; }
.hero .wrap { display: grid; gap: 36px; align-items: center; }
.hero .wrap > * { min-width: 0; }
.band { display: grid; gap: 24px; align-items: center; }
.band .big-smile { width: min(260px, 60%); justify-self: center; }
@media (min-width: 760px) { .band { grid-template-columns: 1fr auto; } }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; } .hero { padding: 72px 0 90px; } }
.hero__lead { font-size: 1.2rem; color: var(--muted); max-width: 34ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 22px; }
.bubbles { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin-bottom: 18px; }
.bubble { font-family: var(--display); font-weight: 600; font-size: 1.05rem; padding: 10px 18px; border-radius: 20px 20px 20px 4px; background: var(--lime); color: var(--purple); }
.bubble--coral { background: var(--coral); color: var(--white); border-radius: 20px 20px 4px 20px; align-self: flex-start; margin-left: 28px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; list-style: none; font-size: .92rem; color: var(--muted); }
.trust li::before { content: "●"; color: var(--coral); margin-right: 6px; font-size: .7em; vertical-align: middle; }
.hero__art { position: relative; display: grid; place-items: center; min-height: 360px; }
.hero__art .disc { position: absolute; width: min(420px, 90%); aspect-ratio: 1; border-radius: 50%; background: var(--purple); }
/* Foto del frasco en una ventana de arco sobre el disco morado. */
.hero__art .bottle { position: relative; width: min(330px, 70%); height: auto; aspect-ratio: 660 / 941; object-fit: cover; border-radius: 999px 999px var(--radius) var(--radius); box-shadow: 0 30px 50px -18px rgba(53, 28, 66, .55); background: var(--cream-2); }
.hero__art .sticker { position: absolute; right: -2%; bottom: 3%; width: 128px; height: 128px; animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero__art .sticker { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Equivalencia: 1 gota = 1 cucharada ---------- */
.equiv { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px clamp(16px, 5vw, 56px); background: var(--purple); color: var(--cream); border-radius: var(--radius); padding: 30px 22px; margin-bottom: 18px; text-align: center; }
.equiv__item { display: grid; justify-items: center; gap: 2px; }
.equiv__item svg { height: clamp(56px, 12vw, 84px); width: auto; max-width: none; margin-bottom: 8px; }
.equiv__item strong { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 4.4vw, 2.3rem); line-height: 1.05; }
.equiv__item span { font-size: 1rem; color: var(--lime); font-weight: 600; }
.equiv__eq { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 8vw, 4rem); line-height: 1; color: var(--lime); }
@media (max-width: 640px) { .equiv { flex-direction: column; gap: 6px; } }

/* ---------- Secciones ---------- */
section { padding: 72px 0; }
.section--purple { background: var(--purple); color: var(--cream); }
.section--purple .eyebrow { color: var(--lime); }
.section--white { background: var(--white); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.grid-3 { display: grid; gap: 18px; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.section--purple .card { background: var(--purple-2); box-shadow: none; }
.icon-dot { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px; font-family: var(--display); font-weight: 700; font-size: 1.4rem; }
.icon-dot--lime { background: var(--lime); color: var(--purple); }
.icon-dot--coral { background: var(--coral); color: var(--white); }
.icon-dot--cream { background: var(--cream); color: var(--purple); }

.steps { counter-reset: s; display: grid; gap: 16px; padding: 0; list-style: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; background: var(--white); box-shadow: var(--shadow); border-radius: var(--radius); padding: 24px; position: relative; }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: 700; font-size: 2.4rem; color: var(--coral); display: block; line-height: 1; margin-bottom: 8px; }

/* ---------- Comprar ---------- */
.buy { display: grid; gap: 28px; align-items: start; }
@media (min-width: 980px) { .buy { grid-template-columns: 1fr 1fr; } }
.packs { display: grid; gap: 12px; border: 0; padding: 0; margin: 0 0 8px; }
.pack { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px 18px; cursor: pointer; transition: border-color .15s, transform .15s; }
.pack:hover { border-color: var(--coral); }
.pack input { position: absolute; opacity: 0; pointer-events: none; }
.pack:has(input:checked) { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple) inset; }
.pack:has(input:focus-visible) { outline: 3px solid var(--coral); outline-offset: 3px; }
.pack__drops { display: flex; }
.pack__drops span { width: 26px; height: 34px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--coral); margin-left: -8px; border: 3px solid var(--white); }
.pack__drops span:first-child { margin-left: 0; }
.pack__title { font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.pack__unit { font-size: .88rem; color: var(--muted); }
.pack__price { text-align: right; font-family: var(--display); font-weight: 700; font-size: 1.3rem; }
.pack__price s { display: block; font-family: var(--body); font-weight: 400; font-size: .85rem; color: var(--muted); }
.pack__badge { position: absolute; top: -11px; right: 18px; background: var(--lime); color: var(--purple); font-family: var(--display); font-weight: 600; font-size: .78rem; padding: 3px 12px; border-radius: 999px; }

.checkout { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
@media (min-width: 600px) { .checkout { padding: 32px; } }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--cream); border: 2px solid transparent; border-radius: var(--radius-sm); padding: 12px 14px; transition: border-color .15s, background .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--purple); background: var(--white); }
.field.has-error input, .field.has-error select { border-color: var(--error); background: #fff5f3; }
.field .error { display: none; color: var(--error); font-size: .85rem; margin-top: 5px; }
.field .hint { color: var(--muted); font-size: .8rem; margin: 5px 0 0; }
.field.has-error .error { display: block; }
.pay-options { display: grid; gap: 10px; }
.pay-option { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 14px; cursor: pointer; }
.pay-option:has(input:checked) { border-color: var(--purple); background: var(--cream); }
.pay-option input { accent-color: var(--purple); margin-top: 4px; }
.pay-option small { display: block; color: var(--muted); }
.summary { margin: 18px 0; padding: 16px 0 0; border-top: 2px dashed var(--line); }
.summary div { display: flex; justify-content: space-between; margin-bottom: 6px; }
.summary .total { font-family: var(--display); font-weight: 700; font-size: 1.35rem; }
.coupon-toggle { background: none; border: 0; padding: 0; color: var(--purple); text-decoration: underline; cursor: pointer; font: inherit; font-size: .92rem; }
.form-alert { display: none; border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 14px; font-size: .95rem; }
.form-alert.is-visible { display: block; }
.form-alert--error { background: #fdecea; color: var(--error); }
.form-alert--warn { background: #fff7d6; color: #6b5200; }
.fine { font-size: .82rem; color: var(--muted); margin-top: 12px; }
.hp { position: absolute; left: -5000px; }

.coupon-row { display: flex; gap: 8px; align-items: center; }
.coupon-row input { flex: 1; min-width: 0; text-transform: uppercase; }
.coupon-row .btn { box-shadow: inset 0 0 0 2px var(--purple); flex: none; }
.coupon-ok { color: var(--ok); font-size: .88rem; margin: 6px 0 0; font-weight: 600; }

/* ---------- Envío gratis: empujón, desbloqueo y celebración ---------- */
.summary { position: relative; }
.tag-free { display: inline-block; background: var(--lime); color: var(--purple); font-family: var(--display); font-weight: 700; font-size: .85rem; padding: 2px 10px; border-radius: 999px; letter-spacing: .02em; }
#s-shipping s { color: var(--muted); font-size: .9em; margin-right: 4px; }
.ship-nudge { background: var(--cream); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 14px; }
.summary .ship-nudge, .summary .ship-unlocked { display: block; }
.ship-nudge__text { margin: 0 0 8px; font-size: .95rem; }
.ship-progress { height: 10px; border-radius: 99px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.ship-progress span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--coral), var(--lime)); transition: width .4s ease; }
.ship-upgrade { margin-top: 10px; background: none; border: 0; padding: 0; color: var(--purple); font: inherit; font-weight: 600; font-size: .92rem; text-decoration: underline; cursor: pointer; }
.ship-unlocked { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--lime); color: var(--purple); font-family: var(--display); font-weight: 700; text-align: center; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { --d: 0s; position: absolute; top: -10px; width: 8px; height: 12px; border-radius: 2px; opacity: 0; background: var(--coral); }
.confetti i:nth-child(3n) { background: var(--lime); }
.confetti i:nth-child(4n) { background: var(--purple); width: 6px; height: 6px; border-radius: 50%; }
.confetti i:nth-child(1) { left: 6%; } .confetti i:nth-child(2) { left: 14%; --d: .08s; } .confetti i:nth-child(3) { left: 23%; --d: .16s; }
.confetti i:nth-child(4) { left: 31%; } .confetti i:nth-child(5) { left: 40%; --d: .12s; } .confetti i:nth-child(6) { left: 49%; --d: .04s; }
.confetti i:nth-child(7) { left: 57%; --d: .2s; } .confetti i:nth-child(8) { left: 65%; } .confetti i:nth-child(9) { left: 73%; --d: .1s; }
.confetti i:nth-child(10) { left: 81%; --d: .18s; } .confetti i:nth-child(11) { left: 89%; --d: .06s; } .confetti i:nth-child(12) { left: 95%; --d: .14s; }
.summary.is-celebrating .confetti i { animation: confetti-fall 1.4s ease-out var(--d) forwards; }
.summary.is-celebrating .confetti i:nth-child(even) { animation-name: confetti-fall-alt; }
.summary.is-celebrating .total span:last-child, .summary.is-celebrating .ship-unlocked { animation: free-pulse .6s ease-in-out 2; }
@keyframes confetti-fall { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(190px) rotate(320deg); } }
@keyframes confetti-fall-alt { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(-24px, 170px) rotate(-280deg); } }
@keyframes free-pulse { 50% { transform: scale(1.08); color: var(--coral-dark); } }
.summary .total span:last-child { display: inline-block; transform-origin: right center; }
@media (prefers-reduced-motion: reduce) {
  .summary.is-celebrating .confetti i, .summary.is-celebrating .total span:last-child, .summary.is-celebrating .ship-unlocked { animation: none; }
  .ship-progress span { transition: none; }
}

/* ---------- Pestaña "10% OFF primera compra" ---------- */
.promo-tab { position: fixed; z-index: 45; display: flex; align-items: stretch; filter: drop-shadow(0 8px 18px rgba(53, 28, 66, .3)); }
.promo-tab__main { border: 0; cursor: pointer; font: inherit; background: var(--coral); color: var(--white); font-family: var(--display); font-weight: 600; line-height: 1.15; }
.promo-tab__off { color: var(--purple); background: var(--lime); border-radius: 999px; padding: 2px 8px; font-weight: 700; }
.promo-tab__main strong { letter-spacing: .04em; }
.promo-tab__close { border: 0; cursor: pointer; background: var(--purple); color: var(--cream); font-size: 1.1rem; line-height: 1; width: 30px; }
.promo-tab.is-copied .promo-tab__main { background: var(--ok); }
/* Móvil: píldora compacta abajo a la izquierda (a la derecha está el botón de WhatsApp). */
.promo-tab { left: 12px; bottom: 76px; border-radius: 999px; overflow: hidden; max-width: calc(100vw - 100px); }
.promo-tab__main { padding: 9px 12px; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo-tab__long { display: none; }
/* Escritorio: pestaña vertical en el borde derecho. */
@media (min-width: 980px) {
  .promo-tab { left: auto; right: 0; top: 50%; bottom: auto; transform: translateY(-50%); flex-direction: column; border-radius: 14px 0 0 14px; max-width: none; }
  .promo-tab__main { writing-mode: vertical-rl; transform: rotate(180deg); padding: 16px 10px; font-size: .95rem; }
  .promo-tab__off { padding: 8px 2px; }
  .promo-tab__long { display: inline; }
  .promo-tab__short { display: none; }
  .promo-tab__close { width: auto; height: 30px; order: -1; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 780px; }
.faq details { background: var(--white); border-radius: var(--radius-sm); margin-bottom: 10px; padding: 0 20px; }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 1.1rem; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--coral); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; margin: 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple); color: var(--cream); padding: 48px 0 90px; font-size: .92rem; }
.site-footer .wrap { display: grid; gap: 22px; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer a { color: var(--cream); }
.site-footer .tag { font-family: var(--display); letter-spacing: .2em; font-size: .8rem; color: var(--lime); margin-top: 6px; }

/* ---------- WhatsApp flotante + barra móvil ---------- */
.wa-float { position: fixed; right: 16px; bottom: 86px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: var(--shadow); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: var(--white); border-top: 1px solid var(--line); padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mobile-bar strong { font-family: var(--display); font-size: 1.15rem; }
@media (min-width: 980px) { .mobile-bar { display: none; } .wa-float { bottom: 22px; } .site-footer { padding-bottom: 48px; } }

/* ---------- Páginas simples (gracias / pedido) ---------- */
.page { min-height: 70vh; padding: 48px 0; }
.panel { max-width: 640px; margin: 0 auto; background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.check-badge { width: 76px; height: 76px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; margin-bottom: 16px; }
.kv { width: 100%; border-collapse: collapse; margin: 16px 0; }
.kv td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.kv td:last-child { text-align: right; font-weight: 600; }
.timeline { list-style: none; padding: 0; margin: 20px 0; }
.timeline li { position: relative; padding: 0 0 18px 30px; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.timeline li::after { content: ""; position: absolute; left: 11px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--ink); font-weight: 600; }
.timeline li.done::before { background: var(--coral); }

/* Ajustes */
[hidden] { display: none !important; }
.hero .eyebrow { color: var(--purple); }
@media (max-width: 899px) { .hero__art .sticker { width: 92px; height: 92px; right: 2%; bottom: 2%; } .hero__art { min-height: 320px; } .hero::after { width: 170px; height: 170px; right: -95px; top: 30px; } }
