/* =============================================================
   calculadora.css — ASPECTO de la página de la calculadora
   (PROYECTO DISEÑO · carpeta pagina-calculadora/)
   -------------------------------------------------------------
   Se carga DESPUÉS de styles.css. Reglas:
   · SOLO colores del diseño: var(--accent), var(--ink), rgba(var(--accent-rgb), .x),
     color-mix(in srgb, var(--warn) 10%, transparent)... Nunca un color escrito a
     mano (#hex o rgb/rgba con números): la publicación se detiene si encuentra uno.
   · Las clases que crea el código de la calculadora (tsec, tf, chip, total,
     amount, chart-svg...) están listadas en
     ../publicacion/contratos/calculadora-pantalla.json: deben seguir teniendo estilo.
   · Aquí no hay fórmulas: el cálculo es del proyecto CALCULADORA.
   · Identidad: ver ../GUIA-DE-ESTILO.md (vidrio líquido, Geist, azul eléctrico, formas).
   ============================================================= */

/* --- Vidrio líquido (la misma receta del resto del sitio: variables --lg-*) ---
   Lleva una base semitransparente para que el borde de luz no ensucie el interior y el texto se lea. */
.chip, .res-card, .chart-box, .chart-tip, .calc-dock, .mode, .reset, .tsec, .tsec-letter,
.fig, .gate, .gate-ico, .scroll, .summary, .disclaimer, .mode-note, .tsec-tag {
  --lg-base: linear-gradient(color-mix(in srgb, var(--surface-2) 45%, transparent), color-mix(in srgb, var(--surface-2) 45%, transparent));
  border: 1px solid transparent;
  background: var(--lg-sheen) padding-box, var(--lg-fill) padding-box, var(--lg-base) padding-box, var(--lg-rim) border-box;
  box-shadow: var(--lg-shadow);
}
/* En paneles altos el reflejo es solo un filo de luz arriba, para no apagar el texto */
.fig, .chart-box { --lg-fill: linear-gradient(160deg, color-mix(in srgb, var(--accent-ink) 45%, transparent), color-mix(in srgb, var(--accent-ink) 15%, transparent)); }
.tsec, .res-card, .gate, .scroll, .summary, .chart-box, .fig {
  --lg-sheen: radial-gradient(120% 64px at 18% 0%, color-mix(in srgb, var(--accent-ink) 70%, transparent), transparent);
}
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .res-card, .chart-tip, .calc-dock, .mode, .reset, .gate, .tsec, .scroll, .summary, .chip {
    -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  }
}

/* --- Píldoras de opción (ej. horizonte 3/5/8/10 años) --- */
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .6rem; }
.chip {
  font-size: .78rem; font-weight: 600; padding: .4rem .9rem; border-radius: 999px;
  color: var(--ink-2);
  transition: color .3s, transform .35s var(--ease-out), box-shadow .3s;
}
.chip:hover { color: var(--ink); transform: translateY(-1px); }
.chip.is-on {
  color: var(--accent-ink);
  background:
    radial-gradient(120% 90% at 20% -20%, color-mix(in srgb, var(--accent-ink) 60%, transparent), transparent 50%) padding-box,
    linear-gradient(180deg, var(--accent-2), var(--accent)) padding-box,
    var(--lg-rim) border-box;
  box-shadow: inset 0 1px 1px color-mix(in srgb, var(--accent-ink) 60%, transparent), 0 8px 18px -8px rgba(var(--accent-rgb), .8);
}

/* --- Tarjeta de resultado --- */
.res-card {
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 3vw, 2rem);
  background:
    var(--lg-sheen) padding-box,
    radial-gradient(120% 80% at 100% 0%, rgba(var(--accent-rgb), .16), transparent 55%) padding-box,
    var(--lg-fill) padding-box,
    var(--lg-base) padding-box,
    var(--lg-rim) border-box;
  display: grid; gap: 1.2rem;
}
.res-kicker { color: var(--ink-2); font-size: .98rem; }
.res-kicker b { color: var(--ink); }
.c-ev, .c-gas { display: inline-flex; align-items: center; gap: .3rem; }
.c-ev::before, .c-gas::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.c-ev::before { background: var(--ev); box-shadow: 0 0 8px var(--ev); }
.c-gas::before { background: var(--gas); }

