:root {
  --cream: #f1e9dc;
  --paper: #f8f4ec;
  --ink: #1d1c17;
  --ink-soft: #423e36;
  --olive: #262a20;
  --olive-2: #33382b;
  --sage: #a9a67e;
  --gold: #c2a56a;
  --gold-soft: #e3cf9f;
  --bordo: #6d1427;
  --line: rgba(29, 28, 23, .14);
  --serif: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --radius: 18px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
em { font-style: italic; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* tipografía */
.eyebrow {
  font: 500 12px/1 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.eyebrow--light { color: var(--sage); }
.h2 {
  font: 400 clamp(38px, 6vw, 78px)/1.02 var(--serif);
  letter-spacing: -.01em;
  text-wrap: balance;
}
.h2 em { color: var(--bordo); }
.h2--light { color: var(--paper); }
.h2--light em { color: var(--gold-soft); }
.lead { max-width: 46ch; color: var(--ink-soft); margin-top: 18px; text-wrap: pretty; }
.lead--light { color: rgba(248, 244, 236, .72); }

/* botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px;
  border-radius: 999px; border: 1px solid transparent;
  font: 500 14px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn--dark { background: var(--olive); color: var(--paper); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--gold { background: var(--gold); color: var(--olive); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 12px; }
@media (hover: hover) {
  .btn--dark:hover { background: var(--bordo); }
  .btn--ghost:hover { background: var(--ink); color: var(--paper); }
  .btn--gold:hover { background: var(--gold-soft); }
}

/* NAV */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px var(--pad);
  padding-top: max(14px, env(safe-area-inset-top));
  transition: background-color .4s, backdrop-filter .4s, box-shadow .4s;
}
.nav.is-solid {
  background: rgba(248, 244, 236, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav__brand img { width: 40px; height: 40px; border-radius: 50%; }
.nav__brand span { font: 400 21px/1 var(--serif); }
.nav__brand em { color: var(--bordo); }
.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ink-soft);
  transition: color .2s;
}
.nav__links a:hover { color: var(--ink); }
@media (max-width: 899px) { .nav__links { display: none; } .nav__brand span { font-size: 18px; } .nav .btn--sm { padding: 0 14px; font-size: 11px; } }

/* HERO */
.hero { position: relative; height: 420vh; background: var(--cream); }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
[data-stage] { position: absolute; opacity: 0; will-change: opacity, transform; pointer-events: none; }
[data-stage].is-on { pointer-events: auto; }
.hero__intro { top: 96px; left: 0; right: 0; text-align: center; }
.hero__mid { right: var(--pad); bottom: 12vh; max-width: 480px; text-align: right; }
.hero__shade {
  position: absolute; inset: 0 0 0 auto; width: 58%; opacity: 0; pointer-events: none;
  background: linear-gradient(to left, rgba(241, 233, 220, .94) 0%, rgba(241, 233, 220, .82) 45%, rgba(241, 233, 220, 0) 100%);
}
.hero__line { font: 400 clamp(36px, 5vw, 68px)/1.04 var(--serif); }
.hero__line em { color: var(--bordo); }
.hero__end { right: var(--pad); top: 50%; translate: 0 -50%; max-width: 470px; }
.hero__title { font: 400 clamp(44px, 6vw, 86px)/1 var(--serif); }
.hero__title em { color: var(--bordo); }
.hero__sub { margin-top: 20px; color: var(--ink-soft); max-width: 38ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__cue { right: var(--pad); bottom: 34px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); }
.hero__cue i { width: 1px; height: 46px; background: linear-gradient(var(--ink-soft), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.hero__loader { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; transition: opacity .6s; }
.hero__loader i { display: block; height: 100%; width: 0; background: var(--bordo); transition: width .2s linear; }
.hero__loader.is-done { opacity: 0; }

@media (max-width: 899px) {
  .hero__mid { left: var(--pad); right: var(--pad); bottom: 14vh; text-align: center; max-width: none; }
  .hero__shade { display: none; }
  .hero__end {
    left: 0; right: 0; top: auto; bottom: 0; translate: none; max-width: none;
    padding: 70px var(--pad) max(30px, env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--paper) 62%, rgba(248, 244, 236, 0));
    text-align: center;
  }
  .hero__title { font-size: clamp(38px, 11vw, 52px); }
  .hero__sub { margin-inline: auto; font-size: 15px; }
  .hero__ctas { justify-content: center; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .hero__cue { left: 0; right: 0; }
}

/* CINTA */
.ribbon { background: var(--olive); color: var(--gold-soft); overflow: hidden; padding: 18px 0; }
.ribbon__track { display: flex; gap: 34px; width: max-content; animation: ribbon 36s linear infinite; font: italic 400 22px/1 var(--serif); white-space: nowrap; }
.ribbon__track b { font-weight: 400; color: var(--sage); font-size: 14px; align-self: center; }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* DISEÑOS */
.designs { position: relative; background: var(--paper); }
.designs__sticky { padding: 110px 0 90px; }
.designs__head { padding: 0 var(--pad); max-width: 820px; }
.designs__rail {
  display: flex; gap: 22px; padding: 46px var(--pad) 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.designs__rail::-webkit-scrollbar { display: none; }
.card {
  flex: 0 0 min(78vw, 360px); scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 0 var(--line), 0 24px 50px -30px rgba(38, 42, 32, .35);
}
.card__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--cream); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card__num { position: absolute; top: 14px; left: 14px; padding: 6px 10px; border-radius: 999px; background: rgba(248, 244, 236, .9); font: 500 11px/1 var(--sans); letter-spacing: .16em; }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.card__name { font: italic 400 30px/1.05 var(--serif); }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card__tags span { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--ink-soft); }
.card__desc { font-size: 15px; color: var(--ink-soft); flex: 1; }
.card .btn { margin-top: 8px; width: 100%; }
@media (hover: hover) { .card:hover .card__img img { transform: scale(1.05); } }
.designs__progress { display: none; }

@media (min-width: 900px) {
  .designs { height: var(--designs-h, 300vh); }
  .designs__sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 80px 0 40px; overflow: hidden; }
  .designs__rail { overflow: visible; scroll-snap-type: none; will-change: transform; padding-top: 40px; }
  .card { flex-basis: 330px; }
  .card__img { aspect-ratio: 1 / 1; }
  .designs__progress { display: block; margin: 30px var(--pad) 0; height: 1px; background: var(--line); }
  .designs__progress i { display: block; height: 100%; width: 0; background: var(--ink); }
}
@media (min-width: 900px) and (max-height: 980px) {
  .designs .h2 { font-size: 52px; }
  .designs .lead { margin-top: 10px; }
  .designs__rail { padding-top: 28px; }
  .card__img { aspect-ratio: 5 / 4; }
  .card__body { padding: 18px 20px 20px; gap: 8px; }
}
@media (min-width: 900px) and (max-height: 760px) {
  .designs .lead { display: none; }
  .card__desc { display: none; }
}

/* RULETA */
.slot {
  background: radial-gradient(120% 80% at 50% 0%, var(--olive-2), var(--olive) 60%);
  color: var(--paper);
  padding: 120px var(--pad);
  display: grid; gap: 56px; justify-items: center; text-align: center;
}
.slot__copy { max-width: 720px; display: grid; justify-items: center; }
.machine {
  width: min(100%, 620px);
  padding: 18px;
  border-radius: 34px;
  background: linear-gradient(160deg, #d9c08a, #a88a4f 45%, #e8d4a6 70%, #9c7f45);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.machine__top { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 6px 0 16px; color: var(--olive); font: italic 400 26px/1 var(--serif); }
.machine__top img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(38, 42, 32, .4); }
.machine__window {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  padding: 14px; border-radius: 22px; background: var(--olive);
  box-shadow: inset 0 10px 24px rgba(0, 0, 0, .55);
}
.reel__label { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--sage); margin-bottom: 8px; }
.reel__view {
  --item: 74px;
  position: relative; height: calc(var(--item) * 3); overflow: hidden; border-radius: 14px;
  background: linear-gradient(#e9e0cf, var(--paper) 30%, var(--paper) 70%, #e9e0cf);
}
.reel__view::before, .reel__view::after { content: ""; position: absolute; left: 0; right: 0; height: 34%; z-index: 2; pointer-events: none; }
.reel__view::before { top: 0; background: linear-gradient(rgba(38, 42, 32, .55), transparent); }
.reel__view::after { bottom: 0; background: linear-gradient(transparent, rgba(38, 42, 32, .55)); }
.reel__strip { will-change: transform; }
.reel__item {
  height: var(--item); display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--ink); font: italic 400 clamp(17px, 3.6vw, 24px)/1 var(--serif); padding: 0 6px;
}
.reel__item .dot { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.machine__line { position: absolute; left: 10px; right: 10px; top: calc(14px + 18px + 74px * 1.5); height: 74px; translate: 0 -50%; border-block: 1px solid rgba(194, 165, 106, .7); pointer-events: none; border-radius: 4px; }
.machine__bottom { display: flex; justify-content: center; padding-top: 16px; }
.machine__bottom .btn { min-width: 200px; background: var(--olive); color: var(--gold-soft); }
.machine__bottom .btn:disabled { opacity: .6; cursor: default; }
.slot__result { display: grid; gap: 14px; justify-items: center; animation: rise .6s var(--ease); }
.slot__got { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--sage); }
.slot__combo { font: italic 400 clamp(28px, 4.4vw, 44px)/1.1 var(--serif); color: var(--gold-soft); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 520px) { .reel__view { --item: 60px; } .machine__line { top: calc(14px + 18px + 60px * 1.5); height: 60px; } .machine { padding: 12px; border-radius: 26px; } .machine__window { gap: 6px; padding: 10px; } .reel__item .dot { display: none; } }

/* PASOS */
.steps { padding: 120px var(--pad); text-align: center; display: grid; justify-items: center; }
.steps__list { list-style: none; padding: 0; margin: 56px 0 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1100px; width: 100%; text-align: left; }
.steps__list li { padding: 30px 28px; border-top: 1px solid var(--ink); }
.steps__n { font: italic 400 46px/1 var(--serif); color: var(--bordo); }
.steps__list h3 { font: 400 26px/1.1 var(--serif); margin: 18px 0 8px; }
.steps__list p { color: var(--ink-soft); font-size: 16px; }
@media (max-width: 899px) { .steps__list { grid-template-columns: 1fr; gap: 0; } .steps__list li { padding: 24px 4px; } }

/* INSTAGRAM */
.insta { padding: 40px var(--pad) 120px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: center; max-width: 1300px; margin: 0 auto; }
.insta__copy .btn { margin-top: 28px; }
.insta__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.insta__grid a { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: var(--cream); }
.insta__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
@media (hover: hover) { .insta__grid a:hover img { transform: scale(1.06); } }
@media (max-width: 899px) { .insta { grid-template-columns: 1fr; gap: 34px; } }

/* MUNDO UNIQUE */
.world { background: var(--olive); padding: 120px var(--pad); text-align: center; display: grid; justify-items: center; }
.world__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; width: 100%; max-width: 1100px; }
.world__card { position: relative; padding: 46px 28px 40px; border-radius: var(--radius); border: 1px solid rgba(169, 166, 126, .35); color: var(--paper); text-align: left; }
.world__card h3 { font: italic 400 46px/1 var(--serif); margin: 20px 0 10px; color: var(--gold-soft); }
.world__card p { color: rgba(248, 244, 236, .7); }
.world__tag { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--sage); }
.world__card.is-here { background: rgba(194, 165, 106, .12); border-color: var(--gold); }
.world__card.is-here .world__tag { color: var(--gold); }
@media (max-width: 899px) { .world__cards { grid-template-columns: 1fr; } }

