/* LiquidAR · sitio público (landing, guías, calculadoras y cuenta).
   Mismo mundo que el panel (app/assets/app.css): tinta #0E1B2E, acento #1F5FD1, IBM Plex Sans + Plex Mono.
   Mono solo para importes, CUIL, períodos, fórmulas y artículos. Papel blanco con filetes de formulario sobre gris frío. */

:root {
  --bg: #F3F5F8;
  --paper: #FFFFFF;
  --surface-2: #F1F4F8;
  --surface-3: #E6EBF2;
  --ink: #0E1B2E;
  --ink-2: #33415A;
  --muted: #5B687D;
  --faint: #8C97A8;
  --line: #E1E6EE;
  --line-2: #CDD5E1;
  --accent: #1F5FD1;
  --accent-hover: #194FB0;
  --accent-soft: #E7EFFC;
  --accent-line: #C5D6F6;
  --accent-claro: #8DB8FF;
  --navy: #0E1B2E;
  --navy-2: #1A2A42;
  --navy-3: #2A3B57;
  --navy-txt: #C9D3E3;
  --navy-dim: #93A0B7;
  --ok: #157A47;   --ok-soft: #E6F5EC;   --ok-line: #B7E1C7;
  --bad: #B42323;  --bad-soft: #FCEDED;  --bad-line: #F2C4C4;
  --warn: #9A5208; --warn-soft: #FDF3E4; --warn-line: #F3D6A6;
  --wa: #1FAF55;
  --shadow: 0 1px 2px rgb(14 27 46 / .05), 0 12px 32px -18px rgb(14 27 46 / .28);
  --shadow-papel: 0 1px 1px rgb(14 27 46 / .04), 0 3px 8px -3px rgb(14 27 46 / .08), 0 36px 72px -36px rgb(14 27 46 / .42);
  --shadow-lg: 0 28px 64px -24px rgb(14 27 46 / .45);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --hd: 64px;
  --gutter: 16px;
  color-scheme: light;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1120px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hd) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft); color: var(--ink); }
.mono, code { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.ico-sm { width: .95em; height: .95em; }
.ico-flip { transform: scaleX(-1); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }
/* Hijos de grillas: que puedan achicarse (si no, una tabla ancha empuja la columna fuera de pantalla) */
.pag-cuerpo > *, .calc > *, .funciones-in > *, .preguntas-in > *, .estudios-in > *, .reforma-in > *, .hero-txt > *, .cierre-in > *, .marco-in > *, .pie-grid > * { min-width: 0; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.saltar:focus { top: 12px; }

/* ================= Botones ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
  border-radius: 8px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink);
  font-weight: 600; font-size: .95rem; line-height: 1; white-space: nowrap; text-decoration: none; user-select: none;
  transition: background-color .15s, border-color .15s, color .15s, transform .12s var(--ease), box-shadow .15s;
}
.btn .ico { width: 18px; height: 18px; }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: scale(.98); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 1px 2px rgb(14 27 46 / .12), 0 8px 18px -10px rgb(31 95 209 / .7); }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-tinta { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-tinta:hover { background: #22324D; border-color: #22324D; }
.btn-claro { background: transparent; border-color: rgb(255 255 255 / .34); color: #fff; }
.btn-claro:hover { border-color: #fff; background: rgb(255 255 255 / .06); }
.btn-lg { height: 52px; padding: 0 24px; font-size: 1rem; }
.btn-sm { height: 38px; padding: 0 14px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.cargando { opacity: .6; pointer-events: none; }
.btn .giro { width: 16px; height: 16px; border-radius: 99px; border: 2px solid currentColor; border-right-color: transparent; animation: giro .7s linear infinite; }
@keyframes giro { to { transform: rotate(360deg); } }
.lnk { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lnk:hover { color: var(--accent-hover); }

/* ================= Cabecera ================= */
.hd { position: sticky; top: 0; z-index: 60; height: var(--hd); background: rgb(243 245 248 / .97); border-bottom: 1px solid transparent; transition: border-color .2s, background-color .2s; }
.hd.con-borde, .hd-min { border-bottom-color: var(--line); background: rgb(255 255 255 / .98); }
.hd-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 1.2rem; letter-spacing: -.025em; color: var(--ink); flex: none; }
.marca b { color: var(--accent); font-weight: 700; }
.marca-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.marca-ico .ico { width: 19px; height: 19px; }
.nav { display: none; }
.hd-acc { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hd-login { display: none; font-weight: 600; font-size: .95rem; text-decoration: none; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); }
.hd-login:hover { color: var(--ink); background: var(--surface-3); }
.hd-menu { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 8px; background: var(--paper); }
.hd-menu .ico { width: 22px; height: 22px; grid-area: 1 / 1; transition: opacity .15s, transform .2s var(--ease); }
.hd-menu .ico:last-child { opacity: 0; transform: rotate(-45deg); }
.hd-menu[aria-expanded="true"] .ico:first-child { opacity: 0; transform: rotate(45deg); }
.hd-menu[aria-expanded="true"] .ico:last-child { opacity: 1; transform: none; }
.hd-volver { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--ink-2); text-decoration: none; }
.hd-volver:hover { color: var(--ink); }