/* --- Gráfica --- */
.chart { display: grid; gap: .6rem; }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; }
.chart-title { font-size: .85rem; font-weight: 700; color: var(--ink); }
.legend { display: inline-flex; gap: 1rem; font-size: .78rem; color: var(--ink-2); }
.lg { display: inline-flex; align-items: center; gap: .4rem; }
.lg i { width: 18px; height: 0; border-top: 2px solid; }
.lg--gas i { border-color: var(--gas); border-top-style: dashed; }
.lg--ev i { border-color: var(--ev); border-top-width: 3px; }
.chart-box { position: relative; height: clamp(230px, 34vw, 300px); border-radius: 22px; touch-action: pan-y; }
.chart-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart-svg .grid line { stroke: var(--line); stroke-width: 1; }
.chart-svg .axis text { font-family: var(--mono); font-size: 10.5px; fill: var(--mute); }
.chart-svg .l-gas { fill: none; stroke: var(--gas); stroke-width: 2; stroke-dasharray: 6 5; stroke-linejoin: round; }
.chart-svg .l-ev { fill: none; stroke: var(--ev); stroke-width: 2.8; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(var(--accent-rgb), .9)) drop-shadow(0 0 12px rgba(var(--accent-rgb), .6)); }
.chart-svg .a-ev { fill: url(#gEv); }
.chart-svg .end-label { font-family: var(--sans); font-size: 11px; font-weight: 700; fill: var(--ink-2); }
.chart-svg .be-line { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 4; opacity: .7; }
.chart-svg .be-dot { fill: var(--ink); stroke: var(--bg-2); stroke-width: 2; }
.chart-svg .be-ring { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: .6; transform-box: fill-box; transform-origin: center; animation: beRing 2.4s var(--ease-out) infinite; }
@keyframes beRing { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
.chart-svg .be-tag rect { fill: var(--surface-3); stroke: var(--line-2); }
.chart-svg .be-tag text { font-family: var(--mono); font-size: 10px; fill: var(--ink); }
.chart-svg .cross line { stroke: var(--ink-2); stroke-width: 1; opacity: .5; }
.chart-svg .cross circle { stroke: var(--bg-2); stroke-width: 2; }
.chart-tip {
  position: absolute; top: 10px; z-index: 3; pointer-events: none;
  min-width: 190px; padding: .75rem .9rem; border-radius: 18px;
  --lg-fill: linear-gradient(160deg, color-mix(in srgb, var(--surface-2) 92%, transparent), color-mix(in srgb, var(--surface) 88%, transparent));
  font-size: .78rem; color: var(--ink-2); display: grid; gap: .25rem;
}
.chart-tip[hidden] { display: none; }
.chart-tip strong { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); font-weight: 500; }
.chart-tip .row { display: flex; justify-content: space-between; gap: 1rem; }
.chart-tip .row b { color: var(--ink); font-family: var(--mono); font-weight: 500; }
.chart-tip .row--diff { border-top: 1px solid var(--line); padding-top: .3rem; margin-top: .1rem; }

/* --- Aviso de estimación orientativa --- */
.disclaimer { font-size: .78rem; color: var(--mute); padding: .9rem 1.1rem; border-radius: 18px; border-left: 3px solid var(--warn); }
.disclaimer strong { color: var(--ink-2); }

/* --- Atajo flotante "Ver mi resultado" (solo celular) --- */
.calc-dock {
  position: fixed; z-index: 80; left: 50%; bottom: max(14px, env(safe-area-inset-bottom));
  transform: translate(-50%, 140%);
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .55rem .6rem .55rem 1.1rem; border-radius: 999px;
  box-shadow: var(--lg-shadow), 0 0 0 1px rgba(var(--accent-rgb), .35), 0 0 30px -8px rgba(var(--accent-rgb), .6);
  transition: transform .6s var(--ease-out);
  white-space: nowrap;
}
.calc-dock.is-on { transform: translate(-50%, 0); }
.calc-dock small { font-family: var(--mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; color: var(--mute); }
.calc-dock b { font-family: var(--display); font-size: .9rem; color: var(--accent); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.calc-dock svg {
  flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 50%; color: var(--accent-ink); transform: rotate(90deg);
  background:
    radial-gradient(120% 90% at 20% -20%, color-mix(in srgb, var(--accent-ink) 55%, transparent), transparent 50%) padding-box,
    linear-gradient(180deg, var(--accent-2), var(--accent)) padding-box;
  box-shadow: inset 0 1px 1px color-mix(in srgb, var(--accent-ink) 55%, transparent), 0 6px 14px -6px rgba(var(--accent-rgb), .9);
}

/* --- Encabezado de la página --- */
.page-calc main { padding-top: var(--nav-h); }
.calc-hero { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(2rem, 5vw, 3.5rem) 1.5rem; }
.calc-hero .hero-mesh { opacity: .85; }
.crumbs { display: flex; gap: .5rem; font-size: .82rem; color: var(--mute); margin-bottom: 1.6rem; }
.crumbs a:hover { color: var(--accent); }
.calc-hero-grid { display: grid; gap: 1.5rem; align-items: end; }
.calc-hero-grid > div { display: grid; gap: 1rem; }
.calc-title { font-family: var(--display); font-weight: 750; font-size: clamp(1.9rem, 4.8vw, 3.6rem); letter-spacing: -.055em; line-height: 1.02; max-width: 20ch; }

/* --- Selector de modo (tengo carro / no tengo carro): cápsula de vidrio con gota azul --- */
.mode {
  --i: 0;
  position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-top: 2rem;
  padding: 6px; border-radius: 999px;
}
.mode button { position: relative; z-index: 1; text-align: left; padding: .95rem 1.4rem; border-radius: 999px; display: grid; gap: .15rem; transition: color .4s; }
.mode button b { font-size: .95rem; font-weight: 650; }
.mode button small { font-size: .78rem; color: var(--mute); line-height: 1.3; transition: color .4s; }
.mode button[aria-checked="true"] { color: var(--accent-ink); }
.mode button[aria-checked="true"] small { color: color-mix(in srgb, var(--accent-ink) 80%, transparent); }
.mode-thumb {
  position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc(50% - 6px); border-radius: 999px;
  border: 1px solid transparent;
  background:
    radial-gradient(120% 90% at 20% -20%, color-mix(in srgb, var(--accent-ink) 65%, transparent), transparent 50%) padding-box,
    linear-gradient(180deg, var(--accent-2), var(--accent)) padding-box,
    var(--lg-rim) border-box;
  box-shadow: inset 0 1px 1px color-mix(in srgb, var(--accent-ink) 60%, transparent), inset 0 -8px 16px -8px rgba(var(--accent-rgb), .9), 0 12px 30px -10px rgba(var(--accent-rgb), .8);
  transform: translateX(calc(var(--i) * 100%)); transition: transform .6s var(--ease-out);
}
.mode-note { font-size: .85rem; color: var(--ink-2); border-left: 3px solid var(--warn); padding: .9rem 1.1rem; border-radius: 18px; margin-top: 1rem; max-width: 70ch; }

/* --- Leyenda de colores de los campos y botón restablecer --- */
.calc-main { padding-block: 1rem clamp(4rem, 8vw, 6rem); }
.tco-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; font-size: .8rem; color: var(--ink-2); margin-bottom: 1.2rem; }
.tco-legend > span { display: inline-flex; align-items: center; gap: .45rem; }
.lchip { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.lchip--d { background: rgba(var(--accent-2-rgb), .22); border: 1.5px solid var(--accent-2); }
.lchip--s { background: color-mix(in srgb, var(--warn) 18%, transparent); border: 1.5px solid var(--warn); }
.lchip--f { background: transparent; border: 1.5px dashed var(--mute); }
.reset { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; color: var(--ink-2); padding: .5rem 1rem; border-radius: 999px; transition: color .3s, transform .35s var(--ease-out); }
.reset svg { width: 15px; height: 15px; transition: transform .6s var(--ease-out); }
.reset:hover { color: var(--accent); transform: translateY(-1px); }
.reset:hover svg { transform: rotate(-200deg); }

/* --- Formulario por secciones (acordeón) --- */
.tco { display: grid; gap: 1.2rem; align-items: start; }
.tco-form { display: grid; gap: .7rem; min-width: 0; }
.tsec { border-radius: 24px; transition: box-shadow .4s; }
.tsec.is-open { box-shadow: var(--lg-shadow), 0 24px 50px -30px rgba(var(--accent-rgb), .45); }
.tsec-h { font: inherit; letter-spacing: 0; }
.tsec-head { width: 100%; display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; text-align: left; }
.tsec-letter { width: 2.1rem; height: 2.1rem; flex: none; display: grid; place-items: center; border-radius: 50%; font-family: var(--mono); font-size: .8rem; font-weight: 600; color: var(--accent); }
.tsec-title { font-family: var(--display); font-weight: 650; font-size: 1.02rem; letter-spacing: -.03em; flex: 1; }
.tsec-tag { font-family: var(--mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; color: var(--mute); padding: .2rem .55rem; border-radius: 999px; box-shadow: none; }
.tsec-chev { width: 20px; height: 20px; color: var(--mute); transition: transform .5s var(--ease-out); flex: none; }
.tsec.is-open .tsec-chev { transform: rotate(180deg); color: var(--accent); }
.tsec-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease-out); }
.tsec.is-open .tsec-body { grid-template-rows: 1fr; }
.tsec-inner { overflow: hidden; padding-inline: 1.2rem; }
.tsec.is-open .tsec-inner { padding-bottom: 1.1rem; }
.tsec-hint { font-size: .8rem; color: var(--ink-2); margin-bottom: .6rem; max-width: 60ch; }

/* --- Campos: azul = dato del usuario, ámbar = supuesto, punteado = calculado --- */
.tf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(128px, 168px); gap: .4rem .8rem; align-items: center; padding: .55rem 0; border-top: 1px dashed var(--line-2); }
.tf > label { font-size: .88rem; color: var(--ink-2); line-height: 1.3; }
.tf .note { display: block; font-size: .72rem; color: var(--ink-2); margin-top: .1rem; }
.tf-in {
  display: flex; align-items: baseline; gap: .3rem; padding: .5rem .8rem; border-radius: 14px; border: 1px solid;
  box-shadow: inset 0 2px 6px -2px color-mix(in srgb, var(--bg) 90%, transparent), inset 0 1px 0 color-mix(in srgb, var(--ink) 8%, transparent);
  transition: box-shadow .3s, border-color .3s; position: relative;
}
.tf-in input, .tf-in select { width: 100%; min-width: 0; background: none; border: 0; outline: 0; font-family: var(--mono); font-size: .9rem; text-align: right; color: var(--ink); }
.tf-in .pre, .tf-in .post { font-family: var(--mono); font-size: .72rem; color: var(--mute); white-space: nowrap; }
.tf--d .tf-in { border-color: rgba(var(--accent-2-rgb), .5); background: rgba(var(--accent-2-rgb), .09); }
.tf--d .tf-in:focus-within { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(var(--accent-2-rgb), .22), 0 0 18px -4px rgba(var(--accent-rgb), .6); }
.tf--s .tf-in { border-color: color-mix(in srgb, var(--warn) 50%, transparent); background: color-mix(in srgb, var(--warn) 8%, transparent); }
.tf--s .tf-in:focus-within { border-color: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 18%, transparent); }
.tf-in--select { padding-right: 1.8rem; }
.tf-in--select select { text-align: left; font-family: var(--sans); font-weight: 600; cursor: pointer; -webkit-appearance: none; appearance: none; }
.tf-in--select select option { background: var(--surface); color: var(--ink); }
.tf-in--select svg { position: absolute; right: .6rem; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--mute); pointer-events: none; }
.tf-out { display: block; padding: .5rem .8rem; border-radius: 14px; border: 1px dashed var(--line-2); font-family: var(--mono); font-size: .8rem; text-align: right; color: var(--ink); background: color-mix(in srgb, var(--ink) 3%, transparent); }
.tf-out.is-flash { animation: outFlash .9s var(--ease-out); }
@keyframes outFlash { 0% { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); } 100% { border-color: var(--line-2); box-shadow: none; } }
.tf-chips { grid-column: 1 / -1; margin-top: 0; justify-content: flex-end; }
.tsec .warn { font-size: .8rem; color: var(--gas); background: color-mix(in srgb, var(--gas) 10%, transparent); border-radius: 14px; padding: .65rem .9rem; margin-top: .6rem; }
.show-deuda, .show-financia, .show-manual { display: none; }
body.has-deuda .show-deuda, body.has-financia .show-financia, body.has-manual .show-manual { display: grid; }
body.solo-ev .gas-only { display: none !important; }