/* FAQ */
.faq { padding: 120px var(--pad); max-width: 900px; margin: 0 auto; }
.faq__list { margin-top: 46px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative;
  font: 400 clamp(20px, 2.4vw, 26px)/1.25 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font: 300 28px/1 var(--sans); color: var(--bordo); transition: rotate .3s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 40px 26px 0; color: var(--ink-soft); }

/* CIERRE */
.closing { background: radial-gradient(90% 120% at 50% 100%, var(--olive-2), var(--olive)); padding: 130px var(--pad); display: grid; justify-items: center; gap: 34px; text-align: center; }
.closing img { width: 72px; height: 72px; border-radius: 50%; }

/* FOOTER */
.foot { background: var(--olive); color: rgba(248, 244, 236, .7); border-top: 1px solid rgba(169, 166, 126, .25); padding: 30px var(--pad) max(30px, env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: space-between; font-size: 14px; }
.foot__brand { display: flex; align-items: center; gap: 10px; color: var(--paper); font: 400 17px/1 var(--serif); }
.foot__brand img { border-radius: 50%; }
.foot__links { display: flex; gap: 26px; }
.foot__links a { text-decoration: none; }
.foot__links a:hover { color: var(--gold-soft); }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--olive); color: var(--gold-soft);
  box-shadow: 0 14px 30px -10px rgba(38, 42, 32, .6);
  transform: translateY(120px); transition: transform .5s var(--ease);
}
.wa-float.is-on { transform: none; }

