/* ══════════════════════════════════════════════════
   calculadorainterescompuesto.com — styles.css
   Aesthetic: Editorial / Financial · Paper & Gold
   v2 — legibility & responsive pass
   ══════════════════════════════════════════════════ */

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

:root {
  --ink:         #0d0e0f;
  --paper:       #f5f2ec;
  --paper2:      #ede9e0;
  --gold:        #b8882e;        /* ligeramente más oscuro = +contraste sobre papel */
  --gold2:       #e8c46a;
  --gold-bg:     rgba(184,136,46,.07);
  --gold-border: rgba(184,136,46,.28);
  --muted:       #3e3b38;        /* era #7a7670 — contraste AA/AAA sobre papel */
  --muted2:      #5e5a55;        /* era #a09a92 */
  --muted-light: #7a7670;        /* solo hints decorativos */
  --line:        rgba(13,14,15,.13);
  --line2:       rgba(13,14,15,.07);
  --radius:      4px;
  --radius-md:   6px;
  --font-serif:  'DM Serif Display', Georgia, serif;
  --font-mono:   'DM Mono', 'Courier New', monospace;
  --font-sans:   'DM Sans', system-ui, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.65;
}

/* ── Grain ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.032'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
  z-index: 100;
}

/* ── Grid bg ── */
.grid-bg {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--line2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line2) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ── Deco ∞ ── */
.deco-num {
  position: fixed;
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(184,136,46,.05);
  font-size: clamp(10rem, 28vw, 28rem);
  line-height: 1;
  top: 50%; right: -3%;
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ── Wrapper ── */
.wrapper {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 4rem);
}

/* ════════════════════════════════════════
   HEADER
════════════════════════════════════════ */
.site-header {
  padding: 1.6rem 0 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: .8rem;
}

.logo {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted2);
}

.logo-dot { color: var(--gold); }

.currency-nav { display: flex; gap: 4px; flex-wrap: wrap; }

.cur-btn {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted2);
  background: transparent;
  border: 1px solid var(--line);
  padding: .32em .8em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}

.cur-btn:hover  { border-color: var(--gold); color: var(--ink); }
.cur-btn.active { border-color: var(--gold); color: var(--gold); background: var(--gold-bg); font-weight: 600; }

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.hero {
  padding: 6vh 0 5vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-formula {
  font-family: var(--font-mono);
  font-size: clamp(2.8rem, 12vw, 10rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: slideUp .9s cubic-bezier(.16,1,.3,1) .05s forwards;
}

.gold-italic {
  color: var(--gold);
  font-style: italic;
  font-family: var(--font-serif);
}

.sup {
  font-size: .42em;
  vertical-align: super;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
}

.formula-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(.65rem, 1.4vw, .8rem);
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--muted2);
  background: rgba(13,14,15,.05);
  border: 1px solid var(--line);
  padding: .5em 1.4em;
  border-radius: 2px;
  margin-bottom: 2.8rem;
  opacity: 0;
  animation: slideUp .9s cubic-bezier(.16,1,.3,1) .2s forwards;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4.5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.15;
  max-width: 800px;
  margin-bottom: 1.2rem;
  color: var(--ink);
  opacity: 0;
  animation: slideUp .9s cubic-bezier(.16,1,.3,1) .35s forwards;
}

.hero-title em { font-style: italic; color: var(--gold); }

.hero-sub {
  font-family: var(--font-sans);
  font-size: clamp(.9rem, 1.6vw, 1.05rem);
  font-weight: 400;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.72;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: slideUp .9s cubic-bezier(.16,1,.3,1) .5s forwards;
}

.cta-btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  padding: .9em 2.4em;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  transition: all .25s;
  opacity: 0;
  animation: slideUp .9s cubic-bezier(.16,1,.3,1) .65s forwards;
}

.cta-btn:hover  { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.cta-btn:active { transform: scale(.98); }

/* ════════════════════════════════════════
   RULERS
════════════════════════════════════════ */
.section-ruler {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 3.5rem 0 2.2rem;
}

.ruler-line { flex: 1; height: 1px; background: var(--line); }

.ruler-text {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted2);
  white-space: nowrap;
}

/* ════════════════════════════════════════
   CALCULADORA
════════════════════════════════════════ */
.calc-section { padding-bottom: 2rem; }

.calc-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 2px;
}

/* ── Panel inputs ── */
.calc-inputs {
  background: var(--paper);
  padding: 2rem 1.8rem;
}