/* --- Resultado --- */
.tco-side { min-width: 0; scroll-margin-top: calc(var(--nav-h) + 12px); }
.res-card .res-kicker { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.tco-verdict { font-family: var(--display); font-weight: 750; font-size: clamp(1.45rem, 3.2vw, 2.15rem); letter-spacing: -.045em; line-height: 1.12; }
.tco-verdict .amount { color: var(--accent); white-space: nowrap; text-shadow: 0 0 26px rgba(var(--accent-rgb), .5); }
.tco-verdict.gas-wins .amount { color: var(--gas); text-shadow: none; }
.tco-verdict-sub { color: var(--ink-2); font-size: .9rem; }
.figs { display: grid; gap: .6rem; }
.fig { padding: .9rem 1.1rem; border-radius: 20px; display: grid; gap: .2rem; box-shadow: inset 0 1px 1px var(--accent-ink), inset 0 -10px 18px -14px color-mix(in srgb, var(--accent-ink) 70%, transparent), 0 6px 16px -10px rgba(var(--accent-rgb), .25); }
.fig small { font-size: .74rem; color: var(--ink-2); line-height: 1.3; }
.fig b { font-family: var(--display); font-weight: 700; font-size: clamp(.95rem, 1.35vw, 1.1rem); letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fig--a small::before, .fig--b small::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .4rem; vertical-align: 1px; }
.fig--a small::before { background: var(--gas); }
.fig--b small::before { background: var(--ev); box-shadow: 0 0 8px var(--ev); }
.chart-svg .pt { stroke: var(--bg-2); stroke-width: 2; }
.chart-svg .pt--ev { fill: var(--ev); }
.chart-svg .pt--gas { fill: var(--gas); }
.page-calc .chart-box { height: clamp(240px, 32vw, 320px); }

/* --- Resultado bloqueado hasta dejar el correo --- */
.gated { position: relative; }
.gate { display: none; }
.gated[data-locked] .gate-content { filter: blur(9px) saturate(.6); opacity: .55; pointer-events: none; user-select: none; }
.gated[data-locked] .gate {
  display: grid; gap: .8rem; justify-items: center; text-align: center;
  position: absolute; z-index: 5; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(92%, 420px); padding: 1.8rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--lg-shadow), 0 0 0 1px rgba(var(--accent-rgb), .3), 0 0 60px -20px rgba(var(--accent-rgb), .5);
}
.gate h2 { font-family: var(--display); font-weight: 750; font-size: 1.35rem; letter-spacing: -.04em; }
.gate p { color: var(--ink-2); font-size: .9rem; }
.gate-ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); }
.gate-ico svg { width: 22px; height: 22px; }
.gate-form { display: grid; gap: .7rem; width: 100%; text-align: left; }
.gate-form input[type=email] {
  width: 100%; height: 52px; padding-inline: 1.2rem; border-radius: 999px; background: color-mix(in srgb, var(--bg) 55%, transparent); border: 1px solid var(--line-2); outline: 0;
  box-shadow: inset 0 2px 6px -2px color-mix(in srgb, var(--bg) 90%, transparent);
  transition: border-color .3s, box-shadow .3s;
}
.gate-form input[type=email]:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 0 20px -4px rgba(var(--accent-rgb), .6); }
.gate--mini { gap: .6rem; }
.gated--wide[data-locked] .gate { top: 140px; transform: translateX(-50%); }
.gated--wide[data-locked] .gate-content { max-height: 520px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, black 40%, transparent); mask-image: linear-gradient(180deg, black 40%, transparent); }
.gated.is-unlocking .gate-content { animation: unblur 1s var(--ease-out); }
@keyframes unblur { from { filter: blur(9px); opacity: .55; } to { filter: none; opacity: 1; } }

