/* ==========================================================================
   Éxito y Belleza · Ramón Saco — landing de captación
   Mobile-first. Paleta y tipografía según brief.
   ========================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #10100F;
  --panel: #171715;
  --cream: #F0EBDF;
  --muted: #B0ADA5;
  --gold: #C4A775;
  --gold-light: #DAC39D;
  --gold-dark: #947548;
  --gold-deep: #806039;
  --line: rgba(255, 255, 255, .14);
  --gold-line: rgba(196, 167, 117, .38);

  --grad-gold: linear-gradient(115deg, var(--gold-dark) 0%, var(--gold-light) 55%, var(--gold) 100%);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: 20px;
  --maxw: 1120px;
  --radius: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --slow: 1100ms;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0; }
em { font-style: italic; }

:focus-visible {
  outline: 1.5px solid var(--gold-light);
  outline-offset: 4px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Mármol: textura sutil ---------- */
.marble {
  position: absolute;
  pointer-events: none;
  background: url("../assets/marble.webp") center / cover no-repeat;
}
.marble--top {
  inset: 0 0 auto 0;
  height: 115vh;
  opacity: .30;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.55) 45%, transparent 100%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.55) 45%, transparent 100%);
  z-index: 0;
}
.marble--panel {
  inset: 0;
  opacity: .26;
  background-position: 30% 70%;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 50%, transparent 25%, #000 100%);
          mask-image: radial-gradient(120% 90% at 50% 50%, transparent 25%, #000 100%);
}

/* ---------- Estructura ---------- */
.site-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: calc(28px + env(safe-area-inset-top)) var(--gutter) 0;
}
.monogram {
  width: auto;
  height: 52px;
}

main { position: relative; z-index: 1; }

.block {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* ---------- Tipografía ---------- */
.h1,
.h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.005em;
  text-wrap: balance;
  margin: 0;
}
.h1 em,
.h2 em,
.sheet__title em {
  font-style: italic;
  background: linear-gradient(100deg, var(--gold-light) 0%, var(--gold) 60%, var(--gold-dark) 120%);
  -webkit-background-clip: text;
          background-clip: text;
  color: var(--gold);
  -webkit-text-fill-color: transparent;
  padding-right: .06em;
}

.h1 {
  font-size: clamp(2.05rem, 8.4vw, 4.1rem);
  line-height: 1.08;
  text-align: center;
  max-width: 17ch;
  margin: 0 auto;
}

.h1__s { white-space: nowrap; }
.h1__q { display: block; }

.h2 {
  font-size: clamp(2.1rem, 7.6vw, 3.6rem);
  line-height: 1.08;
}

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
  padding-left: .42em; /* compensa el tracking para centrar */
}

.lead {
  color: var(--muted);
  font-size: 1.04rem;
  margin-top: 18px;
}

/* ---------- Placeholders [ … ] ---------- */
.ph {
  color: var(--muted);
  font-family: var(--sans);
  font-style: normal;
  font-size: .82em;
  font-weight: 500;
  letter-spacing: .06em;
  white-space: nowrap;
  border-bottom: 1px dashed var(--gold-line);
  padding-bottom: 1px;
}
.ph--gold { color: var(--gold); }
.ph--num {
  font-size: 1rem;
  letter-spacing: .08em;
  border-bottom-color: currentColor;
}
.ph--media {
  border: 0;
  font-size: .72rem;
  letter-spacing: .3em;
  color: var(--gold);
  opacity: .85;
}

/* ==========================================================================
   1 · VÍDEO
   ========================================================================== */
.block--video {
  padding-top: clamp(36px, 7vw, 64px);
}

.video {
  margin: clamp(30px, 6vw, 52px) auto 0;
  max-width: 880px;
}
.video[data-ratio="9/16"] { max-width: 420px; }

