/* ============================================================
   Prelaunch Uruguay · Estilos
   Minimalismo editorial · Blanco, negro, grafito y dorado #8E7958
   ============================================================ */

:root {
  --white: #FFFFFF;
  --paper: #FBFBFD;
  --soft: #F5F5F7;
  --line: #E5E5EA;
  --line-strong: #D2D2D7;
  --ink: #1D1D1F;
  --graphite: #2C2C2E;
  --graphite-2: #3A3A3C;
  --muted: #6E6E73;
  --gold: #8E7958;
  --gold-dark: #7A6A4C;
  --gold-soft: #F4F0E8;

  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --topbar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--topbar-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--white);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; }
button, input { font-family: inherit; }
::selection { background: var(--gold); color: var(--white); }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: clamp(20px, 5vw, 56px);
  padding-right: clamp(20px, 5vw, 56px);
}

/* ---------- Progreso de lectura ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1001; background: transparent; }
.progress__bar { display: block; height: 100%; width: 0; background: var(--gold); transition: width .1s linear; }

/* ---------- Barra superior ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--topbar-h);
  background: rgba(255,255,255,0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar__inner {
  max-width: 1120px; height: 100%; margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { text-decoration: none; display: flex; align-items: baseline; gap: 10px; }
.brand__mark { font-weight: 700; font-size: 15px; letter-spacing: 0.22em; color: var(--ink); }
.brand__sub { font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }
.topbar__cta {
  text-decoration: none; font-size: 13px; font-weight: 600;
  padding: 9px 16px; border-radius: 980px;
  background: var(--ink); color: var(--white);
  transition: background-color .3s var(--ease);
  white-space: nowrap;
}
.topbar__cta:hover { background: var(--graphite-2); }
@media (max-width: 520px) { .brand__sub { display: none; } }

/* ---------- Tipografía base ---------- */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 24px;
}
.eyebrow--center { text-align: center; }
.display {
  font-size: clamp(38px, 6.6vw, 80px);
  font-weight: 600; line-height: 1.04; letter-spacing: -0.035em;
  margin: 0 0 28px; max-width: 16ch;
}
.lead { font-size: clamp(18px, 1.9vw, 22px); line-height: 1.55; color: var(--muted); max-width: 44ch; margin: 0 0 44px; font-weight: 400; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; font-size: 15px; font-weight: 600; letter-spacing: 0.005em;
  border-radius: 980px; border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .answer:focus-visible, .topbar__cta:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--graphite-2); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--line:hover { border-color: var(--ink); }
.btn--gold { background: var(--gold); color: var(--white); }
.btn--gold:hover { background: var(--gold-dark); }
.btn--block { width: 100%; }
.btn--square { border-radius: var(--radius-sm); padding: 18px 24px; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.btn__arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateY(3px); }

/* ---------- Apertura ---------- */
.opening {
  position: relative; overflow: hidden;
  padding: calc(var(--topbar-h) + clamp(72px, 12vw, 150px)) 0 clamp(56px, 8vw, 96px);
  background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%);
}
.opening__bg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--line); pointer-events: none; }
.opening__gold { stroke: var(--gold); }
.opening__inner { position: relative; z-index: 1; }
.opening .display { font-size: clamp(38px, 5.8vw, 68px); max-width: 15ch; }
.opening__meta { display: flex; align-items: center; gap: 18px; margin: 0; }
.read-link {
  text-decoration: none; font-weight: 600; font-size: 16px; color: var(--ink);
  border-bottom: 1px solid var(--gold); padding-bottom: 2px;
}
.read-link span { display: inline-block; transition: transform .3s var(--ease); }
.read-link:hover span { transform: translateY(3px); }
.opening__time { font-size: 13px; color: var(--muted); }
.opening__time::before { content: '·'; margin-right: 18px; color: var(--line-strong); }
@media (max-width: 700px) { .opening__bg { opacity: .5; } }