.panel-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1.6rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--line);
  line-height: 1.2;
}

.panel-title-sub {
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: .07em;
  color: var(--muted-light);
}

.field-group { margin-bottom: 1.5rem; }

.field-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--muted);
  margin-bottom: .5rem;
  text-transform: uppercase;
}

.field-val {
  font-family: var(--font-serif);
  font-size: .95rem;
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0;
  text-transform: none;
}

.input-row {
  display: flex;
  align-items: center;
  background: var(--paper2);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s;
  overflow: hidden;
}

.input-row:focus-within { border-color: var(--gold); }

.input-sym {
  padding: 0 .75rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 500;
  color: var(--muted2);
  user-select: none;
  white-space: nowrap;
}

.input-row input[type="number"] {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  padding: .65rem .5rem;
  width: 100%;
  -moz-appearance: textfield;
}

.input-row.suffix input[type="number"] { padding-left: .8rem; }
.input-row.suffix .input-sym           { order: 2; }

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Slider */
.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 3px;
  background: var(--line);
  outline: none;
  cursor: pointer;
  margin-top: .65rem;
  border-radius: 2px;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,136,46,.2);
  transition: box-shadow .2s;
}

.slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 6px rgba(184,136,46,.22);
}

.slider::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  cursor: pointer;
}

.field-hint {
  margin-top: .45rem;
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 400;
  color: var(--muted2);
  line-height: 1.5;
}

/* Toggle group */
.toggle-group {
  display: flex;
  gap: 2px;
  margin-top: .65rem;
  background: rgba(13,14,15,.07);
  border-radius: var(--radius);
  padding: 2px;
  width: fit-content;
}

.tog {
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted2);
  background: transparent;
  border: none;
  padding: .42em 1.1em;
  border-radius: 2px;
  cursor: pointer;
  transition: all .2s;
}

.tog:hover  { color: var(--ink); }
.tog.active { background: var(--ink); color: var(--paper); }

/* Optional blocks */
.optional-block { margin-bottom: .8rem; }

.opt-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: .55rem 0;
  border-top: 1px solid var(--line2);
  gap: .8rem;
}

.opt-label {
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 400;
  color: var(--muted);
}

.switch {
  width: 34px; height: 18px;
  background: var(--paper2);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  position: relative;
  transition: all .2s;
  flex-shrink: 0;
}

.switch::after {
  content: '';
  position: absolute;
  width: 11px; height: 11px;
  background: var(--muted-light);
  border-radius: 50%;
  top: 2px; left: 2px;
  transition: all .2s;
}

.switch.on { background: var(--gold-bg); border-color: var(--gold); }
.switch.on::after { background: var(--gold); left: 19px; }

.opt-body { display: none; padding: .6rem 0 .4rem; }
.opt-body.open { display: block; }

/* Calc button */
.calc-btn {
  width: 100%;
  padding: .95rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  margin-top: 1.1rem;
  transition: all .25s;
}

.calc-btn:hover  { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.calc-btn:active { transform: scale(.99); }

/* ── Panel results ── */
.calc-results {
  background: var(--paper);
  padding: 2rem 1.8rem;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.results-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .8rem;
  color: var(--muted-light);
}

.placeholder-icon { font-size: 2.2rem; }

.results-placeholder p {
  font-family: var(--font-sans);
  font-size: .85rem;
  line-height: 1.65;
}

/* Result hero */
.result-hero {
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  text-align: center;
  animation: fadeIn .45s ease;
}

.result-label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
  font-weight: 500;
}

.result-big {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -.02em;
  margin-bottom: .4rem;
}

.result-sub {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--muted2);
  letter-spacing: .04em;
}

.result-real {
  display: inline-block;
  margin-top: .5rem;
  font-family: var(--font-sans);
  font-size: .75rem;
  color: var(--muted2);
  background: rgba(13,14,15,.05);
  padding: .25em .9em;
  border-radius: var(--radius);
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  animation: fadeIn .45s ease .1s both;
}

.stat-item {
  background: var(--paper);
  padding: 1.1rem .9rem;
  text-align: center;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: .4rem;
  font-weight: 500;
}

.stat-val {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
}

.stat-val.gold { color: var(--gold); }

/* ════════════════════════════════════════
   CHARTS
════════════════════════════════════════ */
.charts-section {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-top: none;
  margin-bottom: 2px;
}

.chart-card { background: var(--paper); padding: 1.8rem; }