.video__frame {
  position: relative;
  aspect-ratio: var(--ratio, 16 / 9);
  overflow: hidden;
  border-radius: var(--radius);
  background: #0b0b0a;
  box-shadow:
    0 0 0 1px var(--gold-line),
    0 30px 80px -30px rgba(0, 0, 0, .9),
    0 0 120px -40px rgba(196, 167, 117, .25);
}
.video__poster,
.video__frame iframe,
.video__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video__poster {
  object-fit: cover;
  object-position: 50% 50%;
  transform: scale(1.02);
  transition: transform 2.4s var(--ease);
}
.video__frame:hover .video__poster { transform: scale(1.05); }

.video__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 70% at 50% 50%, rgba(16,16,15,.35) 0%, rgba(16,16,15,.72) 100%),
    linear-gradient(180deg, rgba(16,16,15,.15) 0%, rgba(16,16,15,.6) 100%);
}

.video__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78px;
  height: 78px;
  margin: -39px 0 0 -39px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--grad-gold);
  color: var(--bg);
  box-shadow: 0 10px 40px -8px rgba(196, 167, 117, .55);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.video__play::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(218, 195, 157, .45);
  animation: halo 3.6s var(--ease) infinite;
}
.video__play svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
  margin-left: 4px;
}
.video__play:hover { transform: scale(1.06); box-shadow: 0 12px 50px -6px rgba(196, 167, 117, .7); }

.video__soon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(16px, 4vw, 28px);
  text-align: center;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--cream);
  padding-left: .3em;
}
.video.is-empty .video__play { cursor: default; }
.video:not(.is-empty) .video__veil {
  background:
    radial-gradient(80% 80% at 50% 45%, rgba(16,16,15,0) 0%, rgba(16,16,15,.45) 100%),
    linear-gradient(180deg, rgba(16,16,15,0) 55%, rgba(16,16,15,.35) 100%);
}
.video.is-nudge .video__soon { animation: nudge .9s var(--ease); }

@keyframes halo {
  0%   { transform: scale(.92); opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: scale(1.28); opacity: 0; }
}
@keyframes nudge {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* ==========================================================================
   2 · CASOS DE ÉXITO Y RESULTADOS
   ========================================================================== */
.block--cases {
  padding-top: clamp(96px, 16vw, 160px);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cases {
  margin-top: clamp(64px, 11vw, 112px);
}

/* Móvil: carrusel con scroll-snap */
.cases__track {
  list-style: none;
  margin: 0 calc(-1 * var(--gutter));
  padding: 4px var(--gutter) 8px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 84%;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.cases__track::-webkit-scrollbar { display: none; }

.case {
  scroll-snap-align: start;
  display: flex;
}
.case > article {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .6s var(--ease), transform .6s var(--ease);
}
.case > article:hover { border-color: var(--gold-line); }

.case__media {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(16,16,15,.55), rgba(16,16,15,.85)),
    url("../assets/marble.webp") center / 220% no-repeat;
  border-bottom: 1px solid var(--line);
}
.case:nth-child(2) .case__media { background-position: center, 20% 80%; }
.case:nth-child(3) .case__media { background-position: center, 85% 15%; }
.case__media img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  min-width: 0;
  min-height: 0;
  border-radius: 10px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .08);
}

.case__body {
  padding: 26px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  flex: 1;
}
.case__who {
  font-size: .9rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: baseline;
}
.case__label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.case__numbers {
  font-variant-numeric: lining-nums;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 9vw, 2.8rem);
  line-height: 1;
}
.case__value {
  background: linear-gradient(100deg, var(--gold-light) 0%, var(--gold) 60%, var(--gold-dark) 120%);
  -webkit-background-clip: text;
          background-clip: text;
  color: var(--gold);
  -webkit-text-fill-color: transparent;
  font-size: clamp(2.8rem, 12vw, 3.4rem);
}
.case__arrow {
  color: var(--gold);
  font-family: var(--sans);
  font-size: 1.1rem;
}
.case__note {
  margin-top: 10px;
  font-size: .88rem;
  color: var(--muted);
}
.case__quote {
  margin: auto 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--cream);
}

