/* =========================================================
   Simulador IVA Franquiciado — styles.css
   Design tokens & components extraídos de design-reference/
   Stack: vanilla CSS, mobile-first.
   ========================================================= */

/* ─── TOKENS ─────────────────────────────────────────────── */

:root {
  --yellow:       #fdde00;
  --yellow-deep:  #e8ca00;
  --yellow-soft:  #fff9c2;
  --ink:          #0E0E0E;
  --cream:        #FAF8F3;
  --cream-2:      #F3F1EA;
  --line:         #E6E3DA;
  --muted:        #7A7A73;
  --success:      #6BAA5E;
  --success-soft: #E9F1DF;
  --error:        #C0392B;
  --error-soft:   #FDECEA;
  --warn-soft:    #FFF0C2;
  --warn-deep:    #8A5A00;

  --serif: 'Fraunces', 'Playfair Display', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;
  --hand:  'Caveat', cursive;

  --r-card:  22px;
  --r-input: 12px;
  --r-pill:  999px;

  --shadow-card: 0 2px 0 rgba(14,14,14,0.04), 0 1px 2px rgba(14,14,14,0.04);
}

/* ─── RESET ──────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

#simulador, #faqs, #que-es, #casos {
  scroll-margin-top: 72px;
}
body {
  font-family: var(--sans);
  background: #ffffff;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; color: inherit; }

/* ─── TYPOGRAPHY BASE ────────────────────────────────────── */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
}