.chart-title {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.chart-wrap  { position: relative; height: 240px; }
.donut-wrap  { height: 260px; }

/* ════════════════════════════════════════
   SCENARIOS
════════════════════════════════════════ */
.scenarios-section {
  display: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: none;
  padding: 1.8rem;
  margin-bottom: 2px;
}

.scenarios-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: .35rem;
}

.scenarios-sub {
  font-family: var(--font-sans);
  font-size: .82rem;
  color: var(--muted2);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.scenario-list { display: flex; flex-direction: column; gap: 1rem; }

.scenario-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: .45rem;
  gap: .5rem;
}

.scenario-name {
  font-family: var(--font-sans);
  font-size: .82rem;
  color: var(--muted);
  font-weight: 400;
}

.scenario-val {
  font-family: var(--font-serif);
  font-size: .95rem;
  font-style: italic;
  color: var(--ink);
  white-space: nowrap;
}

.bar-track { height: 6px; background: var(--paper2); border-radius: 3px; overflow: hidden; }

.bar-fill {
  height: 100%;
  border-radius: 3px;
  width: 0;
  transition: width 1.2s cubic-bezier(.16,1,.3,1);
}

/* ════════════════════════════════════════
   TABLE
════════════════════════════════════════ */
.table-section {
  display: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: none;
  padding: 1.8rem;
  margin-bottom: 4rem;
}

.table-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 1.2rem;
}

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table { width: 100%; border-collapse: collapse; }

thead th {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted2);
  font-weight: 500;
  text-align: right;
  padding: .65rem .9rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

thead th:first-child { text-align: left; }

tbody td {
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 400;
  color: var(--muted);
  padding: .7rem .9rem;
  text-align: right;
  border-bottom: 1px solid var(--line2);
}

tbody td:first-child { text-align: left; color: var(--ink); font-weight: 500; }
tbody td.gold        { color: var(--gold); font-weight: 500; }
tbody tr:hover td    { background: rgba(184,136,46,.04); }

.show-more-btn {
  width: 100%;
  margin-top: 1rem;
  padding: .7rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted2);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s;
}

.show-more-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ════════════════════════════════════════
   SEO CONTENT
════════════════════════════════════════ */
.content-section { padding-bottom: 4rem; }

.content-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: none;
  padding: 2.5rem 2rem;
}

.content-block:first-of-type { border-top: 1px solid var(--line); }

.content-h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.content-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }

.content-block p {
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: .9rem;
}

.content-block p strong      { color: var(--ink); font-weight: 600; }
.content-block p em.gold-italic { color: var(--gold); font-style: italic; }

/* Formula display */
.formula-display {
  background: rgba(13,14,15,.04);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.6rem;
  margin: 1.4rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.formula-main {
  font-family: var(--font-mono);
  font-size: clamp(.72rem, 1.6vw, .92rem);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: .04em;
  white-space: nowrap;
}

.formula-legend { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1.2rem; }

.legend-item { display: flex; gap: .8rem; align-items: baseline; }

.legend-var {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold);
  min-width: 1.6rem;
}

.legend-def {
  font-family: var(--font-sans);
  font-size: .82rem;
  color: var(--muted);
  font-weight: 400;
}

/* Factors grid */
.factors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 1.2rem;
}

.factor-card { background: var(--paper); padding: 1.5rem 1.3rem; transition: background .2s; }
.factor-card:hover { background: var(--gold-bg); }

.factor-icon { font-size: 1.3rem; display: block; margin-bottom: .6rem; }

.factor-card h3 {
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .55rem;
}

.factor-card p {
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.68;
  margin: 0 !important;
}

/* Example block */
.example-table-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
  margin: 1.4rem 0;
}

.example-table { border: 1px solid var(--line); }

.example-table th,
.example-table td {
  font-family: var(--font-sans);
  font-size: .82rem;
  padding: .6rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line2);
  color: var(--muted);
}

.example-table th {
  background: rgba(13,14,15,.04);
  color: var(--muted2);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.example-table td:first-child { color: var(--ink); font-weight: 500; }

.example-results { display: flex; flex-direction: column; gap: .65rem; }

.ex-res-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 1rem;
  background: rgba(13,14,15,.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  gap: .5rem;
}

.ex-res-row span {
  font-family: var(--font-sans);
  font-size: .8rem;
  color: var(--muted);
}

.ex-res-row strong {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  white-space: nowrap;
}

.ex-res-row strong.gold { color: var(--gold); }
.ex-res-row.big { border-color: var(--gold-border); background: var(--gold-bg); }
.ex-res-row.big strong { font-size: 1.3rem; }

/* VS Grid */
.vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 1.2rem;
}