.cases__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 22px;
}
.cases__dots button {
  width: 32px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  position: relative;
}
.cases__dots button::before {
  content: "";
  position: absolute;
  left: 4px; right: 4px; top: 11px;
  height: 2px;
  background: var(--line);
  transition: background .5s var(--ease);
}
.cases__dots button[aria-current="true"]::before { background: var(--gold); }

/* Estadísticas reales de reels */
.reels {
  list-style: none;
  margin: clamp(40px, 7vw, 64px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 12px;
}
.reel figure { margin: 0; }
.reel img {
  width: 100%;
  height: auto;
  aspect-ratio: 520 / 826;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.reel--top img { border-color: var(--gold); box-shadow: 0 0 60px -20px rgba(196, 167, 117, .45); }
.reel figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 14px;
  text-align: center;
}
.reel__num {
  font-variant-numeric: lining-nums;
  font-family: var(--serif);
  font-size: clamp(2rem, 8.5vw, 2.6rem);
  font-weight: 500;
  line-height: 1;
  background: linear-gradient(100deg, var(--gold-light) 0%, var(--gold) 60%, var(--gold-dark) 120%);
  -webkit-background-clip: text;
          background-clip: text;
  color: var(--gold);
  -webkit-text-fill-color: transparent;
}
.reel__label {
  margin-top: 6px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cream);
}
.reel__sub {
  font-size: clamp(.72rem, 3.2vw, .8rem);
  color: var(--muted);
}

/* ==========================================================================
   3 · BOTÓN → FORMULARIO
   ========================================================================== */
.block--cta {
  padding-top: clamp(96px, 16vw, 160px);
  padding-bottom: clamp(80px, 12vw, 128px);
}
.cta-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  padding: clamp(56px, 10vw, 96px) 22px;
  border-radius: var(--radius);
  border: 1px solid var(--gold-line);
  background: radial-gradient(90% 120% at 50% 0%, #1b1a17 0%, var(--bg) 70%);
}
.cta-panel .marble { z-index: -1; }

.btn-gold {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 18px 38px;
  border: 0;
  border-radius: 999px;
  background: var(--grad-gold);
  background-size: 140% 100%;
  color: var(--bg);
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .02em;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 14px 40px -14px rgba(196, 167, 117, .65),
    inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-position .8s var(--ease);
}
.btn-gold span { position: relative; z-index: 1; }
/* brillo que recorre el botón cada pocos segundos */
.btn-gold::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -40%;
  width: 34%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .55) 50%, transparent 100%);
  transform: translateX(0) skewX(-18deg);
  animation: shine 5.5s var(--ease) 1.4s infinite;
}
.btn-gold:hover {
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow: 0 20px 50px -14px rgba(196, 167, 117, .8), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.btn-gold:active { transform: translateY(0); }

@keyframes shine {
  0%   { transform: translateX(0) skewX(-18deg); }
  28%  { transform: translateX(520%) skewX(-18deg); }
  100% { transform: translateX(520%) skewX(-18deg); }
}

.block--cta .btn-gold { width: 100%; max-width: 420px; font-size: 1.08rem; min-height: 66px; }

.micro {
  margin-top: 20px;
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.8;
}

/* ---------- Línea legal ---------- */
.legal {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 var(--gutter) calc(32px + env(safe-area-inset-bottom));
  font-size: .78rem;
  color: var(--muted);
}
.legal a,
.consent a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--gold-line);
  text-underline-offset: 3px;
}
.legal a:hover,
.consent a:hover { color: var(--cream); text-decoration-color: var(--gold); }
a[aria-disabled="true"] { cursor: default; }

/* ==========================================================================
   FORMULARIO (ventana superpuesta / hoja inferior en móvil)
   ========================================================================== */
html.is-locked,
html.is-locked body { overflow: hidden; }

