/* =============================================================================
   CuántoCobraré — styles.css
   1 Tokens · 2 Reset · 3 Utilidades · 4 Cabecera y hero · 5 Calculadora
   6 Resultado · 7 Botones y anuncios · 8 Secciones · 9 Pie, aviso y pop-up
   10 Responsive · 11 Impresión · 12 Reduced motion
   ========================================================================== */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  color-scheme: light dark;

  --bg:          #f4f5fb;
  --surface:     #ffffff;
  --surface-2:   #eef0f9;
  --ink:         #151a33;
  --ink-2:       #3a4160;
  --muted:       #6b7392;
  --line:        #e1e4f0;
  --line-strong: #c9cfe3;

  --accent:      #4338ca;
  --accent-2:    #6d5df6;
  --accent-ink:  #ffffff;
  --accent-soft: #edebfd;

  --ok:          #0f9d6e;
  --ok-soft:     #e3f6ee;
  --warn:        #a15c07;
  --warn-soft:   #fdf3e3;
  --warn-line:   #f0d6ab;

  --c-neto:        #0f9d6e;
  --c-comunes:     #4338ca;
  --c-desempleo:   #7c6cf0;
  --c-formacion:   #a99cf7;
  --c-mei:         #cfc9fb;
  --c-solidaridad: #64748b;
  --c-irpf:        #e08420;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Manrope", "Inter", system-ui, sans-serif;

  --radius:   14px;
  --radius-s: 9px;
  --radius-l: 22px;

  --shadow-s: 0 1px 2px rgba(21,26,51,.06), 0 1px 3px rgba(21,26,51,.05);
  --shadow-m: 0 4px 14px rgba(21,26,51,.07), 0 14px 34px rgba(21,26,51,.06);
  --shadow-l: 0 20px 50px rgba(21,26,51,.16);

  --gutter: clamp(1rem, 4vw, 2rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #101426;
    --surface:     #171c33;
    --surface-2:   #1e2440;
    --ink:         #eef1fb;
    --ink-2:       #c3c9e0;
    --muted:       #949cbb;
    --line:        #2a3153;
    --line-strong: #3a4368;

    --accent:      #8b7dfb;
    --accent-2:    #a99cf7;
    --accent-ink:  #10132a;
    --accent-soft: #232a4d;

    --ok:          #34d399;
    --ok-soft:     #16302a;
    --warn:        #f0b357;
    --warn-soft:   #2c2416;
    --warn-line:   #514027;

    --c-neto:        #34d399;
    --c-comunes:     #8b7dfb;
    --c-desempleo:   #a99cf7;
    --c-formacion:   #c4bbfa;
    --c-mei:         #ddd8fc;
    --c-solidaridad: #94a3b8;
    --c-irpf:        #f0a94f;

    --shadow-s: 0 1px 2px rgba(0,0,0,.35);
    --shadow-m: 0 6px 18px rgba(0,0,0,.4);
    --shadow-l: 0 22px 54px rgba(0,0,0,.5);
  }
}

/* =============================================================
   2. Reset y base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.72rem, 5.2vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 700; }
h3 { font-size: clamp(1.08rem, 2.2vw, 1.3rem); font-weight: 700; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 5px; }

/* =============================================================
   3. Utilidades
   ============================================================= */