/* ---------- La carta (columna de lectura) ---------- */
.letter {
  width: 100%; max-width: 720px; margin: 0 auto;
  padding-left: clamp(20px, 5vw, 32px); padding-right: clamp(20px, 5vw, 32px);
}
.letter--body { padding-top: clamp(64px, 9vw, 104px); padding-bottom: 24px; }
.letter--body p, .letter--body li, .letter--body dd {
  font-size: clamp(18px, 1.5vw, 20px); line-height: 1.75; color: var(--graphite-2);
}
.letter--body p { margin: 0 0 24px; }
.letter--body strong { color: var(--ink); font-weight: 600; }
.letter--body h2 {
  font-size: clamp(24px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25;
  color: var(--ink); margin: 72px 0 22px; position: relative; padding-top: 28px;
}
.letter--body h2::before { content: ''; position: absolute; top: 0; left: 0; width: 28px; height: 2px; background: var(--gold); }

.dropcap { font-size: clamp(22px, 2.2vw, 26px) !important; color: var(--ink) !important; font-weight: 500; letter-spacing: -0.01em; }

.pull {
  font-size: clamp(22px, 2.4vw, 28px) !important; line-height: 1.35 !important;
  font-weight: 500; letter-spacing: -0.02em; color: var(--ink) !important;
  margin: 36px 0 8px !important; padding-left: 22px; border-left: 2px solid var(--gold);
}

.note { font-size: 14px !important; color: var(--muted) !important; margin-top: -8px !important; }

/* Lista de identificación ("síes") */
.yes-list { list-style: none; padding: 0; margin: 0 0 28px; }
.yes-list li { position: relative; padding: 14px 0 14px 40px; border-bottom: 1px solid var(--line); }
.yes-list li:first-child { border-top: 1px solid var(--line); }
.yes-list li::before {
  content: '✓'; position: absolute; left: 0; top: 17px;
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--gold); background: var(--gold-soft);
}