.sheet {
  /* móvil: hoja que sube desde abajo */
  margin: auto 0 0;
  width: 100%;
  max-width: 100%;
  max-height: 92dvh;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--gold-line);
  border-radius: 20px 20px 0 0;
  background: var(--panel);
  color: var(--cream);
  box-shadow: 0 -30px 80px -20px rgba(0, 0, 0, .8);
  overflow: hidden;
  transform: translateY(100%);
  transition: transform .55s var(--ease);
}
.sheet.is-open { transform: translateY(0); }
.sheet::backdrop {
  background: rgba(8, 8, 7, .72);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.sheet.is-open::backdrop { opacity: 1; }

.sheet__inner {
  max-height: 92dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px var(--gutter) calc(28px + env(safe-area-inset-bottom));
}

.sheet__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.sheet__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.9rem;
  line-height: 1.1;
}
.sheet__close {
  flex: none;
  width: 44px;
  height: 44px;
  margin: -6px -10px 0 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  transition: color .3s, background .3s;
}
.sheet__close:hover { color: var(--cream); background: rgba(255, 255, 255, .06); }
.sheet__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.progress {
  margin-top: 22px;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.progress__bar {
  display: block;
  height: 100%;
  width: 25%;
  background: var(--grad-gold);
  transition: width .7s var(--ease);
}
.progress__text {
  margin-top: 10px;
  font-size: .72rem;
  letter-spacing: .2em;
  color: var(--muted);
  text-align: right;
}

.form { margin-top: 8px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.step {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: none;
}
.step.is-active {
  display: block;
  animation: stepIn .6s var(--ease) both;
}
.step.is-back { animation-name: stepBack; }
@keyframes stepIn   { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }

.step__q {
  padding: 0;
  margin: 8px 0 22px;
  font-family: var(--serif);
  font-size: 1.65rem;
  line-height: 1.2;
  font-weight: 500;
  color: var(--cream);
}
.step__q label { cursor: default; }
.step__q,
.result__title { font-variant-numeric: lining-nums; }
.step__q--long { font-size: 1.32rem; line-height: 1.32; }
.error + .field-label { margin-top: 10px; }

.field-label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.field {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  font-size: 1.08rem; /* ≥16px: evita el zoom de iOS */
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--cream);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
  -webkit-appearance: none;
          appearance: none;
}
.field:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 167, 117, .18);
}
.field[aria-invalid="true"] { border-color: #D9927B; }

.phone {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: 8px;
}
.phone__prefix {
  padding-right: 28px;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.error {
  min-height: 1.4em;
  margin-top: 8px;
  font-size: .86rem;
  color: #E5A894;
}

.choices {
  display: grid;
  gap: 10px;
}
.choice {
  min-height: 58px;
  padding: 14px 18px;
  text-align: left;
  font-size: 1.02rem;
  font-weight: 500;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.choice::after {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.choice:hover { border-color: var(--gold-line); }
.choice[aria-pressed="true"] {
  border-color: var(--gold);
  background: rgba(196, 167, 117, .08);
}
.choice[aria-pressed="true"]::after {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: inset 0 0 0 3px var(--panel);
}

.step__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
}
.step__nav:has(.btn-line) { justify-content: flex-end; }

.btn-line {
  min-height: 52px;
  padding: 12px 28px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: none;
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: .02em;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.btn-line:hover { background: var(--gold); color: var(--bg); }

.btn-back {
  min-height: 44px;
  padding: 10px 2px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: .9rem;
  letter-spacing: .04em;
}
.btn-back::before { content: "← "; }
.btn-back:hover { color: var(--cream); }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 6px;
  font-size: .95rem;
  color: var(--muted);
}
.consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--gold);
}

.btn-gold--block { width: 100%; margin-top: 10px; }
.btn-gold[aria-busy="true"] { opacity: .75; pointer-events: none; }
.micro--form { margin-top: 14px; text-align: center; font-size: .82rem; }

.result {
  padding: 26px 0 8px;
  animation: stepIn .7s var(--ease) both;
}
.result:focus { outline: none; }
.result__mark {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.2;
  margin-bottom: 22px;
}
.result__mark path {
  stroke-width: 1.8;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: draw 1s var(--ease) .3s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.result__title {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.3;
}
.agenda {
  margin-top: 18px;
  height: 900px; /* el calendario del CRM no tiene altura propia */
  border-radius: var(--radius);
  overflow: hidden;
}
.agenda iframe { width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   Animaciones de aparición (solo con JS)
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity var(--slow) var(--ease) var(--d, 0ms),
    transform var(--slow) var(--ease) var(--d, 0ms);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 479px) {
  .video__play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .video__play svg { width: 24px; height: 24px; }
}

/* ==========================================================================
   ≥ 640px
   ========================================================================== */
@media (min-width: 640px) {
  :root { --gutter: 32px; }

  .h1 { max-width: none; font-size: clamp(2.6rem, 6.4vw, 4.1rem); }

  .monogram { height: 60px; }

  .cases__track { grid-auto-columns: 58%; }

  .reels { grid-template-columns: repeat(3, 1fr); gap: 40px 22px; }

  .sheet {
    margin: auto;
    width: calc(100% - 48px);
    max-width: 540px;
    max-height: min(88vh, 780px);
    border: 1px solid var(--gold-line);
    border-radius: 14px;
    box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9);
    transform: translateY(18px) scale(.98);
    opacity: 0;
    transition: transform .5s var(--ease), opacity .5s var(--ease);
  }
  .sheet.is-open { transform: none; opacity: 1; }
  .sheet.sheet--wide { max-width: 880px; }
  .sheet__inner { max-height: min(88vh, 780px); padding: 34px 38px 34px; }
  .sheet__title { font-size: 2.2rem; }
  .step__q { font-size: 1.9rem; }
  .step__q--long { font-size: 1.5rem; }
}

/* ==========================================================================
   ≥ 960px: casos en rejilla
   ========================================================================== */
@media (min-width: 960px) {
  .cases__track {
    margin: 0;
    padding: 0;
    overflow: visible;
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
  .case > article:hover { transform: translateY(-4px); }
  .cases__dots { display: none; }
  .case__body { padding: 30px 28px 32px; }
}

/* ==========================================================================
   Movimiento reducido
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .btn-gold::after,
  .video__play::before { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .video__frame:hover .video__poster { transform: scale(1.02); }
  .result__mark path { stroke-dashoffset: 0; }
}

/* ==========================================================================
   Páginas legales (aviso legal y privacidad)
   ========================================================================== */
.site-header a { display: inline-block; border-radius: 4px; }
.doc {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 72px) var(--gutter) clamp(56px, 10vw, 96px);
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.75;
}
.doc .h2 { color: var(--cream); margin-bottom: 10px; }
.doc__date { font-size: .82rem; margin-bottom: clamp(32px, 6vw, 48px); }
.doc h2 {
  margin: 40px 0 12px;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--cream);
  font-variant-numeric: lining-nums;
}
.doc p + p { margin-top: 12px; }
.doc ul { margin: 12px 0 0; padding-left: 1.2em; }
.doc li { margin-top: 6px; }
.doc li::marker { color: var(--gold); }
.doc strong { color: var(--cream); font-weight: 600; }
.doc a { color: var(--gold-light); text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc a:hover { color: var(--cream); }
.doc__data { list-style: none; padding-left: 0 !important; border-left: 1px solid var(--gold-line); padding: 4px 0 4px 18px !important; }
.doc__table { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.doc table { width: 100%; border-collapse: collapse; font-size: .88rem; line-height: 1.5; min-width: 520px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--gold); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; background: var(--panel); }
.doc td:first-child { color: var(--cream); white-space: nowrap; }
.doc tr:last-child td { border-bottom: 0; }
.doc__back { margin-top: 48px; }
.legal a[aria-current="page"] { color: var(--cream); }