/* .ty-* classes — usadas por las plantillas JS de resultado */
.ty-display-xl {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.ty-display-lg {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.ty-display-md {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.ty-body-lg {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
}
.ty-body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
}
.ty-caption {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.ty-caption-upper {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.ty-emphasis { font-style: italic; }
.serif { font-family: var(--serif); }
.hand  { font-family: var(--hand); }

/* ─── LAYOUT — PAGE / CONTAINER ──────────────────────────── */

.page, .container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}
@media (max-width: 640px) {
  .page, .container { padding-left: 16px; padding-right: 16px; }
}

/* ─── PILLS ──────────────────────────────────────────────── */

.pill {
  background: var(--yellow);
  color: var(--ink);
  padding: 5px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  transform: rotate(-2deg);
  border: 2px solid var(--ink);
  display: inline-block;
}
.pill.plain {
  background: transparent;
  border: 2px solid var(--ink);
  transform: rotate(-1deg);
}
.pill.sm { padding: 3px 10px; font-size: 11.5px; }

/* ─── BUTTONS ─────────────────────────────────────────────── */

/* Yellow pill — default state */
.btn {
  background: #fdde00;
  border: 1px solid #fdde00;
  color: #000;
  padding: 12px 23px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  font-family: inherit;
  white-space: nowrap;
}
/* Hover: invert to black pill with yellow text */
.btn:hover  { background: #fdde00; border-color: #000; color: #000; }
.btn:active { background: #222; border-color: #222; color: #fdde00; }

/* Dark pill — black bg, white text; hover → yellow */
.btn.dark {
  background: #000;
  border-color: #000;
  color: #fafafa;
}
.btn.dark:hover { background: #fdde00; border-color: #fdde00; color: #000; }

/* Ghost pill — transparent, black border; hover → black fill */
.btn.ghost {
  background: transparent;
  border-color: rgba(0,0,0,0.5);
  color: #000;
}
.btn.ghost:hover { background: #000; border-color: #000; color: var(--yellow); }

/* Size modifiers */
.btn.sm  { padding: 7px 16px; font-size: 13px; }
.btn.lg  { padding: 14px 28px; font-size: 16px; }
.btn.block { width: 100%; justify-content: center; }

.btn:disabled { opacity: 0.38; cursor: not-allowed; pointer-events: none; }

/* btn--* aliases for JS-generated result templates */
.btn--primary   { background: #fdde00; border: 1px solid #fdde00; color: #000; border-radius: 9999px; }
.btn--secondary { background: #fff;    border: 1px solid rgba(0,0,0,0.5); color: #000; border-radius: 9999px; }
.btn--ghost     { background: transparent; border: 1px solid rgba(0,0,0,0.5); color: #000; border-radius: 9999px; }
.btn--sm        { padding: 7px 16px; font-size: 13px; }
.btn--lg        { padding: 14px 28px; font-size: 16px; }
.btn--block     { width: 100%; justify-content: center; }
.btn--primary:hover   { background: #000; border-color: #000; color: #fdde00; }
.btn--secondary:hover { background: #000; border-color: #000; color: #fafafa; }
.btn--ghost:hover     { background: #000; border-color: #000; color: #fafafa; }

/* ─── HIGHLIGHT (marker-style) ───────────────────────────── */

.highlight {
  display: inline;
  background: linear-gradient(180deg, transparent 55%, var(--yellow-soft) 55%);
  color: var(--ink);
  padding: 0 6px;
  font-style: normal;
}
@media (max-width: 560px) {
  .highlight { padding: 2px 10px 4px; }
}

/* ─── CARDS WOBBLE ───────────────────────────────────────── */

.card {
  background: #f3f3f3;
  border: 2px solid var(--ink);
  border-radius: 24px 26px 22px 25px / 25px 22px 26px 24px;
  padding: 26px 28px;
  position: relative;
}
.card.yellow {
  background: var(--yellow-soft);
  border-radius: 26px 22px 25px 24px / 23px 26px 22px 25px;
}
.card.solid-yellow {
  background: var(--yellow);
}

/* card-wobble alias for shared.css compatibility */
.card-wobble {
  background: #f3f3f3;
  border: 2px solid var(--ink);
  border-radius: 24px 26px 22px 25px / 25px 22px 26px 24px;
  padding: 26px 28px;
  position: relative;
}
.card-wobble.yellow { background: var(--yellow-soft); border-radius: 26px 22px 25px 24px / 23px 26px 22px 25px; }
.card-wobble.solid-yellow { background: var(--yellow); }

/* ─── NAV / SITE HEADER ──────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  padding: 12px 44px;
}

.nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #f3f3f3;
  border: 2px solid var(--ink);
  border-radius: 42px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@media (max-width: 640px) {
  .site-header { padding: 10px 12px; }
  .nav { padding: 8px 20px; border-radius: 28px; }
}

.logo {
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo__wordmark { height: 44px; width: auto; max-width: none; }

.nav-links {
  display: flex;
  gap: 4px;
  font-size: 14px;
  color: var(--ink);
  align-items: center;
  margin-left: auto;
}
.nav-links a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid transparent;
  display: inline-block;
  line-height: 21px;
  transition: background .12s, transform .12s;
}
.nav-links a:hover {
  background: var(--yellow);
  transform: rotate(-2deg);
}
.nav-links a.active,
.nav-links a.is-active {
  font-weight: 700;
  background: var(--yellow);
}
@media (max-width: 820px) { .nav-links { display: none; } }

/* ─── NAV HAMBURGER ───────────────────────────────────────── */

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
@media (max-width: 820px) { .nav-hamburger { display: flex; } }

/* ─── NAV DRAWER ──────────────────────────────────────────── */

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
}
.nav-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14,14,14,0.5);
  animation: navFadeIn .25s ease-out;
}
.nav-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: #fafafa;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: navSlideIn .25s ease-out;
  overflow-y: auto;
}
.nav-drawer__close {
  align-self: flex-end;
  margin-bottom: 20px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
}
.nav-drawer__close:hover { background: var(--yellow); }
.nav-drawer__panel a {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.nav-drawer__panel a:last-child { border-bottom: none; }
.nav-drawer__panel a.btn {
  margin-top: 20px;
  text-align: center;
  border-bottom: none;
  font-size: 16px;
  font-family: var(--sans);
}
@keyframes navFadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes navSlideIn { from { transform: translateX(100%) } to { transform: translateX(0) } }

.nav-cta {
  background: #fdde00;
  border: 1px solid #fdde00;
  color: #000;
  padding: 8px 18px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.nav-cta:hover { background: #000; border-color: #000; color: #fdde00; }

/* ─── BANNER SHARED ───────────────────────────────────────── */

.banner-shared {
  background: var(--yellow);
  border-bottom: 2px solid var(--ink);
}
.banner-shared__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
}

/* ─── HERO ────────────────────────────────────────────────── */

/* ─── HERO ────────────────────────────────────────────────── */

.hero {
  overflow: hidden;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px 56px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 40px;
}

.hero-content {
  flex: 0 0 484px;
  max-width: 484px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 17px;
}

/* Badge */
.bubble {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff9c2;
  color: var(--ink);
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--sans);
}
.bubble-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e8ca00;
  flex-shrink: 0;
}

/* H1 */
.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}
.hero-h1__highlight {
  display: inline;
  background: linear-gradient(to bottom, transparent 55%, #fff9c2 55%);
  padding: 0 6px;
}

/* Subtítulo */
.hero-sub {
  color: var(--ink);
  opacity: 0.72;
  font-size: 17px;
  max-width: 480px;
  margin: 0;
  line-height: 1.5;
}

/* CTAs */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 11px 0 15px;
}
.hero-cta-primary {
  background: #fdde00;
  border: 1px solid #fdde00;
  color: #000;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  padding: 15px 29px;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: opacity .15s;
}
.hero-cta-primary:hover { opacity: 0.88; }
.hero-cta-ghost {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.5);
  color: #000;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  padding: 15px 29px;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background .15s;
}
.hero-cta-ghost:hover { background: rgba(0,0,0,0.05); }

/* Stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, auto);
  background: #f3f3f3;
  border: 2px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  width: 100%;
}
.stat-cell {
  padding: 14px 28px;
  text-align: center;
  border-right: 1px solid #e6e3da;
}
.stat-cell:last-child { border-right: none; }
.stat-val {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}
.stat-lab {
  font-size: 12px;
  color: #7a7a73;
  margin-top: 2px;
  line-height: 1.5;
}

/* Ilustración derecha */
.hero-illustration {
  flex: 0 0 527px;
  width: 527px;
  height: 373px;
  align-self: flex-end;
  overflow: hidden;
}
.hero-illustration__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-illustration { flex: 0 0 400px; width: 400px; height: 283px; }
  .hero-content { flex: 1; max-width: 100%; }
}
@media (max-width: 768px) {
  .hero-inner { flex-direction: column; align-items: flex-start; padding: 40px 16px 40px; }
  .hero-illustration { display: none; }
  .hero-content { flex: none; max-width: 100%; }
}
@media (max-width: 560px) {
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid #e6e3da; border-right: none; }
  .stat-cell { padding: 12px 18px; }
}

/* ─── SIMULADOR / WIZARD ──────────────────────────────────── */

.simulador {
  padding: 14px 0 56px;
}
@media (max-width: 640px) {
  .simulador { padding: 16px 0 32px; }
}

.wiz-card {
  background: #f3f3f3;
  border: 2px solid var(--ink);
  border-radius: 18px 20px 16px 19px / 19px 16px 20px 18px;
  padding: 32px 36px;
}
@media (max-width: 640px) {
  .wiz-card { padding: 24px 20px; }
}

/* Progress bar */
.wiz-progress {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}
.wiz-step-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.wiz-bar-track {
  flex: 1;
  height: 5px;
  background: #EFEEE9;
  border-radius: var(--r-pill);
  overflow: hidden;
}
.wiz-bar-fill {
  height: 100%;
  width: 25%;
  background: var(--yellow-deep);
  border-radius: var(--r-pill);
  transition: width .35s cubic-bezier(.2,.8,.2,1);
}

/* Step question */
.wiz-question {
  font-family: var(--serif);
  font-size: clamp(20px, 2.8vw, 30px);
  letter-spacing: -0.025em;
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 10px;
}
.wiz-hint {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 24px;
  line-height: 1.55;
}

/* Wizard nav */
.wiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

#wiz-back {
  background: transparent;
  border: 0;
  font-family: inherit;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  padding: 8px 0;
  transition: color .12s;
}
#wiz-back:hover { color: var(--ink); }

#wiz-next {
  background: #fdde00;
  border: 1px solid #fdde00;
  color: #000;
  border-radius: 9999px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
#wiz-next:hover { background: #000; border-color: #000; color: #fdde00; }
#wiz-next:disabled { opacity: 0.38; cursor: not-allowed; pointer-events: none; }

/* ─── OPT CARDS (radio opciones del wizard) ──────────────── */

.opt-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.opt-card {
  text-align: left;
  width: 100%;
  background: #fff;
  border: 2px solid #E5E5E0;
  border-radius: 12px;
  padding: 18px 22px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .12s, background .12s;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.opt-card:hover {
  border-color: var(--ink);
}
.opt-card[aria-checked="true"] {
  border: 2px solid var(--yellow-deep);
  background: var(--yellow-soft);
}
/* Radio dot — default state (empty circle) */
.opt-dot {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: block;
  background-image: url('assets/radio-default.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
/* Radio dot — selected state (filled circle) */
.opt-card[aria-checked="true"] .opt-dot {
  background-image: url('assets/radio-selected.svg');
}
.opt-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  pointer-events: none;
}
.opt-t {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  pointer-events: none;
}
.opt-s {
  font-size: 13px;
  color: var(--muted);
  line-height: 18.2px;
  pointer-events: none;
}

/* Segmented control */
.seg { display: grid; gap: 10px; }
.seg.cols-2 { grid-template-columns: 1fr 1fr; }
.seg.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.seg button {
  border: 2px solid var(--ink);
  background: #fff;
  border-radius: var(--r-input);
  padding: 13px 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: transform .1s, box-shadow .1s, background .15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: -0.005em;
  font-family: inherit;
}
.seg button:hover { background: #FFFBEB; }
.seg button[aria-pressed="true"] {
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  transform: translate(-1px,-1px);
}

/* ─── INPUTS ─────────────────────────────────────────────── */

.input-wrap {
  position: relative;
  display: flex;
  margin-bottom: 16px;
}
.input-wrap input {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: var(--r-input);
  padding: 13px 16px;
  font-size: 16px;
  background: #fff;
  outline: none;
  transition: box-shadow .15s;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-family: inherit;
}
.input-wrap input:focus {
  box-shadow: 3px 3px 0 var(--yellow);
}
.input-wrap input::placeholder {
  color: var(--muted);
  font-weight: 400;
}
.input-wrap .suffix-box {
  display: flex;
  align-items: center;
  padding: 13px 18px;
  background: var(--cream-2);
  color: var(--muted);
  border: 2px solid var(--ink);
  border-left: none;
  border-radius: 0 var(--r-input) var(--r-input) 0;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.input-wrap.has-suffix input {
  border-radius: var(--r-input) 0 0 var(--r-input);
}

/* Preset pills */
.preset-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.preset-pill {
  padding: 6px 14px;
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  background: #fff;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  transition: background .12s, box-shadow .12s;
}
.preset-pill:hover {
  background: var(--yellow-soft);
  box-shadow: 2px 2px 0 var(--ink);
}
.preset-pill.is-active {
  background: var(--yellow);
  box-shadow: 2px 2px 0 var(--ink);
}

/* ─── RESULTADO (section wrapper) ────────────────────────── */

.resultado {
  padding: 56px 0;
}
@media (max-width: 640px) {
  .resultado { padding: 32px 0; }
}

/* ─── AVISO / CTA CARD ───────────────────────────────────── */

.aviso-cta {
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px;
  background: #fff;
  box-shadow: var(--shadow-card);
}
.aviso-cta__copy {
  color: var(--muted);
  margin-bottom: 8px;
  max-width: none;
  width: 100%;
}
.aviso-cta__pregunta {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  font-style: italic;
  color: var(--ink);
  background: var(--cream);
  border-left: 3px solid var(--yellow);
  padding: 10px 16px;
  border-radius: 0 8px 8px 0;
  margin: 12px 0 16px;
}

/* ─── BADGE (usado en resultado JS) ──────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: var(--yellow-soft);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.badge::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow-deep);
  flex-shrink: 0;
}
.badge--positive {
  background: var(--success-soft);
  color: var(--ink);
}
.badge--negative {
  background: var(--error-soft);
  color: var(--ink);
}
.badge--neutral {
  background: var(--yellow-soft);
  color: var(--ink);
}

/* ─── RESULTADO HEADING + COPY ───────────────────────────── */

.resultado-title {
  margin-bottom: 18px;
}
.resultado-copy {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 15px;
  line-height: 1.6;
  max-width: none;
  width: 100%;
}
.resultado-copy strong { color: var(--ink); }

/* ─── RESULTADO HERO (badge + título + número en un card) ─── */

.resultado-hero {
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 28px;
}
.resultado-hero--positive { background: var(--success-soft); border-color: var(--success); }
.resultado-hero--negative { background: var(--error-soft); border-color: var(--error); }
.resultado-hero .badge {
  margin-bottom: 16px;
}
.resultado-hero__title {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.resultado-hero__divider {
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0.15;
  margin: 0 0 20px;
  border: none;
}
.resultado-hero__metric-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 8px;
}
.resultado-hero__metric-value {
  display: block;
  font-family: var(--serif);
  font-size: clamp(52px, 9vw, 88px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .resultado-hero { padding: 24px 20px; }
}

/* ─── HERO METRIC ─────────────────────────────────────────── */

.hero-metric {
  padding: 28px 26px;
  border-radius: 24px 26px 22px 25px / 25px 22px 26px 24px;
  border: 2px solid var(--ink);
  margin-bottom: 28px;
}
.hero-metric__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 8px;
}
.hero-metric__value {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.hero-metric__sub {
  display: block;
  opacity: 0.6;
  margin-top: 6px;
  font-size: 13px;
}
.hero-metric--positive {
  background: var(--yellow-soft);
  color: var(--ink);
  border-color: var(--ink);
}
.hero-metric--negative {
  background: var(--ink);
  color: var(--yellow);
  border-color: var(--ink);
}
.hero-metric--neutral {
  background: #f3f3f3;
  color: var(--ink);
  border-color: var(--ink);
}
.hero-metric--negative .hero-metric__label { opacity: 0.6; }

/* ─── SUB METRICS ─────────────────────────────────────────── */

.sub-metrics {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.sub-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 16px;
  border: 2px solid var(--ink);
}
.sub-metric__label { color: var(--muted); font-size: 14px; }
.sub-metric__value {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.sub-metric--positive { background: var(--yellow-soft); }
.sub-metric--negative { background: var(--cream-2); }
.sub-metric--neutral  { background: #fff; }

@media (min-width: 640px) {
  .sub-metrics { flex-direction: row; }
  .sub-metric { flex: 1; flex-direction: column; align-items: flex-start; }
}

/* ─── CALC FORMULA ────────────────────────────────────────── */

.calc-formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 20px;
  border: 2px solid var(--line);
  border-radius: var(--r-card);
  background: #f3f3f3;
}
.formula-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f3f3f3;
  border: 2px solid var(--line);
}
.formula-cell.is-result { border-color: var(--ink); border-width: 1.5px; }
.formula-cell.is-positive { background: var(--yellow-soft); border-color: var(--ink); }
.formula-cell.is-negative { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.formula-cell.is-muted { background: var(--cream-2); border-color: var(--line); }
.formula-lab { font-size: 12px; opacity: 0.7; }
.formula-val {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.formula-op { font-size: 18px; color: var(--muted); padding: 0 4px; }

/* ─── CHANGE BLOCK ────────────────────────────────────────── */

.change-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}
@media (min-width: 640px) {
  .change-block { flex-direction: row; }
}
.change-block__col {
  flex: 1;
  padding: 20px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: #f3f3f3;
}
.change-block__head {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.change-block__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.change-block__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}
.change-block__item.is-positive { color: var(--ink); }
.change-block__item.is-negative { color: rgba(14,14,14,0.4); }
.glyph { flex-shrink: 0; margin-top: 2px; }

@media (min-width: 640px) {
  .change-block { flex-direction: row; }
}

/* "Si te acoges" column — siempre con más peso visual */
.change-block__col--after {
  border-color: var(--ink);
}
.change-block--positive .change-block__col--after {
  background: var(--success-soft);
  border-color: var(--success);
}
.change-block--positive .change-block__col--after .change-block__head {
  color: var(--ink);
}
.change-block--negative .change-block__col--after {
  background: var(--error-soft);
  border-color: var(--error);
}
.change-block--negative .change-block__col--after .change-block__head {
  color: var(--ink);
}
.change-block--negative .change-block__col--after .change-block__item {
  color: var(--muted);
}
.change-block--negative .change-block__col--after .change-block__item.is-positive {
  color: var(--ink);
}
.change-block--negative .change-block__col--after .change-block__item.is-negative {
  color: rgba(14,14,14,0.4);
}

/* ─── WARN LIMITE ─────────────────────────────────────────── */

.warn-limit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  border: 2px solid var(--ink);
  border-left: 4px solid var(--yellow-deep);
  border-radius: 12px;
  background: var(--warn-soft);
  margin-bottom: 28px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--warn-deep);
}

/* ─── ALT OPTION (escenario 5) ───────────────────────────── */

.alt-option {
  margin-bottom: 28px;
  padding: 16px 20px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: #f3f3f3;
}
.alt-option summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
}
.alt-option summary::-webkit-details-marker { display: none; }
.alt-option[open] { padding-bottom: 18px; }
.alt-option__tag {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  border: 2px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}
.alt-option p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ─── CTA FACTUPRO (escenarios 0, 2) ─────────────────────── */

.cta-factupro {
  padding: 24px;
  border: 1.5px solid var(--yellow-deep);
  border-radius: 14px;
  background: var(--yellow-soft);
  margin-top: 24px;
  margin-bottom: 0;
}
.cta-factupro .badge {
  margin-bottom: 12px;
  background: rgba(232,202,0,0.25);
  color: var(--ink);
}
.cta-factupro .badge::before { background: var(--yellow-deep); }
.cta-factupro h3 {
  font-family: var(--serif);
  font-size: clamp(17px, 2.2vw, 20px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 6px;
  color: var(--ink);
}
.cta-factupro p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 18px;
}
.cta-factupro .btn {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--yellow);
}
.cta-factupro .btn:hover {
  background: #333;
  border-color: #333;
  color: var(--yellow);
}

/* ─── RESULTADO ACTIONS (share + CTA) ────────────────────── */

.resultado__actions { margin-top: 40px; }

/* Share */
.share { margin-bottom: 32px; }
.share__title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.share__btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* CTA Avísame */
.cta-avisame {
  position: relative;
  padding: 32px 28px;
  border: 2px solid var(--ink);
  border-radius: 28px 24px 26px 25px / 25px 28px 24px 26px;
  margin-bottom: 32px;
  background: #f3f3f3;
  overflow: hidden;
}
.cta-avisame__content { position: relative; z-index: 1; }
.cta-avisame__content .ty-caption-upper {
  color: var(--muted);
  margin-bottom: 10px;
  display: block;
}
.cta-avisame__title {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.cta-avisame__content .ty-body-lg {
  color: var(--muted);
  margin-bottom: 22px;
  max-width: none;
  width: 100%;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
}
.cta-avisame__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Restart */
.resultado__restart {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.restart {
  color: var(--muted);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--yellow);
  font-size: 14px;
}
.restart:hover { color: var(--ink); }

/* ─── CASOS REALES ────────────────────────────────────────── */

.casos {
  padding: 72px 0;
  text-align: center;
}
@media (max-width: 640px) { .casos { padding: 48px 0; } }

.casos__eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
}
.casos__title {
  font-family: var(--serif);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
  text-align: center;
}
.casos__lead {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 40px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.casos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .casos__grid { grid-template-columns: repeat(3, 1fr); }
}

.caso-card {
  background: #f3f3f3;
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.caso-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.caso-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.caso-card__icon--green  { background: #e6f4ee; color: #2e7d4f; }
.caso-card__icon--red    { background: #fdecea; color: #c0392b; }
.caso-card__icon--amber  { background: #fef3e2; color: #c07b00; }

.caso-card__icon--green  img { filter: invert(38%) sepia(40%) saturate(600%) hue-rotate(100deg) brightness(80%); }
.caso-card__icon--red    img { filter: invert(25%) sepia(80%) saturate(800%) hue-rotate(330deg) brightness(85%); }
.caso-card__icon--amber  img { filter: invert(45%) sepia(60%) saturate(700%) hue-rotate(15deg) brightness(80%); }

.caso-card__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.caso-card__meta {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.caso-card__data {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}
.caso-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.caso-card__row span { color: var(--muted); }
.caso-card__row strong { font-weight: 700; color: var(--ink); }

.caso-card__result {
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.caso-card__result-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.caso-card__result-value {
  display: block;
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.caso-card__result--positive { background: #e6f4ee; color: #2e7d4f; }
.caso-card__result--negative { background: #fdecea; color: #c0392b; }
.caso-card__result--neutral  { background: #fef3e2; color: #c07b00; }

.caso-card__quote {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  font-style: italic;
  margin-top: auto;
}

/* ─── QUÉ ES ──────────────────────────────────────────────── */

.que-es {
  padding: 72px 0;
}
@media (max-width: 640px) { .que-es { padding: 48px 0; } }

.que-es__title {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
  text-align: center;
}
.que-es__lead {
  color: var(--muted);
  margin-bottom: 40px;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.que-es__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .que-es__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .que-es__grid { grid-template-columns: repeat(3, 1fr); } }

.que-es__card {
  padding: 24px 22px;
  border: 2px solid var(--ink);
  border-radius: 18px 20px 16px 19px / 19px 16px 20px 18px;
  background: #f3f3f3;
}
.que-es__card:hover { transform: none; }

.que-es__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  border-radius: 10px;
  margin-bottom: 14px;
  border: 2px solid var(--ink);
}
.que-es__card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}
.que-es__card p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ─── FAQS ────────────────────────────────────────────────── */

.faq-block {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px 80px;
}
@media (max-width: 640px) { .faq-block { padding: 0 16px 56px; } }

.faq-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: start;
  padding-top: 48px;
}
@media (max-width: 900px) { .faq-inner { grid-template-columns: 1fr; gap: 28px; } }

.faq-aside .kicker {
  font-family: var(--hand);
  font-size: 24px;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}
.faq-aside h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin: 0 0 12px;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.faq-aside h2 em { font-style: italic; }
.faq-aside p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
  max-width: 280px;
  line-height: 1.55;
}

.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
  border: 2px solid var(--ink);
  border-radius: 16px 18px 14px 17px / 17px 14px 18px 16px;
  background: #f3f3f3;
  overflow: hidden;
  transition: box-shadow .12s;
}
.faq-item[open] {
  background: var(--yellow-soft);
}
.faq-item summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  line-height: 1.3;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
  transition: transform .2s;
  flex: 0 0 auto;
  width: 26px;
  text-align: center;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .ans {
  padding: 0 22px 20px;
  font-size: 15px;
  line-height: 1.6;
  color: #2a2a24;
}
.faq-item .ans a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--yellow);
  text-underline-offset: 3px;
}

/* ─── SITE FOOTER ─────────────────────────────────────────── */

.site-footer {
  background: var(--ink);
  color: var(--cream);
  margin-top: 80px;
  padding: 56px 32px 28px;
}
@media (max-width: 640px) { .site-footer { padding: 40px 16px 20px; } }

.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 820px) {
  .site-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer__disclaimer { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .site-footer-inner { grid-template-columns: 1fr; }
}

.site-footer .mascot-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.site-footer .logo-text {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.site-footer .tagline {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.2;
  max-width: 360px;
  margin-bottom: 20px;
  letter-spacing: -0.015em;
  color: var(--cream);
}
.site-footer .tagline em {
  font-style: italic;
  color: var(--yellow);
}
.site-footer .footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fdde00;
  border: 1px solid #fdde00;
  color: #000;
  padding: 10px 18px;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background .15s, color .15s, border-color .15s;
}
.site-footer .footer-cta:hover { background: #000; border-color: #000; color: #fdde00; }

.site-footer h4 {
  font-family: var(--sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin: 0 0 16px;
  font-weight: 600;
}
.site-footer a {
  color: var(--cream);
  text-decoration: none;
  font-size: 14px;
  display: block;
  padding: 5px 0;
  opacity: 0.82;
}
.site-footer a:hover { opacity: 1; color: var(--yellow); }

.site-footer .site-footer__disclaimer {
  color: rgba(250,248,243,0.5);
  font-size: 13px;
  line-height: 1.6;
  grid-column: 1 / -1;
}

.copyright {
  max-width: 1280px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.copyright a { display: inline; padding: 0; font-size: 12.5px; }

/* ─── POPUP CTA (native dialog) ──────────────────────────── */

.popup-cta {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(480px, calc(100% - 32px));
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 32px 28px;
  border: 2px solid var(--ink);
  border-radius: 22px 24px 20px 23px / 23px 20px 24px 22px;
  background: var(--cream);
}
.popup-cta::backdrop { background: rgba(14,14,14,0.6); }

.popup-cta__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid var(--line);
  border-radius: var(--r-pill);
  transition: background .12s, border-color .12s;
}
.popup-cta__close:hover { background: var(--yellow); border-color: var(--ink); }

.popup-cta__step .ty-caption-upper {
  color: var(--muted);
  margin-bottom: 8px;
  display: block;
}
.popup-cta__step .ty-display-md { margin-bottom: 12px; }
.popup-cta__step .ty-body { color: var(--muted); margin-bottom: 24px; }

.popup-cta__channels { display: flex; flex-direction: column; gap: 12px; }

.popup-cta__form .ty-display-md { margin-bottom: 20px; }

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-field__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-field__input {
  padding: 13px 16px;
  border: 2px solid var(--ink);
  border-radius: var(--r-input);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: box-shadow .15s;
}
.form-field__input:focus { box-shadow: 3px 3px 0 var(--yellow); }
.form-field__input::placeholder { color: var(--muted); font-weight: 400; }

.popup-cta__form .btn,
.popup-cta__form .btn--primary { margin-top: 8px; }

.popup-cta__legal {
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 12px;
  opacity: 0.7;
}

.popup-cta__done {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding-top: 8px;
}
.popup-cta__done-icon { margin-bottom: 4px; }
.popup-cta__done .ty-display-md { margin: 0; }
.popup-cta__done .ty-body-lg { color: var(--muted); }

/* ─── EXIT INTENT POPUP ───────────────────────────────────── */

.popup-exit {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(400px, calc(100% - 32px));
  padding: 36px 28px 28px;
  border: 2px solid var(--ink);
  border-radius: 24px 22px 26px 20px / 22px 26px 20px 24px;
  background: var(--cream);
  text-align: center;
  overflow: visible;
}
.popup-exit::backdrop { background: rgba(14,14,14,0.55); }

.popup-exit__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.popup-exit__title {
  font-family: var(--serif);
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.popup-exit__body {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 24px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.popup-exit__btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ─── MOBILE XS (≤390px) ─────────────────────────────────── */
@media (max-width: 390px) {
  .wiz-card        { padding: 20px 16px; }
  .aviso-cta       { padding: 20px 16px; }
  .resultado-hero  { padding: 20px 16px; }
  .hero-metric     { padding: 20px 16px; }
  .cta-avisame     { padding: 24px 16px; }
  .share           { padding: 20px 16px; }
  .change-block__col { padding: 16px; }
  .caso-card       { padding: 18px 16px; }
  .sub-metric      { padding: 14px 14px; }
  .calc-formula    { padding: 14px 12px; }
  .que-es__card    { padding: 16px; }
}

/* ─── REDUCED MOTION ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0ms !important; animation-duration: 0ms !important; }
  .wiz-bar-fill { transition: none; }
}