/* --- Tablas año por año y resumen --- */
.proj { margin-top: 2.4rem; }
.proj h2, .summary h2 { font-family: var(--display); font-weight: 650; font-size: 1.15rem; letter-spacing: -.03em; }
.proj .hint { font-size: .82rem; color: var(--mute); margin: .3rem 0 .9rem; max-width: 80ch; }
.scroll { overflow-x: auto; border-radius: 24px; }
.scroll table, .summary table { border-collapse: collapse; width: 100%; font-size: .8rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.scroll th, .scroll td, .summary td { padding: .6rem .9rem; text-align: right; border-bottom: 1px solid var(--line); }
.scroll th:first-child, .scroll td:first-child { text-align: left; position: sticky; left: 0; background: var(--surface-2); color: var(--ink-2); font-weight: 600; z-index: 1; }
.scroll thead th { font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); font-weight: 500; background: var(--surface-2); }
.scroll thead th:first-child { background: var(--surface-2); }
.scroll tbody tr:hover td { background: var(--surface-3); }
.scroll tr.total td { font-weight: 700; color: var(--ink); border-top: 1px solid var(--line-2); }
.scroll tr.accum td { color: var(--ink-2); font-weight: 600; }
.scroll td.neg { color: var(--accent); }
.scroll td.pos { color: var(--gas); }
.scroll td.cross { box-shadow: inset 0 0 0 1.5px var(--accent); background: var(--accent-soft) !important; }
.summary { margin-top: 2.4rem; border-radius: 24px; overflow: hidden; }
.summary h2 { padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.summary table { white-space: normal; font-size: .9rem; }
.summary td:first-child { text-align: left; color: var(--ink-2); }
.summary td:last-child { font-family: var(--mono); color: var(--ink); white-space: nowrap; }
.summary tr:last-child td { border-bottom: 0; }
.caveat { margin-top: 2rem; font-size: .82rem; color: var(--mute); line-height: 1.7; max-width: 90ch; }
.calc-main .disclaimer { margin-top: 1rem; max-width: 90ch; }

/* --- Adaptación a pantallas --- */
@media (min-width: 540px) {
  .figs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.solo-ev .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 720px) {
  .calc-hero-grid { grid-template-columns: 1fr auto; }
}
@media (min-width: 960px) {
  .calc-dock { display: none; }
  .tco { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; }
  .tco-side { position: sticky; top: calc(var(--nav-h) + 16px); }
}
@media (min-width: 960px) and (max-width: 1279px) {
  .figs, body.solo-ev .figs { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1280px) {
  .tco { grid-template-columns: minmax(0, 7fr) minmax(0, 6fr); }
}
@media (max-width: 539px) {
  .mode { border-radius: 28px; }
  .mode button { padding: .8rem 1rem; }
  .mode button small { display: none; }
  .tf { grid-template-columns: minmax(0, 1fr) minmax(118px, 140px); }
  .reset { margin-left: 0; }
}

/* --- Movimiento reducido --- */
@media (prefers-reduced-motion: reduce) {
  .be-ring { animation: none; }
}
