:root {
  --bg: #17110d;
  --bg-alt: #1e1611;
  --surface: #271c15;
  --line: #3a2a1f;
  --text: #f4e9dc;
  --muted: #b9a592;
  --brand: #e8843c;
  --brand-2: #f2b872;
  --radius: 18px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.8rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: 1.4rem; }
h1 em { font-style: italic; color: var(--brand-2); }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 2.5rem); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--brand); color: #1a0f07; padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { top: 1rem; }

.eyebrow { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-2); font-weight: 600; margin-bottom: 1rem; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 34rem; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--brand); color: #1a0f07; font: 600 1rem var(--sans);
  text-decoration: none; cursor: pointer;
  transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { background: var(--brand-2); transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(232, 132, 60, .7); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: transparent; border-color: var(--brand-2); box-shadow: none; }
.btn--small { padding: .55rem 1.1rem; font-size: .92rem; }

/* Navegación */
.nav { position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-stuck { background: rgba(23, 17, 13, .82); backdrop-filter: blur(14px); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font: 600 1.45rem var(--serif); text-decoration: none; }
.brand svg { width: 26px; height: 26px; color: var(--brand); }
.nav__menu { display: flex; align-items: center; gap: 1.8rem; }
.nav__menu a:not(.btn) { text-decoration: none; color: var(--muted); font-size: .95rem; transition: color .2s; }
.nav__menu a:not(.btn):hover { color: var(--text); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 12px 10px; cursor: pointer; }
.nav__toggle span { display: block; height: 2px; background: var(--text); margin: 6px 0; transition: transform .25s; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero::before {
  content: ""; position: absolute; inset: -68px 0 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 78% 35%, rgba(232, 132, 60, .28), transparent 70%),
    radial-gradient(40% 50% at 10% 0%, rgba(242, 184, 114, .10), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero__copy > * { animation: rise .8s both cubic-bezier(.2, .7, .2, 1); }
.hero__copy > :nth-child(2) { animation-delay: .08s; }
.hero__copy > :nth-child(3) { animation-delay: .16s; }
.hero__copy > :nth-child(4) { animation-delay: .24s; }
.hero__copy > :nth-child(5) { animation-delay: .32s; }
.hero h1 { margin-bottom: 1.4rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 2.8rem; }
.hero__proof { list-style: none; padding: 1.6rem 0 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; border-top: 1px solid var(--line); }
.hero__proof strong { display: block; font: 600 2.1rem/1 var(--serif); color: var(--brand-2); font-variant-numeric: tabular-nums; }
.hero__proof span { font-size: .88rem; color: var(--muted); }

.hero__art { position: relative; aspect-ratio: 1; max-width: 480px; width: 100%; justify-self: center; animation: rise 1s .2s both; }
.cup { position: absolute; inset: 8% 4% 0; animation: float 7s ease-in-out infinite; }
.cup__svg { width: 100%; height: auto; display: block; margin-top: 22%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.steam { position: absolute; left: 22%; right: 30%; top: 0; height: 40%; display: flex; justify-content: space-around; }
.steam i { width: 12px; height: 100%; border-radius: 50%; background: linear-gradient(to top, rgba(244, 233, 220, .5), transparent); filter: blur(9px); animation: steam 4s ease-in-out infinite; transform-origin: bottom; }
.steam i:nth-child(2) { animation-delay: 1.2s; }
.steam i:nth-child(3) { animation-delay: 2.3s; }
.tag { position: absolute; background: rgba(39, 28, 21, .88); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 14px; padding: .7rem 1rem; font-size: .82rem; box-shadow: 0 16px 40px -18px #000; }
.tag b { display: block; font-size: .92rem; }
.tag span { color: var(--muted); }
.tag--a { left: -2%; top: 16%; animation: float 6s 1s ease-in-out infinite; }
.tag--b { right: -2%; bottom: 10%; animation: float 8s ease-in-out infinite; }

/* Cinta */
.strip { border-block: 1px solid var(--line); background: var(--bg-alt); padding: 1.1rem 0; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; width: max-content; animation: scroll 32s linear infinite; }
.marquee__track span { font: italic 1.15rem var(--serif); color: var(--muted); padding: 0 2rem; white-space: nowrap; }
.marquee__track span::after { content: "✦"; color: var(--brand); font-style: normal; font-size: .8rem; margin-left: 4rem; }

/* Secciones */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section__head { max-width: 40rem; margin-bottom: 3.2rem; }
.section__head--center { margin-inline: auto; text-align: center; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step { padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), transparent); }
.step__n { font: italic 600 2.6rem/1 var(--serif); color: var(--brand); display: block; margin-bottom: 1.6rem; }
.step h3 { margin-bottom: .6rem; }
.step p { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { position: relative; padding: 1.8rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .3s, border-color .3s; }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--accent); }
.card::after { content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -90px; border-radius: 50%; background: var(--accent); opacity: .12; filter: blur(30px); transition: opacity .3s; }
.card:hover { transform: translateY(-6px); border-color: var(--accent); }
.card:hover::after { opacity: .28; }
.card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.4rem; }
.pill { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.score { font: 600 .95rem var(--serif); color: var(--accent); }
.card__origin { color: var(--accent); font-size: .88rem; margin: .35rem 0 .9rem; }
.card > p:not(.card__origin) { color: var(--muted); }
.meter { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; align-items: center; margin: 1.5rem 0 0; font-size: .82rem; color: var(--muted); }
.meter dd { margin: 0; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--v); background: var(--accent); border-radius: inherit; transform-origin: left; transform: scaleX(0); transition: transform 1s .3s cubic-bezier(.2, .7, .2, 1); }
.is-visible .meter i { transform: none; }

/* Planes */
.switch { display: inline-flex; margin-top: 1.8rem; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-alt); }
.switch button { border: 0; background: none; color: var(--muted); font: 600 .92rem var(--sans); padding: .55rem 1.2rem; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.switch button.is-active { background: var(--text); color: var(--bg); }
.switch small { color: var(--brand); font-weight: 700; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 2.2rem 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.plan--top { border-color: var(--brand); background: linear-gradient(180deg, #33221a, var(--surface)); box-shadow: 0 30px 70px -40px rgba(232, 132, 60, .8); }
.plan__badge { position: absolute; top: -13px; left: 2rem; background: var(--brand); color: #1a0f07; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .8rem; border-radius: 999px; }
.plan__desc { color: var(--muted); margin-top: .4rem; }
.price { font: 600 3rem/1 var(--serif); margin: 1.6rem 0; font-variant-numeric: tabular-nums; }
.price small { font: 400 .95rem var(--sans); color: var(--muted); margin-left: .25rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .7rem; flex: 1; align-content: start; }
.plan li { padding-left: 1.7rem; position: relative; color: var(--muted); }
.plan li::before { content: ""; position: absolute; left: 0; top: .45em; width: .95rem; height: .5rem; border-left: 2px solid var(--brand-2); border-bottom: 2px solid var(--brand-2); transform: rotate(-45deg); }
.note { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 2rem; }

/* Testimonios */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.quote { margin: 0; padding: 2rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; gap: 1.6rem; justify-content: space-between; }
.quote blockquote { margin: 0; font: italic 1.2rem/1.45 var(--serif); }
.quote figcaption { display: grid; grid-template-columns: auto 1fr; column-gap: .8rem; align-items: center; font-weight: 600; font-size: .95rem; }
.quote small { grid-column: 2; color: var(--muted); font-weight: 400; }
.avatar { grid-row: span 2; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #1a0f07; font-size: .8rem; font-weight: 700; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.3rem 2.5rem 1.3rem 0; font: 600 1.2rem var(--serif); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; translate: 0 -50%; font: 300 1.7rem var(--sans); color: var(--brand-2); transition: rotate .25s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--muted); padding: 0 2.5rem 1.4rem 0; }

/* CTA */
.cta { padding: clamp(4rem, 9vw, 7rem) 0; text-align: center; background: radial-gradient(70% 120% at 50% 100%, rgba(232, 132, 60, .32), transparent 70%), var(--bg-alt); border-top: 1px solid var(--line); }
.cta p { color: var(--muted); margin-top: .9rem; }
.signup { display: flex; gap: .6rem; max-width: 30rem; margin: 2rem auto 0; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); transition: border-color .2s; }
.signup:focus-within { border-color: var(--brand-2); }
.signup.is-error { border-color: #e2604f; }
.signup input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font: 1rem var(--sans); padding: 0 1.1rem; outline: none; }
.signup input::placeholder { color: #7d6a59; }
.cta .signup__msg { min-height: 1.6em; font-size: .92rem; color: var(--brand-2); }
.cta .signup__msg.is-error { color: #f08a7a; }

/* Pie */
.footer { padding: 2rem 0; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.footer__inner { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; }
.footer strong { color: var(--text); font-family: var(--serif); font-size: 1.05rem; }

/* Aparición al hacer scroll (solo si hay JS) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes steam { 0% { opacity: 0; transform: translateY(20%) scaleX(1); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-40%) scaleX(2.2); } }
@keyframes scroll { to { transform: translateX(-50%); } }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 360px; order: -1; }
  .steps, .cards, .plans, .quotes { grid-template-columns: 1fr; }
  .plan--top { order: -1; }
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; inset: 68px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 1.25rem 1.5rem; background: var(--bg); border-bottom: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav__menu.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav__menu a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__menu .btn { margin-top: 1.2rem; }
}
@media (max-width: 520px) {
  .hero__proof { grid-template-columns: 1fr; }
  .signup { flex-direction: column; border-radius: 22px; padding: 10px; }
  .signup input { padding: .8rem 1rem; text-align: center; }
  .tag--a { left: 0; } .tag--b { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .meter i { transform: none; }
}