.contenedor { width: min(1140px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.contenedor--texto { width: min(760px, 100%); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 999;
  padding: .6rem 1rem; background: var(--accent); color: var(--accent-ink);
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   4. Cabecera y hero
   ============================================================= */
.cabecera {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(4px)) { .cabecera { background: var(--bg); } }
.cabecera__fila { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 62px; }
.marca { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 700; font-size: 1.06rem; }
.marca b { color: var(--accent); font-weight: 800; }
.marca__icono { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; }
.cabecera__nav { display: flex; gap: 1.15rem; font-size: .92rem; color: var(--ink-2); font-weight: 500; }
.cabecera__nav a { padding: .3rem 0; border-bottom: 2px solid transparent; transition: border-color .2s var(--ease-out), color .2s; }
.cabecera__nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.hero { padding: clamp(1rem, 4vw, 3rem) 0 clamp(.75rem, 2vw, 1.2rem); text-align: center; }
.hero__sello {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .01em;
  color: var(--accent); background: var(--accent-soft);
  padding: .3rem .75rem; border-radius: 999px; margin-bottom: clamp(.55rem, 1.6vw, .9rem);
}
.hero__sub { max-width: 62ch; margin: clamp(.55rem, 1.6vw, .9rem) auto 0; color: var(--ink-2); font-size: clamp(.95rem, 2.1vw, 1.1rem); }

/* =============================================================
   5. La calculadora
   ============================================================= */
.tool { padding-bottom: .5rem; }
.tool-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
  overflow: hidden;
}

.modos { display: flex; gap: .35rem; padding: .5rem; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.modo {
  flex: 1; padding: .62rem .8rem; border-radius: var(--radius-s);
  font-weight: 600; font-size: .93rem; color: var(--ink-2);
  transition: background .18s var(--ease-out), color .18s, box-shadow .18s;
}
.modo:hover { color: var(--ink); }
.modo.is-activa { background: var(--surface); color: var(--accent); box-shadow: var(--shadow-s); }

.form { padding: clamp(.95rem, 3vw, 1.7rem); display: grid; gap: clamp(.95rem, 2.5vw, 1.15rem); }

.campo { display: grid; gap: .38rem; align-content: start; }
.campo label, .campo__etiqueta { font-size: .87rem; font-weight: 600; color: var(--ink-2); }
.campo__ayuda { font-size: .8rem; color: var(--muted); line-height: 1.45; }

.input-euro { position: relative; }
.input-euro input {
  width: 100%; padding: .82rem 2.6rem .82rem .9rem;
  font-family: var(--display); font-size: clamp(1.35rem, 3.6vw, 1.75rem); font-weight: 700;
  color: var(--ink); background: var(--surface-2);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color .18s, box-shadow .18s;
}
.input-euro input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input-euro__moneda {
  position: absolute; right: .95rem; top: 50%; transform: translateY(-50%);
  font-family: var(--display); font-size: 1.2rem; font-weight: 700; color: var(--muted); pointer-events: none;
}
.campo--principal { gap: .5rem; }

.rango { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.rango::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--surface); box-shadow: var(--shadow-s); cursor: pointer;
}
.rango::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: var(--accent);
  border: 3px solid var(--surface); box-shadow: var(--shadow-s); cursor: pointer;
}

.campos-fila { display: grid; gap: 1.15rem; }
.campos-rejilla { display: grid; gap: 1rem; padding-top: 1rem; }

select, input[type="number"] {
  width: 100%; padding: .66rem .8rem; font: inherit; font-size: .97rem;
  color: var(--ink); background: var(--surface-2);
  border: 1px solid var(--line-strong); border-radius: var(--radius-s);
}
select:focus, input[type="number"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.segmentado { display: flex; gap: .3rem; padding: .28rem; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius-s); }
.segmentado button {
  flex: 1; padding: .48rem .5rem; border-radius: 7px; font-size: .92rem; font-weight: 600; color: var(--ink-2);
  transition: background .18s var(--ease-out), color .18s;
}
.segmentado button.is-activa { background: var(--accent); color: var(--accent-ink); }

.mas-datos { border-top: 1px dashed var(--line-strong); padding-top: 1rem; }
.mas-datos > summary {
  cursor: pointer; font-weight: 600; font-size: .93rem; color: var(--accent);
  display: flex; flex-wrap: wrap; gap: .45rem; align-items: baseline; list-style: none;
}
.mas-datos > summary::-webkit-details-marker { display: none; }
.mas-datos > summary::before { content: "＋"; font-weight: 700; }
.mas-datos[open] > summary::before { content: "－"; }
.mas-datos > summary em { font-style: normal; font-weight: 400; font-size: .84rem; color: var(--muted); }

.campo--checks { gap: .6rem; }
.check { display: flex; gap: .55rem; align-items: flex-start; font-size: .89rem; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: .16rem; accent-color: var(--accent); flex: none; }
.check em { font-style: normal; color: var(--muted); }

/* =============================================================
   6. El resultado
   ============================================================= */
.resultado {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 55%);
  padding: clamp(1.1rem, 3vw, 1.7rem);
  display: grid; gap: 1.4rem;
}
.resultado__titular { text-align: center; }
.resultado__etiqueta { font-size: .87rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.resultado__cifra {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(2.4rem, 9vw, 3.6rem); color: var(--ok); line-height: 1.05; margin-top: .15rem;
}
.resultado__pie { color: var(--ink-2); font-size: .98rem; }
.resultado__inverso {
  margin-top: .7rem; display: inline-block; padding: .5rem .9rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: .93rem; font-weight: 600;
}
.resultado__grafico { display: grid; gap: 1.1rem; justify-items: center; }

.anillo { width: min(230px, 62vw); height: auto; overflow: visible; }
.anillo__fondo { fill: none; stroke: var(--surface-2); stroke-width: 26; }
.anillo__segmentos circle { fill: none; stroke-width: 26; transition: stroke-dasharray .45s var(--ease-out), stroke-dashoffset .45s var(--ease-out); }
[data-seg="neto"]        { stroke: var(--c-neto); }
[data-seg="comunes"]     { stroke: var(--c-comunes); }
[data-seg="desempleo"]   { stroke: var(--c-desempleo); }
[data-seg="formacion"]   { stroke: var(--c-formacion); }
[data-seg="mei"]         { stroke: var(--c-mei); }
[data-seg="solidaridad"] { stroke: var(--c-solidaridad); }
[data-seg="irpf"]        { stroke: var(--c-irpf); }
.anillo__valor { font-family: var(--display); font-size: 30px; font-weight: 800; fill: var(--ink); }
.anillo__nota { font-size: 12px; fill: var(--muted); letter-spacing: .02em; }

.leyenda { list-style: none; padding: 0; display: grid; gap: .42rem; width: 100%; max-width: 430px; font-size: .91rem; }
.leyenda li { display: grid; grid-template-columns: 12px 1fr auto; gap: .6rem; align-items: baseline; }
.leyenda b { font-variant-numeric: tabular-nums; font-weight: 600; }
.leyenda em { font-style: normal; color: var(--muted); font-size: .84em; }
.punto { width: 11px; height: 11px; border-radius: 3px; background: var(--muted); }
.punto[data-color="neto"]        { background: var(--c-neto); }
.punto[data-color="comunes"]     { background: var(--c-comunes); }
.punto[data-color="desempleo"]   { background: var(--c-desempleo); }
.punto[data-color="formacion"]   { background: var(--c-formacion); }
.punto[data-color="mei"]         { background: var(--c-mei); }
.punto[data-color="solidaridad"] { background: var(--c-solidaridad); }
.punto[data-color="irpf"]        { background: var(--c-irpf); }

.desglose { width: 100%; border-collapse: collapse; font-size: .96rem; }
.desglose th { text-align: left; font-weight: 500; color: var(--ink-2); padding: .58rem 0; border-bottom: 1px solid var(--line); }
.desglose td { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; padding: .58rem 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.desglose--resta td { color: var(--warn); }
.desglose--total th, .desglose--total td { font-weight: 700; color: var(--ink); border-bottom: 0; padding-top: .75rem; }
.desglose--total:first-of-type th { border-top: 2px solid var(--line-strong); }
.chip {
  display: inline-block; margin-left: .4rem; padding: .1rem .45rem; border-radius: 999px;
  background: var(--warn-soft); color: var(--warn); font-size: .74rem; font-weight: 600; white-space: nowrap;
}
.privacidad-badge { margin-top: .9rem; font-size: .85rem; color: var(--muted); text-align: center; }

.acciones { display: grid; gap: .6rem; margin-top: 1.1rem; }

.empresa { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.empresa h3 { margin-bottom: .3rem; }
.empresa__intro { font-size: .92rem; color: var(--ink-2); margin-bottom: .8rem; }
.empresa__lista { list-style: none; padding: 0; display: grid; gap: .35rem; font-size: .93rem; }
.empresa__lista li { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .35rem; border-bottom: 1px dashed var(--line); }
.empresa__lista b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.empresa__lista em { font-style: normal; color: var(--muted); font-size: .85em; }
.empresa__total { margin-top: .85rem; font-family: var(--display); font-size: 1.12rem; font-weight: 700; }
.empresa__total span { font-family: var(--sans); font-size: .9rem; font-weight: 500; color: var(--muted); }
.empresa__nota { margin-top: .5rem; font-size: .83rem; color: var(--muted); }

.aviso {
  font-size: .87rem; line-height: 1.5; padding: .85rem 1rem; border-radius: var(--radius-s);
  background: var(--warn-soft); border: 1px solid var(--warn-line); color: var(--ink-2);
}
.aviso--js { background: var(--accent-soft); border-color: var(--accent); }

/* =============================================================
   7. Botones y huecos de anuncios
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 1.3rem; border-radius: var(--radius-s);
  font-weight: 600; font-size: .97rem; text-align: center;
  transition: transform .18s var(--ease-out), box-shadow .18s, background .18s;
}
.btn--principal { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-s); }
.btn--principal:hover { transform: translateY(-1px); box-shadow: var(--shadow-m); }
.btn--secundario { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.btn--secundario:hover { border-color: var(--accent); color: var(--accent); }

.ad-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
  margin: clamp(1.4rem, 4vw, 2.4rem) auto;
  border: 1px dashed var(--line-strong); border-radius: var(--radius-s);
  background: var(--surface-2); color: var(--muted);
  width: 100%;
}
.ad-slot__label { font-size: .72rem; font-weight: 700; letter-spacing: .16em; }
.ad-slot__size { font-size: .68rem; opacity: .75; }
.ad-slot--leaderboard { max-width: 728px; min-height: 90px; }
.ad-slot--rect { max-width: 336px; min-height: 280px; }
.ad-slot--billboard { max-width: 970px; min-height: 200px; }
.ad-slot--modal { max-width: 336px; min-height: 200px; margin: 1rem auto; }

/* =============================================================
   8. Secciones de contenido
   ============================================================= */
.pasos, .comparativa, .articulo, .faq { padding: clamp(1.8rem, 5vw, 3.2rem) 0; }
.pasos { background: var(--surface); border-block: 1px solid var(--line); }
.seccion__intro { color: var(--ink-2); margin-top: .6rem; max-width: 68ch; }

.pasos__lista { list-style: none; padding: 0; display: grid; gap: 1.2rem; margin-top: 1.5rem; counter-reset: paso; }
.pasos__lista li {
  position: relative; padding: 1.2rem 1.2rem 1.2rem 1.2rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
}
.pasos__lista li::before {
  counter-increment: paso; content: counter(paso);
  position: absolute; top: -13px; left: 1.2rem;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--display); font-weight: 700; font-size: .84rem;
  display: grid; place-items: center;
}
.paso__icono { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .6rem; }
.pasos__lista h3 { margin-bottom: .3rem; }
.pasos__lista p { font-size: .93rem; color: var(--ink-2); }

.comparativa__perfil { margin-top: .8rem; font-size: .89rem; color: var(--muted); }
.comparativa__nota { margin-top: .8rem; font-size: .85rem; color: var(--muted); }
.tabla-scroll { overflow-x: auto; margin-top: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tabla { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.tabla th, .tabla td { padding: .62rem .8rem; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tabla thead th { text-align: right; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.tabla thead th:first-child, .tabla tbody th { text-align: left; }
.tabla tbody th { font-weight: 600; }
.tabla tbody tr { border-bottom: 1px solid var(--line); }
.tabla tbody tr:last-child { border-bottom: 0; }
.tabla tbody tr:hover { background: var(--accent-soft); }
.tabla tbody th a { color: var(--accent); border-bottom: 1px dotted currentColor; }
.tabla tbody td strong { color: var(--ok); }

.articulo { background: var(--surface); border-block: 1px solid var(--line); }
.articulo h3 { margin: 1.7rem 0 .5rem; }
.articulo p { margin-bottom: .9rem; color: var(--ink-2); }
.articulo strong { color: var(--ink); }
.lista-conceptos { margin: 0 0 1rem; padding-left: 1.15rem; display: grid; gap: .5rem; color: var(--ink-2); }
.lista-conceptos b { color: var(--ink); }

.faq details {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  margin-top: .7rem; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: .95rem 1.1rem; font-weight: 600; font-size: 1rem;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "▾"; color: var(--accent); transition: transform .2s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details > div { padding: 0 1.1rem 1.1rem; color: var(--ink-2); font-size: .95rem; }
.faq details > div p + p, .faq details > div ul { margin-top: .7rem; }
.faq details ul { padding-left: 1.15rem; display: grid; gap: .3rem; }

/* =============================================================
   9. Pie, aviso de esquina y pop-up
   ============================================================= */
.pie { background: var(--surface); border-top: 1px solid var(--line); padding: 2rem 0 2.4rem; }
.pie__fila { display: grid; gap: .7rem; text-align: center; }
.pie__marca { font-family: var(--display); font-weight: 700; }
.pie__marca b { color: var(--accent); }
.pie__nav { display: flex; flex-wrap: wrap; gap: 1.1rem; justify-content: center; font-size: .92rem; color: var(--ink-2); }
.pie__nav a:hover { color: var(--accent); }
.pie__nota { font-size: .82rem; color: var(--muted); max-width: 65ch; margin-inline: auto; }


.modal {
  border: 1px solid var(--line-strong); border-radius: var(--radius-l);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-l);
  padding: 1.6rem 1.4rem 1.3rem; width: min(400px, calc(100vw - 2rem));
  inset: 0; margin: auto;   /* el reset pone margin:0 y anula el centrado nativo del dialog */

}
.modal::backdrop { background: rgba(12, 16, 34, .55); backdrop-filter: blur(2px); }
.modal__cerrar {
  position: absolute; top: .55rem; right: .7rem;
  width: 30px; height: 30px; border-radius: 50%; font-size: 1.3rem; line-height: 1;
  color: var(--muted); background: var(--surface-2);
}
.modal__cerrar:hover { color: var(--ink); }
.modal__titulo { font-size: 1.2rem; }
.modal__texto { font-size: .9rem; color: var(--muted); margin-top: .3rem; }
.modal__seguir { width: 100%; }

.hoja { display: none; }

/* =============================================================
   10. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .acciones { grid-template-columns: 1fr 1fr; }
  .campos-fila { grid-template-columns: 1fr 1fr; }
  .campos-rejilla { grid-template-columns: 1fr 1fr; }
  .campo--checks { grid-column: 1 / -1; }
}
@media (min-width: 720px) {
  .pasos__lista { grid-template-columns: repeat(3, 1fr); }
  .resultado__grafico { grid-template-columns: auto 1fr; align-items: center; gap: 1.8rem; justify-items: start; }
  .anillo { width: 210px; }
}
@media (min-width: 960px) {
  .resultado {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "titular titular" "grafico tabla" "empresa empresa" "aviso aviso";
    gap: 1.6rem 2.2rem;
  }
  .resultado__titular { grid-area: titular; }
  .resultado__grafico { grid-area: grafico; grid-template-columns: 1fr; justify-items: center; }
  .resultado__tabla { grid-area: tabla; }
  .empresa { grid-area: empresa; }
  .aviso--legal { grid-area: aviso; }
  .anillo { width: 240px; }
  .campos-rejilla { grid-template-columns: repeat(3, 1fr); }
  .tabla { min-width: 0; }
}

/* =============================================================
   11. Impresión — la hoja del desglose
   ============================================================= */
@media print {
  body > *:not(.hoja) { display: none !important; }
  .hoja { display: block; color: #000; background: #fff; font-size: 11pt; }
  .hoja__cab { border-bottom: 2px solid #000; padding-bottom: .4rem; margin-bottom: 1rem; }
  .hoja__cab h2 { font-size: 18pt; }
  .hoja__cab p { font-size: 9.5pt; color: #333; }
  .hoja h3 { font-size: 12pt; margin: 1rem 0 .3rem; }
  .hoja table { width: 100%; border-collapse: collapse; margin-bottom: .5rem; }
  .hoja th { text-align: left; font-weight: 400; padding: .18rem 0; border-bottom: 1px solid #ddd; }
  .hoja td { text-align: right; padding: .18rem 0; border-bottom: 1px solid #ddd; white-space: nowrap; }
  .hoja__pie { margin-top: 1.2rem; font-size: 8.5pt; color: #444; border-top: 1px solid #999; padding-top: .4rem; }
  @page { margin: 16mm; }
}

/* =============================================================
   12. Reduced motion — sólo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anillo__segmentos circle { transition: none; }
}

/* =============================================================
   13. Páginas de sueldo (sueldo-neto-XXXXX-euros.html)
   ============================================================= */
.hero--pagina { text-align: left; padding-bottom: clamp(1rem, 2.5vw, 1.6rem); }
.hero--pagina .hero__sub { margin-inline: 0; max-width: 70ch; }
.hero--pagina h1 { font-size: clamp(1.6rem, 4.4vw, 2.5rem); }

.miga { font-size: .85rem; color: var(--muted); margin-bottom: .7rem; }
.miga a { border-bottom: 1px dotted currentColor; }
.miga a:hover { color: var(--accent); }
.miga span[aria-hidden] { opacity: .6; padding: 0 .15rem; }

.resultado--pagina { gap: 1.4rem; }
.resultado--pagina .acciones { grid-template-columns: 1fr; }
.resultado--pagina .btn { width: 100%; }

.vecinos { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.vecino {
  display: inline-flex; align-items: center; padding: .6rem 1rem;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-s); font-weight: 600; font-size: .93rem;
  transition: border-color .18s var(--ease-out), color .18s;
}
.vecino:hover { border-color: var(--accent); color: var(--accent); }

@media (min-width: 960px) {
  /* estas páginas no llevan anillo ni panel de empresa: una sola columna */
  .resultado--pagina { grid-template-columns: 1fr; grid-template-areas: "titular" "tabla"; }
  .resultado--pagina .resultado__tabla { max-width: 640px; margin-inline: auto; width: 100%; }
  .resultado--pagina .acciones { grid-template-columns: minmax(0, 320px); justify-content: center; }
}

/* Aviso del reparto real en 14 pagas (bajo la cifra grande) */
.resultado__nota {
  margin: .7rem auto 0; max-width: 52ch;
  font-size: .87rem; line-height: 1.5; color: var(--muted);
}
.resultado__nota strong { color: var(--ink-2); }
.resultado__nota a { color: var(--accent); border-bottom: 1px dotted currentColor; }

/* Llamada a la guía larga desde la sección educativa */
.llamada-guia {
  margin-top: 1.4rem; padding: 1rem 1.1rem;
  background: var(--accent-soft); border-left: 3px solid var(--accent);
  border-radius: var(--radius-s); font-size: .93rem;
}
.llamada-guia a { color: var(--accent); }
.llamada-guia a:hover { text-decoration: underline; }

/* Subtítulos dentro de las secciones de tablas (guía y páginas de sueldo) */
.comparativa h3 { margin: 1.7rem 0 .65rem; }
.comparativa .empresa__total { margin-top: 1.1rem; }