/* revelado */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero { height: 100vh; }
  .ribbon__track, .hero__cue i { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .designs { height: auto !important; }
  .designs__sticky { position: static; height: auto; }
}

/* ---------- Legibilidad ----------
   Bodoni en tamaño grande usa trazos finísimos (óptica de "display") que se pierden sobre la foto.
   Fijamos una óptica de texto (trazos más gruesos), subimos el peso y oscurecemos los textos chicos. */
.h2, .hero__line, .hero__title, .machine__top, .slot__combo, .steps__n, .steps__list h3, .world__card h3, .nav__brand span, .foot__brand, .card__name, .ribbon__track, .reel__item, .faq summary {
  font-optical-sizing: none;
  font-variation-settings: "opsz" 24;
  font-weight: 500;
}
.h2 em, .hero__line em, .hero__title em { font-weight: 500; }
.eyebrow { font-size: 13px; letter-spacing: .18em; font-weight: 600; color: var(--ink); }
.eyebrow--light { color: var(--gold-soft); }
.lead { color: var(--ink-soft); }
.lead--light { color: rgba(248, 244, 236, .88); }
.card__desc { font-size: 16px; line-height: 1.55; }
.card__tags span { font-size: 13px; color: var(--ink); }
.reel__label, .world__tag, .slot__got { font-size: 12px; letter-spacing: .18em; font-weight: 600; }
.hero__cue { font-size: 12px; letter-spacing: .22em; font-weight: 500; color: var(--ink); }
.nav__links a { font-size: 14px; letter-spacing: .1em; font-weight: 500; color: var(--ink); }
.btn { font-weight: 600; letter-spacing: .1em; }
.steps__list p, .faq details p { color: var(--ink-soft); }
.foot { color: rgba(248, 244, 236, .85); }