/* Menú en celular: panel debajo de la cabecera */
.nav.abierto {
  display: flex; flex-direction: column; position: fixed; inset: var(--hd) 0 0 0; z-index: 59; background: var(--paper);
  padding: 8px var(--gutter) 32px; overflow-y: auto; border-top: 1px solid var(--line);
  animation: menu-in .28s var(--ease);
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }
.nav.abierto > a, .nav.abierto .nav-dd-btn { display: flex; align-items: center; min-height: 52px; font-size: 1.05rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.nav.abierto .nav-dd-btn { width: 100%; background: none; border-width: 0 0 1px; padding: 0; text-align: left; justify-content: space-between; }
.nav.abierto .dd { position: static; display: none; box-shadow: none; border: 0; padding: 4px 0 12px; width: auto; }
.nav.abierto .nav-dd.abierto .dd { display: block; }
.nav-dd.abierto .nav-dd-btn .ico { transform: rotate(180deg); }
.nav-dd-btn .ico { transition: transform .2s var(--ease); }
body.menu-abierto { overflow: hidden; }

.dd { display: none; position: absolute; top: calc(100% + 10px); left: -16px; width: 360px; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); }
.nav-dd { position: relative; }
.nav-dd.abierto .dd { display: block; animation: dd-in .22s var(--ease); }
@keyframes dd-in { from { opacity: 0; transform: translateY(-4px); } }
.dd-tit { display: block; padding: 10px 10px 4px; font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.dd a { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 8px; text-decoration: none; }
.dd a:hover { background: var(--surface-2); }
.dd a > .ico { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.dd strong { display: block; font-size: .93rem; font-weight: 600; }
.dd small { display: block; font-size: .82rem; color: var(--muted); line-height: 1.4; }

@media (min-width: 640px) {
  .hd-login { display: inline-flex; }
  .nav-solo-movil { display: none !important; }
}
@media (min-width: 1040px) {
  .hd-menu { display: none; }
  .nav, .nav.abierto { display: flex; position: static; flex-direction: row; align-items: center; gap: 2px; padding: 0; background: none; border: 0; overflow: visible; animation: none; }
  .nav > a, .nav-dd-btn, .nav.abierto > a, .nav.abierto .nav-dd-btn { min-height: 0; height: 38px; padding: 0 12px; border: 0; border-radius: 8px; font-size: .94rem; font-weight: 500; color: var(--ink-2); text-decoration: none; background: none; display: inline-flex; align-items: center; gap: 6px; width: auto; }
  .nav > a:hover, .nav-dd-btn:hover, .nav-dd.abierto .nav-dd-btn { color: var(--ink); background: var(--surface-3); }
  .nav.abierto .dd { position: absolute; padding: 8px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); width: 360px; }
  body.menu-abierto { overflow: auto; }
}

/* ================= Secciones ================= */
.sec { padding-block: clamp(72px, 9vw, 120px); }
.sec-cab { max-width: 720px; margin-bottom: clamp(32px, 4vw, 48px); }
.sec-cab h2, .banda h2, .cierre h2 { font-size: clamp(1.8rem, 1.25rem + 1.7vw, 2.6rem); }
.sec-cab p { margin-top: 14px; font-size: 1.06rem; color: var(--muted); max-width: 62ch; }
.sec-cab .btn { margin-top: 24px; }

/* ================= Hero ================= */
.hero {
  position: relative; padding: clamp(36px, 6vw, 72px) 0 clamp(56px, 7vw, 96px); overflow: hidden;
  background:
    linear-gradient(to bottom, var(--bg) 0, rgb(243 245 248 / 0) 220px),
    repeating-linear-gradient(to right, rgb(14 27 46 / .045) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(to bottom, rgb(14 27 46 / .045) 0 1px, transparent 1px 40px),
    var(--bg);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(to top, var(--bg), rgb(243 245 248 / 0)); pointer-events: none; }
.hero-txt { display: grid; gap: 24px; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.15rem, 1.2rem + 3.4vw, 3.9rem); letter-spacing: -.032em; line-height: 1.03; max-width: 15ch; }
.lead { font-size: clamp(1.04rem, 1rem + .25vw, 1.16rem); color: var(--ink-2); max-width: 54ch; line-height: 1.6; }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.garantias { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: .92rem; color: var(--ink-2); font-weight: 500; }
.garantias li { display: inline-flex; align-items: center; gap: 7px; }
.garantias .ico { color: var(--ok); width: 17px; height: 17px; }
.hero-mesa { position: relative; z-index: 1; margin-top: clamp(40px, 5vw, 64px); display: grid; justify-content: center; grid-template-columns: minmax(0, 640px); }
.recorrido { display: none; }

@media (max-width: 479px) {
  .acciones .btn { width: 100%; }
}
@media (min-width: 900px) {
  .hero-txt { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: end; }
  .hero h1 { max-width: none; }
  .hero-mesa { grid-template-columns: minmax(0, 600px) 220px; }
}
@media (min-width: 1180px) {
  .hero-mesa { grid-template-columns: 210px minmax(0, 600px) 230px; justify-content: space-between; }
  .recorrido { display: block; align-self: start; margin-top: 120px; position: relative; padding-left: 26px; }
  .recorrido::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 22px; width: 1px; background: var(--line-2); }
  .recorrido li { position: relative; padding-bottom: 26px; display: grid; gap: 2px; }
  .recorrido .rec-p { position: absolute; left: -26px; top: 4px; width: 13px; height: 13px; border-radius: 99px; background: var(--paper); border: 2px solid var(--line-2); display: grid; place-items: center; }
  .recorrido strong { font-size: .9rem; font-weight: 600; }
  .recorrido span:not(.rec-p) { font-size: .84rem; color: var(--muted); }
  .recorrido .rec-ok .rec-p { width: 19px; height: 19px; left: -29px; top: 1px; background: var(--ok); border-color: var(--ok); color: #fff; }
  .recorrido .rec-ok .rec-p .ico { width: 11px; height: 11px; }
  .recorrido .rec-ok strong { color: var(--ok); }
}

/* ================= Recibo de haberes ================= */
.rc { margin: 0; min-width: 0; }
.rc-papel { background: var(--paper); border: 1px solid var(--line-2); border-radius: 6px; box-shadow: var(--shadow-papel); padding: 16px 14px 14px; font-size: 13px; line-height: 1.35; color: var(--ink); }
.rc-cab { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 3px double var(--line-2); }
.rc-emp, .rc-tit { display: grid; gap: 2px; align-content: start; }
.rc-emp strong { font-size: 14.5px; font-weight: 600; }
.rc-emp span, .rc-tit span { font-size: 11.5px; color: var(--muted); }
.rc-tit { text-align: right; }
.rc-tit strong { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.rc-datos { margin: 12px 0 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.rc-datos > div { padding: 6px 8px 7px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.rc-datos .rc-d-ancho { grid-column: span 2; }
.rc-datos dt { font-size: 9.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.rc-datos dd { margin: 1px 0 0; font-weight: 500; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-items { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 12.5px; }
.rc-items th { font-size: 9.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.rc-items td { padding: 6px; border-bottom: 1px solid var(--line); vertical-align: top; transition: background-color .2s; }
.rc-items .c-imp, .rc-items .c-movil, .rc-items .c-cant { text-align: right; white-space: nowrap; }
.rc-items .c-cod { color: var(--muted); width: 40px; }
.rc-items .c-cant { color: var(--muted); width: 46px; }
.rc-items .c-imp { width: 98px; }
.rc-items .c-cod, .rc-items .c-cant, .rc-items th.c-imp { display: none; }
.rc-items td.c-imp:empty { display: none; }
.rc-items .c-des:not(:empty)::before { content: "−"; }
.rc-items .c-nr:not(:empty) { color: var(--ink-2); }
.rc-items .c-nota { display: none; }
.rc-items tfoot { display: none; }
.rc-items tfoot th { font-size: 12.5px; letter-spacing: 0; text-transform: none; color: var(--ink); border: 0; padding-top: 9px; }
.rc-items tfoot td { font-weight: 600; border: 0; border-top: 1px solid var(--ink-2); padding-top: 9px; }
.rc-items tfoot td.c-cod, .rc-items tfoot td.c-cant { border-top: 0; }
.rc-items tfoot tr th { border-top: 1px solid var(--ink-2); }
.nota-m { display: block; margin-top: 2px; font-size: 11.5px; color: var(--accent-hover); font-weight: 500; }
.rc-tot-m { margin: 10px 0 0; display: grid; gap: 4px; padding-top: 8px; border-top: 1px solid var(--ink-2); }
.rc-tot-m > div { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.rc-tot-m dt { color: var(--muted); }
.rc-tot-m dd { margin: 0; font-weight: 600; }
.rc-neto { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; }
.rc-neto > div { display: grid; gap: 2px; min-width: 0; }
.rc-neto-lbl { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.rc-letras { font-size: 11.5px; color: var(--muted); }
.rc-neto strong { font-size: 19px; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.rc-pie { margin-top: 12px; display: grid; gap: 12px; }
.rc-dep { margin: 0; display: grid; gap: 4px; }
.rc-dep > div { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; }
.rc-dep dt { color: var(--muted); }
.rc-dep dd { margin: 0; text-align: right; }
.rc-items .c-con { width: 100%; }
.rc-firmas { display: grid; gap: 10px; }
@media (min-width: 400px) { .rc-firmas { grid-template-columns: 1fr 1fr; } }
.rc-firma { display: grid; gap: 6px; padding-top: 8px; border-top: 1px dashed var(--line-2); }
.rc-f-lbl { font-size: 9.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.rc-sello { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 4px 7px; border-radius: 4px; background: var(--surface-2); color: var(--ink-2); justify-self: start; }
.rc-sello .ico { width: 14px; height: 14px; }
.rc-firma-ok .rc-sello { background: var(--ok-soft); color: var(--ok); }
.rc figcaption { margin-top: 12px; font-size: .82rem; color: var(--muted); }

@media (min-width: 560px) {
  .rc-papel { padding: 22px 22px 18px; }
  .rc-datos { grid-template-columns: 1.6fr 1.2fr 1fr; }
  .rc-datos .rc-d-ancho { grid-column: auto; }
  .rc-items .c-cod, .rc-items .c-cant { display: table-cell; }
  .rc-items th.c-imp, .rc-items td.c-imp:empty { display: table-cell; }
  .rc-items .c-movil { display: none; }
  .rc-items tfoot { display: table-footer-group; }
  .rc-items .c-des:not(:empty)::before { content: none; }
  .rc-tot-m { display: none; }
  .rc-dep { grid-template-columns: 1.15fr 1.25fr 1fr; gap: 10px; }
  .rc-dep > div { display: grid; gap: 1px; align-content: start; }
  .rc-dep dt { font-size: 9.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
  .rc-dep dd { text-align: left; }
}
@media (min-width: 900px) {
  .rc-con-notas .nota-m { display: none; }
  .rc-con-notas .rc-items .c-nota { display: table-cell; width: 0; padding: 0; border: 0; position: relative; }
  .rc-items tr.con-nota:hover td:not(.c-nota) { background: var(--accent-soft); }
  .nota {
    position: absolute; left: 36px; top: 50%; transform: translateY(-50%); white-space: nowrap;
    font-size: 12px; font-weight: 500; line-height: 1; color: var(--accent-hover); background: var(--paper);
    border: 1px solid var(--accent-line); border-radius: 4px; padding: 6px 9px;
    transition: background-color .2s, color .2s, border-color .2s;
    animation: nota-in .7s var(--ease) both; animation-delay: calc(500ms + var(--n, 0) * 120ms);
  }
  .nota::before { content: ""; position: absolute; right: 100%; top: 50%; width: 32px; border-top: 1px solid var(--accent-line); transform-origin: left; transition: border-color .2s; }
  .rc-items tr.con-nota:hover .nota { background: var(--accent); color: #fff; border-color: var(--accent); }
  .rc-items tr.con-nota:hover .nota::before { border-top-color: var(--accent); }
}
@keyframes nota-in { from { opacity: 0; transform: translate(-10px, -50%); clip-path: inset(0 100% 0 0); } to { opacity: 1; transform: translate(0, -50%); clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .nota { animation: none; } }

/* Costo laboral (nuevo modelo de recibo) */
.rc-costo { position: relative; margin-top: 12px; padding: 9px 12px 10px; border: 1px solid var(--line); border-radius: 4px; transition: background-color .2s; }
.rc-costo-tit { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.rc-costo dl { margin: 0; display: grid; gap: 3px; }
.rc-costo dl > div { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; }
.rc-costo dt { color: var(--muted); }
.rc-costo dd { margin: 0; }
.rc-costo .rc-costo-tot { padding-top: 4px; margin-top: 2px; border-top: 1px solid var(--line); font-weight: 600; }
.rc-costo .rc-costo-tot dt { color: var(--ink); }
.nota-b { display: none; }
@media (min-width: 900px) {
  .rc-con-notas .nota-b { display: block; left: calc(100% + 36px); }
  .rc-costo.con-nota:hover { background: var(--accent-soft); }
  .rc-costo.con-nota:hover .nota { background: var(--accent); color: #fff; border-color: var(--accent); }
}

/* ================= Reforma laboral ================= */
.reforma { background: var(--accent); color: #E6EEFC; padding-block: clamp(64px, 8vw, 104px); }
.reforma-in { display: grid; gap: 40px; }
.reforma h2 { color: #fff; font-size: clamp(1.8rem, 1.25rem + 1.7vw, 2.6rem); margin-top: 18px; }
.reforma-cab p { margin-top: 16px; font-size: 1.06rem; max-width: 52ch; }
.reforma-cab strong { color: #fff; font-weight: 600; }
.sello-vig { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 9px; border-radius: 99px; background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .28); color: #fff; font-size: .84rem; font-weight: 600; }
.sello-vig .ico { width: 17px; height: 17px; }
.reforma-lista { border-top: 1px solid rgb(255 255 255 / .55); }
.reforma-lista li { padding: 16px 0 17px; border-bottom: 1px solid rgb(255 255 255 / .22); }
.reforma-lista .ind-t strong { color: #fff; }
.reforma-lista .ind-lider { border-bottom-color: rgb(255 255 255 / .38); }
.reforma-lista .ind-ref { color: #D3E2FF; }
.reforma-lista .ind-d { color: #E6EEFC; }
@media (min-width: 1040px) { .reforma-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; } }
.garantias a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.garantias a:hover { text-decoration-color: currentColor; }

/* ================= Franja normativa ================= */
.marco { background: var(--paper); border-block: 1px solid var(--line); }
.marco-in { padding-block: 28px; display: grid; gap: 18px; }
.marco h2 { font-size: .95rem; font-weight: 600; letter-spacing: -.005em; color: var(--ink-2); max-width: 20ch; line-height: 1.35; }
.marco-lista { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.marco-lista li { display: grid; gap: 2px; }
.marco-lista strong { font-size: .94rem; font-weight: 600; }
.marco-lista span { font-size: .8rem; color: var(--muted); }
@media (min-width: 720px) { .marco-lista { grid-template-columns: repeat(5, auto); justify-content: space-between; } }
@media (min-width: 1080px) {
  .marco-in { grid-template-columns: 200px 1fr; align-items: center; gap: 40px; }
  .marco-lista li { padding-left: 20px; border-left: 1px solid var(--line); }
}

/* ================= Pantalla del panel ================= */
.pnl { display: grid; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--bg); box-shadow: var(--shadow-papel); font-size: 13px; line-height: 1.35; }
.pnl-side { display: none; background: var(--navy); color: var(--navy-txt); padding: 0 12px 16px; }
.pnl-marca { height: 56px; display: flex; align-items: center; gap: 10px; color: #FAFAFA; font-weight: 600; font-size: 1.02rem; letter-spacing: -.02em; border-bottom: 1px solid var(--navy-2); margin: 0 -12px 12px; padding: 0 16px; }
.pnl-marca b { color: #7FB2FF; }
.pnl-marca .marca-ico { width: 26px; height: 26px; border-radius: 7px; }
.pnl-marca .marca-ico .ico { width: 16px; height: 16px; }
.pnl-grupo { display: grid; gap: 1px; }
.pnl-grupo + .pnl-grupo { margin-top: 14px; }
.pnl-g { font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #7F8DA6; padding: 0 8px 5px; }
.pnl-link { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 8px; border-radius: 7px; font-weight: 500; font-size: 12.5px; white-space: nowrap; }
.pnl-link .ico { width: 16px; height: 16px; color: #7F8DA6; }
.pnl-link.activo { background: var(--accent); color: #fff; font-weight: 600; }
.pnl-link.activo .ico { color: #fff; }
.pnl-main { min-width: 0; }
.pnl-top { height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
.pnl-emp { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.pnl-emp .ico { width: 16px; height: 16px; color: var(--muted); }
.pnl-sp { flex: 1; }
.pnl-pill { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); }
.pnl-pill .ico { width: 16px; height: 16px; }
.pnl-av { width: 30px; height: 30px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 11.5px; display: grid; place-items: center; }
.pnl-body { padding: 16px; display: grid; gap: 14px; }
.pnl-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.pnl-h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 16.5px; font-weight: 600; letter-spacing: -.015em; }
.pnl-badge { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 99px; background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn-line); letter-spacing: 0; }
.pnl-sub { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.pnl-btns { display: flex; gap: 8px; }
.pnl-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--paper); font-weight: 600; font-size: 12px; white-space: nowrap; }
.pnl-btn .ico { width: 15px; height: 15px; }
.pnl-btn-p { background: var(--ink); border-color: var(--ink); color: #fff; }
.pnl-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pnl-stats > div { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; min-width: 0; }
.pnl-stats span { font-size: 11.5px; color: var(--muted); }
.pnl-stats strong { font-size: 16px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pnl-stats strong.mono { font-weight: 500; }
.pnl-tabla { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pnl-tabla table { width: 100%; border-collapse: collapse; }
.pnl-tabla th { text-align: left; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pnl-tabla td { padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 12.5px; }
.pnl-tabla td small { display: block; color: var(--muted); font-size: 11px; }
.pnl-tabla td strong { font-weight: 600; }
.pnl-tabla .r { text-align: right; }
.pnl-tabla tr.sel td { background: var(--accent-soft); }
.pnl-tabla tfoot td { font-weight: 600; background: var(--surface-2); border-bottom: 0; }
.pnl-ok { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); font-weight: 600; font-size: 11.5px; }
.pnl-ok .ico { width: 14px; height: 14px; }
.pnl-opc { display: none; }
@media (max-width: 519px) { .pnl-opc2 { display: none; } }
.pnl-tabla th:first-child, .pnl-tabla td:first-child { display: none; }
@media (min-width: 640px) {
  .pnl-tabla th:first-child, .pnl-tabla td:first-child { display: table-cell; color: var(--muted); }
  .pnl-body { padding: 20px; }
}
@media (min-width: 760px) {
  .pnl-opc { display: table-cell; }
  .pnl-stats { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1000px) {
  .pnl { grid-template-columns: 212px minmax(0, 1fr); }
  .pnl-side { display: block; }
  .pnl-body { padding: 22px 24px 24px; }
  .pnl-tabla td { padding: 9px 12px; }
}
@media (max-width: 559px) {
  .pnl-btns .pnl-btn:first-child { display: none; }
}
.pantalla-notas { display: grid; gap: 22px; margin-top: 36px; }
.pantalla-notas li { display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--ink); }
.pantalla-notas strong { font-size: 1.02rem; font-weight: 600; }
.pantalla-notas span { color: var(--muted); font-size: .95rem; }
@media (min-width: 760px) { .pantalla-notas { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* ================= Funciones (índice) ================= */
.funciones { background: var(--paper); border-block: 1px solid var(--line); }
.funciones-in, .preguntas-in { display: grid; gap: 8px; }
.indice { display: grid; gap: 40px; }
.indice-grupo h3 { font-size: .98rem; font-weight: 600; letter-spacing: -.005em; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.indice-grupo li { padding: 16px 0 17px; border-bottom: 1px solid var(--line); }
.ind-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.ind-t strong { font-size: 1.06rem; font-weight: 600; letter-spacing: -.01em; }
.ind-lider { display: none; }
.ind-ref { font-size: .8rem; color: var(--accent-hover); white-space: nowrap; }
.ind-d { display: block; margin-top: 5px; color: var(--muted); font-size: .96rem; max-width: 64ch; }
@media (min-width: 640px) {
  .ind-t { flex-wrap: nowrap; gap: 0; }
  .ind-lider { display: block; flex: 1; min-width: 24px; margin: 0 12px; border-bottom: 1px dotted var(--line-2); transform: translateY(-5px); }
}
@media (min-width: 1040px) {
  .funciones-in, .preguntas-in { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
  .sec-cab-fija { position: sticky; top: calc(var(--hd) + 32px); margin-bottom: 0; }
  .indice { grid-template-columns: 1fr; }
}

/* ================= Pasos ================= */
.pasos { display: grid; gap: 40px; counter-reset: paso; }
.pasos li { position: relative; padding-top: 52px; display: grid; gap: 8px; align-content: start; }
.paso-n { position: absolute; top: 0; left: 0; width: 34px; height: 34px; border-radius: 99px; border: 1px solid var(--ink); background: var(--bg); display: grid; place-items: center; font-size: .92rem; font-weight: 500; }
.pasos li:last-child .paso-n { background: var(--ink); color: #fff; }
.pasos h3 { font-size: 1.22rem; }
.pasos p { color: var(--muted); max-width: 46ch; }
.paso-demo { margin-top: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 8px; box-shadow: var(--shadow); }
.pd-campo { display: grid; gap: 1px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; font-size: .86rem; }
.pd-campo small { font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pd-emp { display: flex; align-items: center; gap: 10px; padding: 4px 2px; font-size: .86rem; }
.pd-emp strong { display: block; font-weight: 600; }
.pd-emp small { display: block; color: var(--muted); font-size: .78rem; }
.pd-av { width: 32px; height: 32px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: .76rem; flex: none; }
.pd-ok { display: flex; align-items: center; gap: 8px; padding: 6px 2px; font-size: .9rem; font-weight: 500; }
.pd-ok .ico { color: var(--ok); width: 19px; height: 19px; }
@media (min-width: 860px) {
  .pasos { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .pasos li::before { content: ""; position: absolute; top: 17px; left: 46px; right: -20px; border-top: 1px solid var(--line-2); }
  .pasos li:last-child::before { display: none; }
}

/* ================= Bandas oscuras ================= */
.banda { background: var(--navy); color: var(--navy-txt); padding-block: clamp(72px, 9vw, 120px); }
.banda h2 { color: #fff; }
.estudios-in { display: grid; gap: 48px; align-items: center; }
.estudios-txt p { margin-top: 16px; font-size: 1.06rem; max-width: 56ch; }
.lista-check { margin: 26px 0 30px; display: grid; gap: 12px; }
.lista-check li { display: flex; gap: 10px; align-items: flex-start; }
.lista-check .ico { color: var(--accent-claro); width: 19px; height: 19px; margin-top: 3px; }
.banda .lista-check li { color: #E6ECF5; }
@media (min-width: 1040px) { .estudios-in { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; } }

.emps { background: var(--paper); color: var(--ink); border-radius: 12px; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .6); overflow: hidden; font-size: 14px; }
.emps-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 600; }
.emps-head > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.emps-head .ico { color: var(--muted); width: 18px; height: 18px; }
.emps-per { font-size: .8rem; color: var(--muted); font-weight: 500; border: 1px solid var(--line); border-radius: 7px; padding: 4px 9px; }
.emps li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.emps-ini { width: 34px; height: 34px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; font-weight: 700; color: var(--ink-2); flex: none; }
.emps-n { flex: 1; min-width: 0; }
.emps-n strong { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emps-n small { display: block; color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emps-est { font-size: .76rem; font-weight: 600; padding: 4px 9px; border-radius: 99px; white-space: nowrap; border: 1px solid; flex: none; }
.emps-ok { background: var(--ok-soft); color: var(--ok); border-color: var(--ok-line); }
.emps-info { background: var(--accent-soft); color: var(--accent-hover); border-color: var(--accent-line); }
.emps-warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
.emps-neutro { background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.emps-pie { padding: 10px 16px; font-size: .76rem; color: var(--faint); background: var(--surface-2); }
@media (max-width: 420px) { .emps-est { display: none; } }

/* ================= Calculadoras (enlaces) ================= */
.calcs { display: grid; gap: 16px; }
.calc-link { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease); }
.calc-link strong { font-size: 1.14rem; font-weight: 600; letter-spacing: -.01em; }
.calc-link > span:not(.calc-ir) { color: var(--muted); font-size: .95rem; }
.formula { display: block; margin: 10px 0 6px; padding: 9px 11px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); font-size: .8rem; color: var(--ink-2); line-height: 1.45; }
.calc-ir { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: .95rem; }
.calc-ir .ico { transition: transform .2s var(--ease); }
.calc-link:hover { border-color: var(--ink); box-shadow: var(--shadow); transform: translateY(-2px); }
.calc-link:hover .calc-ir .ico { transform: translateX(3px); }
@media (min-width: 860px) { .calcs { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ================= Precios ================= */
.precios { background: var(--paper); border-top: 1px solid var(--line); }
.planes { display: grid; gap: 16px; }
.plan { display: flex; flex-direction: column; padding: 28px 24px 24px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper); }
.plan-dest { border-color: var(--ink); box-shadow: var(--shadow-papel); }
.plan h3 { font-size: 1.22rem; }
.plan-para { margin-top: 6px; color: var(--muted); font-size: .94rem; min-height: 3em; }
.plan-precio { margin-top: 22px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.plan-precio .mono { font-size: 2.15rem; font-weight: 500; letter-spacing: -.035em; line-height: 1; }
.plan-precio small { color: var(--muted); font-size: .92rem; }
.plan-anual { margin-top: 8px; font-size: .88rem; color: var(--muted); }
.plan-anual .mono { color: var(--ink-2); }
.plan-lim { margin: 22px 0 26px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 11px; font-size: .95rem; }
.plan-lim li { display: flex; gap: 10px; align-items: center; }
.plan-lim .ico { width: 18px; height: 18px; color: var(--muted); }
.plan-lim strong { font-weight: 600; }
.plan .btn { margin-top: auto; }
.precios-nota { margin-top: 24px; text-align: center; color: var(--muted); font-size: .94rem; }
.precios-nota a { color: var(--accent); font-weight: 600; }
.compromisos { margin-top: clamp(56px, 7vw, 88px); display: grid; gap: 28px; }
.compromisos li { display: grid; gap: 6px; padding-top: 16px; border-top: 2px solid var(--ink); }
.compromisos strong { font-size: 1.02rem; font-weight: 600; }
.compromisos span { color: var(--muted); font-size: .94rem; }
@media (min-width: 640px) { .compromisos { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (min-width: 900px) { .planes { grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; } }
@media (min-width: 1120px) { .compromisos { grid-template-columns: repeat(4, 1fr); } }

/* ================= Preguntas ================= */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 1.06rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.4; }
.faq-ico { width: 20px; height: 20px; margin-top: 2px; color: var(--muted); transition: transform .25s var(--ease), color .2s; }
.faq details[open] .faq-ico { transform: rotate(45deg); color: var(--ink); }
.faq summary:hover h3 { color: var(--accent-hover); }
.faq-r { padding: 0 36px 22px 0; color: var(--ink-2); max-width: 70ch; }
.faq-r p + p { margin-top: 10px; }
.faq-r a { color: var(--accent); font-weight: 500; text-underline-offset: 3px; }

/* ================= Cierre ================= */
.cierre { background: var(--navy); color: var(--navy-txt); padding-block: clamp(64px, 8vw, 104px); }
.cierre-in { display: grid; gap: 28px; }
.cierre h2 { color: #fff; max-width: 22ch; }
.cierre p { margin-top: 14px; max-width: 56ch; font-size: 1.04rem; }
.cierre-acc { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .cierre-acc .btn { width: 100%; } }
@media (min-width: 960px) { .cierre-in { grid-template-columns: 1fr auto; align-items: end; gap: 48px; } }

/* ================= Pie ================= */
.pie { background: var(--paper); border-top: 1px solid var(--line); padding-top: 56px; font-size: .94rem; }
.pie-grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
.pie-marca { grid-column: 1 / -1; }
.pie-marca p { margin-top: 14px; color: var(--muted); max-width: 46ch; }
.pie-contacto { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pie-contacto a { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-weight: 500; text-decoration: none; }
.pie-contacto a:hover { color: var(--accent); }
.pie-col { display: grid; gap: 10px; align-content: start; }
.pie-col h2 { font-size: .9rem; font-weight: 600; letter-spacing: -.005em; margin-bottom: 4px; }
.pie-col a { color: var(--muted); text-decoration: none; }
.pie-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.pie-base { margin-top: 48px; padding-block: 20px 96px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--muted); font-size: .84rem; }
.pie-min { padding: 0; border-top: 1px solid var(--line); background: var(--paper); }
.pie-min-in { padding-block: 18px 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; color: var(--muted); font-size: .86rem; }
.pie-min a { color: var(--ink-2); }
@media (min-width: 900px) {
  .pie-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
  .pie-marca { grid-column: auto; }
}

/* ================= WhatsApp flotante ================= */
.wa {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 55;
  width: 56px; height: 56px; border-radius: 99px; background: var(--wa); color: #fff; display: grid; place-items: center;
  box-shadow: 0 2px 4px rgb(14 27 46 / .16), 0 14px 30px -10px rgb(14 27 46 / .5); text-decoration: none; font-weight: 600;
  transition: transform .2s var(--ease), background-color .2s;
}
.wa .ico { width: 30px; height: 30px; }
.wa span { display: none; }
.wa:hover { transform: translateY(-2px); background: #189A4A; }
@media (min-width: 960px) {
  .wa { width: auto; height: 52px; padding: 0 20px 0 16px; display: inline-flex; gap: 10px; right: 24px; bottom: 24px; }
  .wa .ico { width: 26px; height: 26px; }
  .wa span { display: inline; }
}

/* ================= Páginas internas ================= */
.pag-cab { padding: 28px 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); background:
    repeating-linear-gradient(to right, rgb(14 27 46 / .04) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(to bottom, rgb(14 27 46 / .04) 0 1px, transparent 1px 40px), var(--bg); }
.pag-cab h1 { margin-top: 22px; font-size: clamp(2rem, 1.35rem + 2.5vw, 3.2rem); letter-spacing: -.03em; line-height: 1.06; max-width: 22ch; }
.pag-cab .lead { margin-top: 18px; max-width: 64ch; }
.pag-cab .acciones { margin-top: 24px; }
.migas ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .86rem; color: var(--muted); }
.migas li + li::before { content: "/"; margin: 0 8px; color: var(--faint); }
.migas a { color: var(--muted); text-decoration: none; }
.migas a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.migas [aria-current] { color: var(--ink-2); }

.pag-cuerpo { padding-block: clamp(48px, 6vw, 80px); display: grid; gap: 48px; }
@media (min-width: 1040px) { .pag-cuerpo { grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; align-items: start; } }
.lateral { display: grid; gap: 16px; }
@media (min-width: 1040px) { .lateral { position: sticky; top: calc(var(--hd) + 24px); } }
.lat-cta { background: var(--navy); color: var(--navy-txt); border-radius: 12px; padding: 24px; display: grid; gap: 12px; }
.lat-cta strong { color: #fff; font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.lat-cta p { font-size: .93rem; }
.lat-cta .btn { margin-top: 6px; }
.lat-indice { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.lat-indice > span { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.lat-indice a { display: block; padding: 6px 0; color: var(--muted); text-decoration: none; font-size: .92rem; border-top: 1px solid var(--line); }
.lat-indice a:hover { color: var(--accent); }

.prosa { max-width: 74ch; color: var(--ink-2); font-size: 1.04rem; line-height: 1.72; }
.prosa > * + * { margin-top: 18px; }
.prosa h2 { margin-top: 56px; font-size: clamp(1.45rem, 1.2rem + .9vw, 1.9rem); color: var(--ink); line-height: 1.2; scroll-margin-top: calc(var(--hd) + 24px); }
.prosa h2:first-child { margin-top: 0; }
.prosa h3 { margin-top: 34px; font-size: 1.16rem; color: var(--ink); line-height: 1.3; }
.prosa h2 + *, .prosa h3 + * { margin-top: 12px; }
.prosa ul, .prosa ol { padding-left: 0; display: grid; gap: 8px; }
.prosa ul li { position: relative; padding-left: 22px; }
.prosa ul li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.prosa ol { counter-reset: n; }
.prosa ol li { position: relative; padding-left: 38px; counter-increment: n; }
.prosa ol li::before { content: counter(n); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 99px; border: 1px solid var(--ink); display: grid; place-items: center; font: 500 .8rem/1 var(--mono); color: var(--ink); }
.prosa strong { color: var(--ink); font-weight: 600; }
.prosa a { color: var(--accent); font-weight: 500; text-underline-offset: 3px; }
.prosa code { font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.aviso { display: flex; gap: 12px; padding: 14px 16px; border-radius: 10px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--ink-2); font-size: .96rem; line-height: 1.55; }
.aviso .ico { color: var(--accent); width: 20px; height: 20px; margin-top: 2px; }
.aviso-warn { background: var(--warn-soft); border-color: var(--warn-line); }
.aviso-warn .ico { color: var(--warn); }
.tabla-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.tabla { width: 100%; border-collapse: collapse; font-size: .93rem; line-height: 1.45; }
.tabla th { text-align: left; font-size: .76rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tabla td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla td:first-child { font-weight: 600; color: var(--ink); }
.prosa .faq { margin-top: 20px; }
.prosa .rc { margin-top: 28px; }

.rel { padding-block: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line); }
.rel h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); margin-bottom: 24px; }
.rel-grid { display: grid; gap: 12px; }
.rel-item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: border-color .2s; }
.rel-item > .ico:first-child { width: 22px; height: 22px; color: var(--accent); }
.rel-item span { flex: 1; min-width: 0; }
.rel-item strong { display: block; font-weight: 600; }
.rel-item small { display: block; color: var(--muted); font-size: .86rem; }
.rel-flecha { color: var(--faint); transition: transform .2s var(--ease), color .2s; }
.rel-item:hover { border-color: var(--ink); }
.rel-item:hover .rel-flecha { color: var(--ink); transform: translateX(3px); }
@media (min-width: 720px) { .rel-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .rel-grid { grid-template-columns: repeat(3, 1fr); } }

/* ================= Formularios ================= */
.campo { display: grid; gap: 6px; align-content: start; min-width: 0; }
.campo > label, .campo > .etq { font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.campo .ayuda, .ayuda { font-size: .82rem; color: var(--muted); line-height: 1.45; }
.campo .opcional { font-weight: 400; color: var(--muted); }
.input, .select {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--paper);
  color: var(--ink); font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235B687D' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
.input::placeholder { color: #8C97A8; }
.input:hover, .select:hover { border-color: #A1ABBA; }
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgb(31 95 209 / .16); }
.input[aria-invalid="true"] { border-color: var(--bad); }
.input.mono { font-family: var(--mono); font-size: 15.5px; }
.input-pre { display: flex; }
.input-pre > span { display: grid; place-items: center; padding: 0 13px; border: 1px solid var(--line-2); border-right: 0; border-radius: 8px 0 0 8px; background: var(--surface-2); color: var(--muted); font-weight: 600; }
.input-pre .input { border-radius: 0 8px 8px 0; }
.input-pos { display: flex; }
.input-pos .input { border-radius: 8px 0 0 8px; }
.input-pos > span { display: grid; place-items: center; padding: 0 13px; border: 1px solid var(--line-2); border-left: 0; border-radius: 0 8px 8px 0; background: var(--surface-2); color: var(--muted); font-weight: 600; }
.pass { position: relative; }
.pass .input { padding-right: 52px; }
.pass-ver { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; border-radius: 6px; background: none; display: grid; place-items: center; color: var(--muted); }
.pass-ver:hover { color: var(--ink); background: var(--surface-2); }
.pass-ver .ico { width: 20px; height: 20px; }
.pass-ver .ico + .ico, .pass-ver[aria-pressed="true"] .ico:first-child { display: none; }
.pass-ver[aria-pressed="true"] .ico + .ico { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .93rem; line-height: 1.5; color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.check a { color: var(--accent); font-weight: 500; }
.opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opcion { position: relative; display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; background: var(--paper); transition: border-color .15s, background-color .15s, box-shadow .15s; }
.opcion input { position: absolute; opacity: 0; pointer-events: none; }
.opcion strong { font-size: .94rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.opcion strong .ico { width: 18px; height: 18px; color: var(--muted); }
.opcion small { font-size: .8rem; color: var(--muted); line-height: 1.4; }
.opcion:hover { border-color: #A1ABBA; }
.opcion:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.opcion:has(input:checked) strong .ico { color: var(--accent); }
.opcion:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.seg { display: inline-flex; padding: 3px; background: var(--surface-3); border-radius: 10px; gap: 2px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 8px; font-weight: 600; font-size: .9rem; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg input:checked + span { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgb(14 27 46 / .12); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 1px; }
.grid-2 { display: grid; gap: 16px; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.pila { display: grid; gap: 18px; }
.alerta { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; border: 1px solid; font-size: .94rem; line-height: 1.5; }
.alerta .ico { width: 20px; height: 20px; margin-top: 1px; }
.alerta a { font-weight: 600; color: inherit; }
.alerta-bad { background: var(--bad-soft); border-color: var(--bad-line); color: var(--bad); }
.alerta-ok { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
.alerta-info { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-hover); }
.err-campo { color: var(--bad); font-size: .84rem; font-weight: 500; }

/* ================= Cuenta (login, registro...) ================= */
.auth { display: grid; min-height: calc(100dvh - var(--hd)); }
.auth-form { padding: 40px var(--gutter) 64px; display: grid; justify-items: center; align-content: start; }
.auth-caja { width: 100%; max-width: 440px; }
.auth-caja h1 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.2rem); letter-spacing: -.028em; }
.auth-caja > p { margin-top: 10px; color: var(--muted); }
.auth-caja form { margin-top: 28px; }
.auth-caja .alerta { margin-top: 22px; }
.auth-alt { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .94rem; color: var(--muted); }
.auth-alt a { color: var(--accent); font-weight: 600; }
.auth-fila { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .9rem; }
.auth-fila a { color: var(--accent); font-weight: 500; }
.auth-lado { display: none; background: var(--navy); color: var(--navy-txt); padding: 56px 48px; position: relative; overflow: hidden; }
.auth-lado-in { max-width: 460px; position: relative; z-index: 1; }
.auth-lado h2 { color: #fff; font-size: 1.7rem; letter-spacing: -.025em; }
.auth-lado p { margin-top: 12px; }
.auth-lado .lista-check { margin-bottom: 0; }
.auth-lado .lista-check li { color: #E6ECF5; }
.auth-lado .rc { margin-top: 40px; width: 600px; max-width: none; transform: rotate(-1.5deg); transform-origin: top left; }
.auth-lado .rc figcaption { color: var(--navy-dim); }
.auth-lado .rc-papel { box-shadow: 0 40px 80px -30px rgb(0 0 0 / .7); }
.pg-auth .pie-min { background: var(--paper); }
@media (min-width: 1040px) {
  .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .auth-form { padding-top: 72px; }
  .auth-lado { display: block; }
}
.auth-solo { min-height: calc(100dvh - var(--hd) - 70px); display: grid; justify-items: center; align-content: start; padding: 56px var(--gutter) 72px; }
.auth-solo .auth-caja { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 32px 28px; box-shadow: var(--shadow); }
@media (max-width: 479px) { .auth-solo .auth-caja { padding: 26px 18px; } }

/* ================= Calculadoras ================= */
.calc { display: grid; gap: 24px; align-items: start; }
.calc-form { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 24px 20px; box-shadow: var(--shadow); }
.calc-form h2 { font-size: 1.15rem; margin-bottom: 18px; letter-spacing: -.01em; }
.calc-form .pila + .pila { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.calc-form details { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.calc-form summary { cursor: pointer; font-weight: 600; font-size: .93rem; color: var(--ink-2); list-style: none; display: flex; align-items: center; gap: 8px; }
.calc-form summary::-webkit-details-marker { display: none; }
.calc-form summary .ico { transition: transform .2s var(--ease); color: var(--muted); }
.calc-form details[open] summary .ico { transform: rotate(180deg); }
.calc-form details .pila { margin-top: 16px; }
.calc-res { min-width: 0; }
.res { background: var(--paper); border: 1px solid var(--line-2); border-radius: 6px; box-shadow: var(--shadow-papel); padding: 22px 20px 20px; }
.res-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 3px double var(--line-2); }
.res-cab h2 { font-size: 1.05rem; letter-spacing: -.01em; }
.res-cab span { font-size: .78rem; color: var(--muted); }
.res-vacio { padding: 28px 4px 12px; color: var(--muted); font-size: .95rem; }
.res-grupo { margin-top: 14px; }
.res-grupo > span { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.res-l { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.res-l > span:first-child { min-width: 0; }
.res-l small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.35; }
.res-l .lider { flex: 1; min-width: 12px; border-bottom: 1px dotted var(--line-2); transform: translateY(-4px); }
.res-l .mono { white-space: nowrap; font-size: .9rem; }
.res-l.menos .mono { color: var(--bad); }
.res-total { margin-top: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; }
.res-total span { font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.res-total strong { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.res-total.res-total-sec { margin-top: 8px; background: none; }
.res-total.res-total-sec strong { font-size: 1.1rem; }
.res-calc { margin-top: 14px; font-size: .84rem; color: var(--muted); line-height: 1.55; }
.res-calc code { display: block; margin-top: 6px; padding: 8px 10px; background: var(--surface-2); border-radius: 6px; color: var(--ink-2); font-size: .8rem; overflow-wrap: anywhere; }
.res-nota { margin-top: 12px; font-size: .82rem; color: var(--muted); line-height: 1.5; }
.res-cta { margin-top: 18px; padding: 16px; border-radius: 10px; background: var(--navy); color: var(--navy-txt); display: grid; gap: 10px; font-size: .9rem; }
.res-cta strong { color: #fff; font-size: 1rem; font-weight: 600; line-height: 1.35; }
.res.cambio { animation: res-pulso .5s var(--ease); }
@keyframes res-pulso { from { box-shadow: 0 0 0 3px rgb(31 95 209 / .25), var(--shadow-papel); } }
@media (min-width: 640px) { .calc-form { padding: 28px; } .res { padding: 26px 26px 22px; } }
@media (min-width: 1040px) {
  .calc { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; }
  .calc-res { position: sticky; top: calc(var(--hd) + 24px); }
}
.calc-sec { padding-block: clamp(32px, 4vw, 48px) 0; }

/* ================= Legales y 404 ================= */
.legal { padding-block: clamp(40px, 5vw, 72px) clamp(64px, 8vw, 104px); }
.legal h1 { margin-top: 22px; font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); letter-spacing: -.03em; }
.legal .prosa { margin-top: 32px; }
.legal .prosa h2 { font-size: 1.3rem; margin-top: 40px; }
.legal-fecha { margin-top: 10px; color: var(--muted); font-size: .9rem; }
.nf { padding-block: clamp(72px, 12vw, 140px); text-align: left; }
.nf .mono { font-size: .9rem; color: var(--muted); }
.nf h1 { margin-top: 12px; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); letter-spacing: -.03em; max-width: 20ch; }
.nf p { margin-top: 14px; color: var(--muted); max-width: 56ch; }
.nf .rel-grid { margin-top: 36px; }

@media print {
  .hd, .wa, .pie, .cierre, .lateral, .rel { display: none !important; }
  body { background: #fff; }
}

/* Precios: dos planes principales y tablas de ampliaciones */
.planes-2 { max-width: 880px; margin-inline: auto; }
@media (min-width: 900px) { .planes-2 { grid-template-columns: 1fr 1fr; } }
.ampliaciones { max-width: 880px; margin: 28px auto 0; display: grid; gap: 20px; padding: 24px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper); }
.amp-cab h3 { font-size: 1.08rem; }
.amp-cab p { margin-top: 4px; color: var(--muted); font-size: .94rem; }
.amp-grupos { display: grid; gap: 24px; }
@media (min-width: 760px) { .amp-grupos { grid-template-columns: 1fr 1fr; gap: 32px; } .ampliaciones { padding: 28px 32px; } }
.amp-tabla { width: 100%; border-collapse: collapse; font-size: .93rem; }
.amp-tabla caption { text-align: left; font-weight: 600; padding-bottom: 10px; }
.amp-tabla th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 0 0 8px; border-bottom: 1px solid var(--line); }
.amp-tabla th:last-child, .amp-tabla td:last-child { text-align: right; }
.amp-tabla td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.amp-tabla tr:last-child td { border-bottom: 0; }
.amp-tabla .amp-base td { font-weight: 600; }