.vs-card { background: var(--paper); padding: 1.6rem; }

.vs-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--line);
}

.vs-card.compound h3 { color: var(--gold); }

.vs-card ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }

.vs-card ul li {
  font-family: var(--font-sans);
  font-size: .85rem;
  font-weight: 400;
  color: var(--muted);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.55;
}

.vs-card ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--muted-light);
  font-size: .75rem;
}

.vs-card ul li strong { color: var(--ink); font-weight: 600; }

/* FAQ */
.faq-list  { display: flex; flex-direction: column; }
.faq-item  { border-bottom: 1px solid var(--line); }

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink);
  transition: color .2s;
  line-height: 1.45;
}

.faq-q:hover,
.faq-q[aria-expanded="true"] { color: var(--gold); }

.faq-icon {
  font-size: 1.2rem;
  color: var(--gold);
  transition: transform .3s;
  flex-shrink: 0;
  line-height: 1;
}

.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

.faq-a { padding-bottom: 1.1rem; }

.faq-a p {
  font-family: var(--font-sans);
  font-size: .88rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.78;
  margin: 0 !important;
}

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.site-footer {
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem;
}

.site-footer span {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .07em;
  color: var(--muted-light);
}

.footer-center { font-style: italic; color: var(--muted2) !important; }

/* ════════════════════════════════════════
   ANIMACIONES
════════════════════════════════════════ */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ════════════════════════════════════════
   RESPONSIVE — Tablet (≤900px)
════════════════════════════════════════ */
@media (max-width: 900px) {
  .calc-grid           { grid-template-columns: 1fr; }
  .charts-section      { grid-template-columns: 1fr; }
  .content-cols        { grid-template-columns: 1fr; gap: 1.2rem; }
  .formula-legend      { grid-template-columns: 1fr; }
  .example-table-wrap  { grid-template-columns: 1fr; }
  .vs-grid             { grid-template-columns: 1fr; }
  .calc-inputs,
  .calc-results        { padding: 1.6rem 1.4rem; }
  .content-block       { padding: 2rem 1.5rem; }
  .chart-wrap          { height: 210px; }
  .donut-wrap          { height: 240px; }
}

/* ════════════════════════════════════════
   RESPONSIVE — Mobile (≤600px)
════════════════════════════════════════ */
@media (max-width: 600px) {
  html { font-size: 15px; }
  .wrapper             { padding: 0 1rem; }
  .site-header         { padding: 1.2rem 0 1rem; gap: .6rem; }
  .currency-nav        { gap: 3px; }
  .cur-btn             { font-size: .62rem; padding: .3em .65em; }
  .hero                { padding: 5vh 0 4vh; }
  .formula-pill        { font-size: .62rem; padding: .45em 1rem; }
  .hero-sub            { font-size: .9rem; }

  /* Stats: 2 col + tercera full */
  .stats-row           { grid-template-columns: 1fr 1fr; }
  .stats-row .stat-item:nth-child(3) {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line2);
  }

  .factors-grid        { grid-template-columns: 1fr; }
  tbody td, thead th   { font-size: .75rem; padding: .6rem .6rem; }
  .chart-wrap          { height: 190px; }
  .donut-wrap          { height: 220px; }
  .content-block       { padding: 1.6rem 1rem; }
  .content-h2          { font-size: 1.3rem; }
  .content-block p     { font-size: .88rem; }
  .example-results     { gap: .5rem; }
  .ex-res-row strong   { font-size: .95rem; }
  .ex-res-row.big strong { font-size: 1.1rem; }
  .site-footer         { flex-direction: column; text-align: center; }
  .footer-center       { display: none; }
  .ruler-text          { font-size: .6rem; letter-spacing: .1em; }
  .toggle-group        { width: 100%; }
  .tog                 { flex: 1; text-align: center; }
}

/* ════════════════════════════════════════
   RESPONSIVE — Pequeño (≤380px)
════════════════════════════════════════ */
@media (max-width: 380px) {
  .currency-nav        { justify-content: center; }
  .cur-btn             { font-size: .58rem; padding: .28em .55em; }
  .hero-formula        { font-size: clamp(2.2rem, 18vw, 3rem); }
  .stats-row           { grid-template-columns: 1fr; }
  .stats-row .stat-item:nth-child(3) { grid-column: auto; border-top: none; }
  .result-big          { font-size: 2.2rem; }
}