/* texto que va encima del video: halo crema suave para que se lea sobre cualquier cuadro */
.hero__intro, .hero__mid, .hero__end .hero__title, .hero__end .eyebrow, .hero__sub {
  text-shadow: 0 0 18px rgba(241, 233, 220, .95), 0 0 2px rgba(241, 233, 220, .9);
}
.hero__sub { font-size: 17px; font-weight: 500; color: var(--ink); }
@media (max-width: 899px) { .hero__sub { font-size: 16px; } }

/* ---------- Celular: rendimiento ----------
   El difuminado (vidrio del menú, halo de las letras) obliga al teléfono a recalcularlo
   en cada cuadro del video. En celular usamos fondos sólidos, que se ven igual y no traban. */
@media (max-width: 899px), (hover: none) {
  .nav.is-solid { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .nav { transition: background-color .3s, box-shadow .3s; }
  .hero__intro, .hero__mid, .hero__end .hero__title, .hero__end .eyebrow, .hero__sub { text-shadow: none; }
  /* el texto del medio va sobre la pared lisa: un velo crema detrás asegura la lectura sin blur */
  .hero__mid { padding: 18px 0; background: radial-gradient(closest-side, rgba(241, 233, 220, .85), rgba(241, 233, 220, 0)); }
  [data-stage] { will-change: opacity, transform; contain: layout paint; }
}