/* Datos de la ley, dentro del texto */
.facts { margin: 8px 0 24px; padding: 0; }
.facts div { display: grid; grid-template-columns: minmax(96px, 120px) 1fr; gap: 18px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts div:first-child { border-top: 1px solid var(--line); }
.facts dt { font-size: clamp(24px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.02em; color: var(--gold); white-space: nowrap; }
.facts dd { margin: 0; }

/* Criterios numerados */
.criteria { margin: 0 0 24px; padding-left: 1.3em; }
.criteria li { margin-bottom: 12px; padding-left: 6px; }
.criteria li::marker { color: var(--gold); font-weight: 600; }

.aside-link { font-size: 16px !important; color: var(--muted) !important; }
.aside-link a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 1px; margin-left: 4px; white-space: nowrap; }
.aside-link a:hover { color: var(--gold); }

/* Oportunidades: filas sobrias, no tarjetas de catálogo */
.options { margin: 8px 0 20px; border-top: 1px solid var(--line-strong); }
.option { padding: 28px 0 28px; border-bottom: 1px solid var(--line-strong); }
.option--premium { padding-left: 20px; border-left: 2px solid var(--gold); background: linear-gradient(90deg, var(--gold-soft) 0%, transparent 70%); }
.option__title { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 8px; color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tag { font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: 980px; background: var(--soft); color: var(--graphite-2); }
.tag--gold { background: var(--gold); color: var(--white); }
.letter--body .option__text { margin: 0 0 6px; }
.letter--body .option__meta { font-size: 14px; color: var(--muted); margin: 0 0 14px; letter-spacing: 0.01em; }
.option__cta { font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 1px; }
.option__cta:hover { color: var(--gold); }
.option--premium .option__cta { color: var(--gold-dark); }

/* Base para páginas legales */
.prose strong { color: var(--ink); font-weight: 600; }

/* ---------- Preguntas ---------- */
.faq { border-top: 1px solid var(--line-strong); margin-bottom: 8px; }
.faq__item { border-bottom: 1px solid var(--line-strong); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  padding: 20px 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.45; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; flex-shrink: 0; font-weight: 300; font-size: 24px; line-height: 1; color: var(--gold); transition: transform .3s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.letter--body .faq__item p { margin: -4px 0 22px; font-size: 16px; color: var(--muted); }
/* ---------- #10 Formulario ---------- */
.form-wrap { padding: 8px 0 clamp(88px, 12vw, 140px); background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%); }
.form-card {
  max-width: 620px; margin: 24px auto 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(30px, 5vw, 52px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.05);
}
.form-card__title { font-size: clamp(24px, 3vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; text-align: center; margin: 0 0 8px; }
.lead-form { display: flex; flex-direction: column; gap: 20px; }
.steps { display: flex; justify-content: center; gap: 8px; margin: 24px 0 32px; }
.steps__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background-color .3s var(--ease), transform .3s var(--ease); }
.steps__dot.is-active { background: var(--gold); transform: scale(1.25); }
.steps__dot.is-done { background: var(--ink); }

.step { display: none; flex-direction: column; gap: 16px; }
.step.is-active { display: flex; animation: stepIn .45s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.step__question { font-size: 18px; font-weight: 600; text-align: center; margin: 0 0 6px; line-height: 1.4; }

.answers { display: flex; flex-direction: column; gap: 12px; }
.answer {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); text-align: left; cursor: pointer; color: var(--ink);
  transition: border-color .25s var(--ease), background-color .25s var(--ease), transform .25s var(--ease);
}
.answer:hover { border-color: var(--ink); transform: translateY(-1px); }
.answer.is-selected { border-color: var(--gold); background: var(--gold-soft); }
.answer__title { font-size: 15.5px; font-weight: 600; }
.answer__sub { font-size: 13px; color: var(--muted); }

.field { display: flex; flex-direction: column; gap: 8px; }
.label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input {
  font-size: 16px; padding: 15px 18px; width: 100%;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.input:hover { border-color: #C7C7CC; }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(142,121,88,0.16); }

.checkbox { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.checkbox input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--ink); }
.checkbox span { font-size: 13px; line-height: 1.55; color: var(--muted); }
.checkbox a { color: var(--ink); }

.step__back { align-self: center; background: none; border: none; color: var(--muted); font-size: 13px; cursor: pointer; padding: 4px 8px; margin-top: -6px; }
.step__back:hover { color: var(--ink); }
.microcopy { font-size: 12.5px; color: var(--muted); text-align: center; margin: 4px 0 0; }
.form-error { font-size: 13px; color: #B3261E; text-align: center; margin: 0; }

.signature { text-align: center; margin: 48px 0 0; font-size: 17px; color: var(--graphite-2); line-height: 1.7; }
.signature strong { display: block; margin-top: 18px; font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.signature span { display: block; font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }

/* ---------- Pie ---------- */
.footer { background: var(--ink); color: #A1A1A6; padding: 56px 0 40px; font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 24px; }
.brand__mark--footer { color: var(--white); margin: 0 0 6px; }
.footer__muted { margin: 0; }
.footer__nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__nav a { text-decoration: none; color: #D2D2D7; }
.footer__nav a:hover { color: var(--white); }
.footer__legal { font-size: 12px; line-height: 1.6; color: #86868B; margin: 0; max-width: 90ch; }

/* ---------- WhatsApp flotante ---------- */
.sticky-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.sticky-wa:hover { background: var(--gold); transform: translateY(-2px); }

/* ---------- Páginas simples (Gracias / Privacidad / 404) ---------- */
.simple { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--topbar-h) + 56px) 0 80px; background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%); }
.simple__inner { max-width: 640px; }
.simple .display { font-size: clamp(36px, 5.6vw, 64px); }
.simple__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold); font-size: 22px; margin-bottom: 28px;
}
.simple__small { font-size: 14px; color: var(--muted); margin-top: 20px; }
.simple__small a { color: var(--ink); }

.legal { padding: calc(var(--topbar-h) + 72px) 0 120px; }
.legal .prose { max-width: 720px; }
.legal .prose h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 16px; }
.legal .prose h2 { font-size: clamp(21px, 2.4vw, 26px); letter-spacing: -0.015em; margin: 56px 0 16px; line-height: 1.25; }
.legal .prose p, .legal .prose li { font-size: 16.5px; line-height: 1.75; color: var(--graphite-2); }
.legal .prose ul { padding-left: 20px; margin: 0 0 22px; }
.legal .prose li { margin-bottom: 8px; }
.legal .prose a { color: var(--ink); text-decoration-color: var(--gold); }
.legal__date { font-size: 14px !important; color: var(--muted) !important; }

/* ---------- Aparición al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .step.is-active { animation: none; }
  * { transition-duration: 0s !important; }
}

/* ---------- Franja oscura: Ley 18.795 ---------- */
.law { position: relative; overflow: hidden; background: var(--ink); color: var(--white); padding: clamp(88px, 11vw, 140px) 0 clamp(72px, 9vw, 110px); margin-top: 48px; }
.law__bg { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(255,255,255,0.06); pointer-events: none; }
.law__intro, .law__wrap { position: relative; z-index: 1; }
.law__title { font-size: clamp(30px, 4vw, 46px); font-weight: 600; line-height: 1.12; letter-spacing: -0.028em; margin: 0 0 28px; color: var(--white); }
.law__text { font-size: clamp(17px, 1.45vw, 19px); line-height: 1.7; color: #A1A1A6; margin: 0; }
.law__wrap { max-width: 1040px; }
.figures { display: grid; margin-top: clamp(48px, 7vw, 80px); border-top: 1px solid rgba(255,255,255,0.14); }
.figure { padding: 32px 0; border-bottom: 1px solid rgba(255,255,255,0.14); }
.figure__num { display: flex; align-items: baseline; gap: 10px; font-size: clamp(64px, 8.5vw, 112px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: var(--white); margin-bottom: 16px; }
.figure__num small { font-size: clamp(16px, 1.6vw, 20px); letter-spacing: 0; font-weight: 500; color: var(--gold); }
.figure p { margin: 0; color: #A1A1A6; font-size: 16px; line-height: 1.55; max-width: 32ch; }
.figures__note { font-size: 13px; color: #86868B; margin: 28px 0 0; }
@media (min-width: 860px) {
  .figures { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid rgba(255,255,255,0.14); }
  .figure { border-bottom: none; padding: 44px 32px 44px 0; }
  .figure + .figure { border-left: 1px solid rgba(255,255,255,0.14); padding-left: 32px; }
}
.letter--cont { padding-top: 8px; }
.letter--cont > h2:first-child { margin-top: 88px; }
