/* Spanish Renta cluster: calculators, hub, guide and service page.
   Design spec: scratch renta/F1_design_spec.md. Base tokens (--primary-color,
   --card-bg, --seo-hero-*, --seo-sh-md) come from includes/tax_landing_styles.html
   and includes/seo_hero_vars.html; the --rc-* tokens below are cluster-only.
   Never name a class *-card or *-table: the .seo-premium layer lifts and stripes those. */

.rc-root {
  --rc-result-bg: #f4f8fc;
  --rc-input-bg: #ffffff;
  --rc-input-border: #cfd8e3;
  --rc-input-hover: #9fb3c8;
  --rc-focus: rgba(46,134,193,.28);
  --rc-seg-bg: #eef2f6;
  --rc-key: #1a5276;
  --rc-link: #2E86C1;
  --rc-prior: #b7d0e5;
  --rc-sale: #2E86C1;
  --rc-sale-2: #7fb3d9;
  --rc-sale-3: #1a5276;
  --rc-track: #e2e9f0;
  --rc-block: #f59e0b;
  --rc-block-tint: rgba(245,158,11,.20);
  --rc-block-ink: #92400e;
  --rc-free-tint: rgba(16,185,129,.16);
  --rc-free-ink: #047857;
  --rc-lost: #c3ccd6;
  --rc-error-ink: #b42318;
  --rc-rule: rgba(15,40,70,.10);
  --rc-btn-ink: #ffffff;
  color: var(--text-primary);
}
html.dark .rc-root, body.dark-theme .rc-root, body.premium-dark-theme .rc-root {
  --primary-color: #3b8fd0;
  --primary-light: rgba(88,166,255,.12);
  --card-bg: var(--premium-bg-secondary, #161b22);
  --card-border: var(--premium-border, #30363d);
  --text-primary: var(--premium-text-primary, #e6edf3);
  --text-secondary: var(--premium-text-secondary, #a8b2bd);
  --text-muted: var(--premium-text-muted, #8b949e);
  --bg-subtle: var(--premium-bg-primary, #0d1117);
  --rc-result-bg: #1c2128;
  --rc-input-bg: #0d1117;
  --rc-input-border: #3d444d;
  --rc-input-hover: #58677a;
  --rc-focus: rgba(88,166,255,.35);
  --rc-seg-bg: #0d1117;
  --rc-key: #79c0ff;
  --rc-link: #79c0ff;
  --rc-prior: #3f6283;
  --rc-sale: #58a6ff;
  --rc-sale-2: #2f6aa3;
  --rc-sale-3: #a5d0ff;
  --rc-track: #2a313b;
  --rc-block-tint: rgba(245,158,11,.24);
  --rc-block-ink: #fbbf24;
  --rc-free-tint: rgba(16,185,129,.14);
  --rc-free-ink: #34d399;
  --rc-lost: #4b5563;
  --rc-error-ink: #ff8a80;
  --rc-rule: rgba(255,255,255,.09);
}

/* ===== Page shell: base_home gives body { padding: 20px } and a 53px fixed navbar ===== */
/* base_home puts the content wrapper 60px from the top (body padding + navbar spacer): 14px more lands the crumbs 21px under the navbar */
/* base_home styles every <main> with height: 100vh; this page grows with its content */
main.rc-page { height: auto; max-width: 1120px; margin: 0 auto; padding: 14px 24px 24px; font-family: Arial, Helvetica, sans-serif; }
.rc-head { margin: 0 0 18px; }
.rc-page .rc-crumbs { display: flex; justify-content: flex-start; align-items: baseline; flex-wrap: wrap; gap: 6px; padding: 0; background: none; border: 0; width: auto; position: static; box-shadow: none; font-size: 12.5px; color: var(--seo-hero-subtitle); margin: 0 0 8px; }
.rc-crumbs a { color: var(--seo-hero-subtitle); text-decoration: none; padding: 0; }
.rc-crumbs a:hover { color: var(--seo-hero-text); text-decoration: underline; }
.rc-page .rc-head h1 { font-size: clamp(25px, 2.5vw, 33px); font-weight: 800; letter-spacing: -.022em; line-height: 1.14; color: var(--seo-hero-text); margin: 0 0 6px; }
.rc-lede { font-size: 16.5px; line-height: 1.55; color: var(--seo-hero-subtitle); margin: 0; max-width: 980px; }
.rc-dateline { font-size: 13px; color: var(--text-secondary); margin: 8px 0 0; }

/* ===== Calculator surface: inputs | answer ===== */
.rc-calc { display: grid; grid-template-columns: minmax(0, 456px) minmax(0, 1fr); background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 18px; box-shadow: var(--seo-sh-md); }
.rc-form { padding: 20px 24px 22px; min-width: 0; margin: 0; }
.rc-out { background: var(--rc-result-bg); border-left: 1px solid var(--card-border); border-radius: 0 18px 0 0; position: relative; min-width: 0; }
.rc-out-inner { padding: 22px 28px 24px; position: sticky; top: 64px; min-height: 420px; }
/* wide variant (FIFO): the operations table needs the full width, the answer sits under it */
.rc-calc.is-wide { grid-template-columns: minmax(0, 1fr); }
.rc-calc.is-wide .rc-out { border-left: 0; border-top: 1px solid var(--card-border); border-radius: 0; }
.rc-calc.is-wide .rc-out-inner { position: static; min-height: 300px; }
.rc-calc.is-wide .rc-busy { border-radius: 0; }

.rc-group { font-size: 15px; font-weight: 700; color: var(--text-primary); margin: 0 0 10px; letter-spacing: -.005em; line-height: 1.3; }
.rc-sep { border: 0; border-top: 1px solid var(--rc-rule); margin: 14px 0; opacity: 1; }
.rc-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; row-gap: 0; }
.rc-grid > .rc-span { grid-column: 1 / -1; }
.rc-grid.g3 { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1.15fr); column-gap: 12px; }
.rc-field { min-width: 0; display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 5px; margin: 0 0 10px; }
@supports not (grid-template-rows: subgrid) { .rc-field { display: block; } .rc-field > label, .rc-field > .rc-label { margin-bottom: 5px; } }
.rc-field > label, .rc-field > .rc-label, .rc-label { display: block; align-self: end; font-size: 13.5px; font-weight: 600; color: var(--text-primary); margin: 0; line-height: 1.3; }
.rc-opt { font-weight: 400; color: var(--text-secondary); }
.rc-msg:empty { display: none; }
.rc-hint { font-size: 12.5px; line-height: 1.4; color: var(--text-secondary); margin: 0; }
.rc-note { font-size: 12.5px; line-height: 1.45; color: var(--text-secondary); margin: -4px 0 0; }
.rc-err { display: none; font-size: 12.5px; line-height: 1.4; color: var(--rc-error-ink); margin: 0; font-weight: 600; }
.rc-field.has-error .rc-err, .rc-cell.has-error .rc-err { display: block; }
.rc-field.has-error .rc-hint { display: none; }

/* inputs */
.rc-input { position: relative; }
.rc-root .rc-input input, .rc-root .rc-select {
  width: 100%; height: 44px; border: 1px solid var(--rc-input-border); border-radius: 10px; background: var(--rc-input-bg);
  color: var(--text-primary); font: inherit; font-size: 16px; font-variant-numeric: tabular-nums; padding: 0 36px 0 12px;
  transition: border-color .15s, box-shadow .15s; margin: 0; box-shadow: none;
}
.rc-root .rc-select { padding: 0 30px 0 11px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%), linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%);
  background-position: calc(100% - 17px) 19px, calc(100% - 12px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
.rc-root .rc-input input:hover, .rc-root .rc-select:hover { border-color: var(--rc-input-hover); }
.rc-root .rc-input input:focus, .rc-root .rc-select:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px var(--rc-focus); }
.rc-input .rc-unit { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-secondary); font-size: 15px; pointer-events: none; }
.rc-root .rc-input.no-unit input { padding-right: 12px; }
.rc-root .rc-date input { padding-right: 40px; }
.rc-date .rc-cal { position: absolute; right: 0; top: 0; width: 40px; height: 44px; border: 0; background: none; color: var(--text-secondary); display: grid; place-items: center; cursor: pointer; border-radius: 0 10px 10px 0; padding: 0; }
.rc-date .rc-cal:hover { color: var(--primary-color); }
.rc-date .rc-cal:focus-visible { outline: 3px solid var(--rc-focus); outline-offset: -3px; }
.rc-root .rc-date input.rc-native { position: absolute; right: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; padding: 0; border: 0; }
.rc-root .has-error .rc-input input, .rc-root .has-error .rc-select { border-color: var(--danger-color, #ef4444); }

/* segmented control (native radios) */
.rc-seg { display: flex; background: var(--rc-seg-bg); border: 1px solid var(--card-border); border-radius: 11px; padding: 3px; gap: 2px; margin: 0; }
.rc-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.rc-seg label { flex: 1 1 auto; white-space: nowrap; padding: 0 10px; min-height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 15px; font-weight: 600; color: var(--text-secondary); cursor: pointer; font-variant-numeric: tabular-nums; transition: background .15s, color .15s; margin: 0; }
.rc-seg input:checked + label { background: var(--card-bg); color: var(--primary-dark); box-shadow: 0 1px 2px rgba(16,42,67,.10), 0 0 0 1px var(--card-border); }
html.dark .rc-seg input:checked + label, body.dark-theme .rc-seg input:checked + label { color: var(--text-primary); background: #262c36; }
.rc-seg input:focus-visible + label { outline: 3px solid var(--rc-focus); outline-offset: 1px; }
.rc-segdesc { font-size: 13px; line-height: 1.45; color: var(--text-secondary); margin: 7px 0 14px; min-height: 19px; }
.rc-segdesc b { color: var(--text-primary); font-weight: 650; }

/* row editors */
.rc-rows { margin: 0; padding: 0; list-style: none; }
.rc-rows-head, .rc-row { display: grid; gap: 8px; }
.rc-rows-head { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin: 0 0 5px; }
.rc-row { align-items: start; margin: 0 0 8px; }
.rc-cell { min-width: 0; }
.rc-cell .rc-err { margin-top: 4px; }
.rc-rows.reps .rc-rows-head, .rc-rows.reps .rc-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 44px; }
.rc-rows.pots .rc-rows-head, .rc-rows.pots .rc-row { grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr) minmax(0, 1.2fr) 44px; }
.rc-rows.divs .rc-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; row-gap: 6px; padding: 0 0 10px; border-bottom: 1px solid var(--rc-rule); margin-bottom: 10px; }
.rc-rows.divs .c-country { grid-column: 1 / 3; }
.rc-rows.divs .rc-del { grid-column: 3; grid-row: 1; }
.rc-rows.divs .rc-cell > .rc-mlabel { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin: 0 0 3px; }
.rc-rowhint { grid-column: 1 / -1; font-size: 12.5px; color: var(--text-secondary); margin: -2px 0 2px; line-height: 1.4; }
.rc-del { width: 44px; height: 44px; border: 1px solid transparent; background: none; color: var(--text-secondary); border-radius: 10px; cursor: pointer; display: grid; place-items: center; padding: 0; }
.rc-del:hover { color: var(--rc-error-ink); background: rgba(239,68,68,.08); }
.rc-del:focus-visible { outline: 3px solid var(--rc-focus); }
.rc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.rc-add { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px; border: 1px dashed var(--rc-input-hover); border-radius: 10px; background: none; color: var(--rc-link); font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.rc-add:hover { border-style: solid; background: var(--primary-light); }
.rc-add:focus-visible { outline: 3px solid var(--rc-focus); }
.rc-actnote { font-size: 13px; color: var(--text-secondary); }
.rc-actnote.ok { color: var(--rc-free-ink); font-weight: 600; }

/* FIFO operations table (a grid, not a <table>, so it can stack on phones) */
.rc-ops .rc-rows-head, .rc-ops .rc-row { grid-template-columns: minmax(0, 1.35fr) minmax(0, .95fr) minmax(0, .8fr) minmax(0, .95fr) minmax(0, .75fr) minmax(0, .8fr) minmax(0, 1.2fr) 44px; }
.rc-mlabel { display: none; }

/* ===== The answer ===== */
.rc-busy { position: absolute; left: 0; right: 0; top: 0; height: 3px; overflow: hidden; border-radius: 0 18px 0 0; opacity: 0; transition: opacity .12s; }
.rc-busy::before { content: ""; position: absolute; top: 0; bottom: 0; width: 35%; background: var(--primary-color); animation: rc-slide .9s ease-in-out infinite; }
.rc-out.is-busy .rc-busy { opacity: 1; }
@keyframes rc-slide { from { left: -35%; } to { left: 100%; } }
.rc-status { display: none; font-size: 13px; line-height: 1.45; border-radius: 10px; padding: 8px 12px; margin: 0 0 14px; }
.rc-status button { font: inherit; font-weight: 700; color: inherit; background: none; border: 0; text-decoration: underline; padding: 0 4px; min-height: 32px; cursor: pointer; }
.rc-out.is-stale .rc-status, .rc-out.is-limited .rc-status { display: block; }
.rc-out.is-stale .rc-status { background: rgba(239,68,68,.08); color: var(--rc-error-ink); }
.rc-out.is-limited .rc-status { background: rgba(245,158,11,.12); color: var(--rc-block-ink); }
.rc-live { transition: opacity .15s; }
.rc-out.is-busy .rc-live { opacity: .72; }
.rc-out.is-stale .rc-live, .rc-out.is-limited .rc-live { opacity: .55; }

.rc-answer { font-size: 22px; line-height: 1.42; font-weight: 500; letter-spacing: -.008em; color: var(--text-primary); margin: 0 0 6px; text-wrap: pretty; min-height: 1.42em; }
.rc-answer b, .rc-answer2 b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.rc-answer b { font-weight: 750; }
.rc-answer .rc-k, .rc-k { color: var(--rc-key); }
.rc-answer2 { font-size: 15.5px; line-height: 1.5; color: var(--text-secondary); margin: 0 0 18px; }
.rc-answer2 b { color: var(--text-primary); font-weight: 650; }
.rc-answer2 .rc-free { color: var(--rc-free-ink); }
.rc-answer2 .rc-warn { color: var(--rc-block-ink); }
.rc-h3 { font-size: 14px; font-weight: 700; color: var(--text-primary); margin: 0 0 10px; letter-spacing: -.003em; line-height: 1.35; }
.rc-fig { margin: 0; }

/* legend */
.rc-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--text-secondary); margin: 12px 0 0; }
.rc-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.rc-legend b { color: var(--text-primary); font-weight: 650; font-variant-numeric: tabular-nums; }
.rc-sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex: none; }
.rc-sw.prior { background: var(--rc-prior); }
.rc-sw.sale { background: var(--rc-sale); }
.rc-sw.gone { background: repeating-linear-gradient(135deg, transparent 0 3px, var(--rc-sale) 3px 5px); }
.rc-sw.win { background: var(--rc-block-tint); box-shadow: inset 0 0 0 1.5px var(--rc-block); }
.rc-sw.free { background: var(--rc-free-tint); box-shadow: inset 0 0 0 1.5px rgba(16,185,129,.55); }
.rc-sw.block { background: var(--rc-block); }
.rc-sw.lost { background: var(--rc-lost); }

/* plusvalías: the savings base as one linear bar, split at the band edges */
.rc-bandbox { position: relative; }
.rc-rates { position: relative; height: 27px; }
.rc-rate { position: absolute; bottom: 7px; font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: var(--text-primary); line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rc-rate.next { font-size: 12.5px; font-weight: 600; letter-spacing: 0; color: var(--text-secondary); bottom: 8px; }
.rc-track { position: relative; height: 28px; }
.rc-band { position: absolute; top: 0; bottom: 0; background: var(--rc-track); overflow: hidden; }
.rc-band.first { border-radius: 7px 0 0 7px; }
.rc-band.open { border-radius: 0 7px 7px 0; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.rc-band.first.open { border-radius: 7px 0 0 7px; }
.rc-band i { position: absolute; top: 0; bottom: 0; }
.rc-band i.prior { background: var(--rc-prior); }
.rc-band i.sale { background: var(--rc-sale); }
.rc-band i.gone { background: repeating-linear-gradient(135deg, transparent 0 4px, var(--rc-sale) 4px 6px); opacity: .75; }
.rc-ticks { position: relative; height: 17px; font-size: 11.5px; color: var(--text-secondary); font-variant-numeric: tabular-nums; margin-top: 4px; }
.rc-ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.rc-ticks span.l { transform: none; }
.rc-labels { position: relative; margin-top: 4px; }
.rc-labels > div { position: absolute; top: 0; left: 0; white-space: nowrap; padding-left: 8px; border-left: 2px solid var(--rc-sale); }
.rc-labels > div.gone { border-left-style: dashed; }
.rc-labels > div.l2 { border-left-color: var(--rc-sale-2); }
.rc-labels > div.l3 { border-left-color: var(--rc-sale-3); }
.rc-labels b { display: block; font-size: 15.5px; font-weight: 750; color: var(--rc-key); font-variant-numeric: tabular-nums; line-height: 1.2; }
.rc-labels span { display: block; font-size: 12px; color: var(--text-secondary); line-height: 1.35; font-variant-numeric: tabular-nums; }

/* recompra: the sale on a fixed calendar (13 months either side) */
.rc-tl { position: relative; margin: 0; }
.rc-tl-above { position: relative; height: 30px; }
.rc-tl-track { position: relative; height: 16px; border-radius: 8px; background: var(--rc-free-tint); }
.rc-tl-win { position: absolute; top: 0; bottom: 0; background: var(--rc-block-tint); box-shadow: inset 0 0 0 1.5px var(--rc-block); border-radius: 4px; transition: left .35s ease, width .35s ease; }
.rc-tl-yr { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--text-muted); opacity: .55; }
.rc-tl-sale { position: absolute; width: 0; border-left: 2px solid var(--text-primary); transition: left .35s ease; z-index: 2; }
.rc-tl-salelab { position: absolute; top: 0; font-size: 13px; font-weight: 700; color: var(--text-primary); white-space: nowrap; transform: translateX(-50%); line-height: 1.2; font-variant-numeric: tabular-nums; }
.rc-tl-salelab span { font-weight: 500; color: var(--text-secondary); }
.rc-tl-dot { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--card-bg); border: 3px solid var(--rc-sale); z-index: 3; transition: border-color .2s, background .2s; }
.rc-tl-dot.blocks { border-color: var(--rc-block); background: var(--rc-block); }
.rc-tl-below { position: relative; margin-top: 10px; }
.rc-tl-lab { position: absolute; top: 0; left: 0; font-size: 12.5px; line-height: 1.3; white-space: nowrap; color: var(--text-primary); font-variant-numeric: tabular-nums; padding-left: 8px; border-left: 2px solid var(--rc-sale); }
.rc-tl-lab.blocks { border-left-color: var(--rc-block); }
.rc-tl-lab b { font-weight: 650; }
.rc-tl-lab span { display: block; color: var(--text-secondary); }
.rc-tl-lab.blocks span { color: var(--rc-block-ink); font-weight: 650; }
.rc-tl-lab.right { padding-left: 0; padding-right: 8px; border-left: 0; border-right: 2px solid var(--rc-sale); text-align: right; }
.rc-tl-lab.right.blocks { border-right-color: var(--rc-block); }
.rc-tl-axis { position: relative; height: 18px; margin-top: 8px; border-top: 1px solid var(--rc-rule); }
.rc-tl-axis span { position: absolute; top: 3px; transform: translateX(-50%); font-size: 11.5px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.rc-tl-axis span::before { content: ""; position: absolute; left: 50%; top: -7px; height: 5px; border-left: 1px solid var(--text-muted); }

/* compensación: before / after bars on one euro scale */
.rc-ba { display: grid; gap: 12px; }
.rc-ba-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.rc-ba-label { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--text-secondary); }
.rc-ba-label b { color: var(--text-primary); font-weight: 750; font-variant-numeric: tabular-nums; font-size: 15px; white-space: nowrap; }
.rc-ba-track { position: relative; height: 26px; background: var(--rc-track); border-radius: 7px; overflow: hidden; }
.rc-ba-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--rc-prior); border-radius: 7px 0 0 7px; transition: width .25s ease; }
.rc-ba-row.after .rc-ba-fill { background: var(--rc-sale); }
.rc-ba-save { position: absolute; top: 0; bottom: 0; background: var(--rc-free-tint); box-shadow: inset 0 0 0 1.5px rgba(16,185,129,.6); transition: left .25s ease, width .25s ease; }
.rc-ba-note { font-size: 13.5px; color: var(--rc-free-ink); font-weight: 700; margin: 2px 0 0; }
.rc-pots { list-style: none; margin: 14px 0 0; padding: 0; }
.rc-pots li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--rc-rule); font-size: 14px; margin: 0; }
.rc-pots li span { color: var(--text-secondary); }
.rc-pots li b { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc-pots .exp { color: var(--rc-block-ink); font-weight: 700; }

/* FIFO: lots consumed per sale */
.rc-sales { display: grid; gap: 22px; }
.rc-sale-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; font-size: 14.5px; margin: 0 0 8px; }
.rc-sale-h b { font-weight: 700; color: var(--text-primary); }
.rc-sale-h span { color: var(--text-secondary); }
.rc-lotbar { position: relative; height: 26px; display: flex; gap: 2px; }
.rc-lotbar i { display: block; height: 100%; background: var(--rc-sale); min-width: 3px; }
.rc-lotbar i:first-child { border-radius: 7px 0 0 7px; }
.rc-lotbar i:last-child { border-radius: 0 7px 7px 0; }
.rc-lotbar i:only-child { border-radius: 7px; }
.rc-lotbar i.l2 { background: var(--rc-sale-2); }
.rc-lotbar i.l3 { background: var(--rc-sale-3); }
.rc-fx { font-size: 13px; color: var(--text-secondary); margin: 8px 0 0; }
.rc-open { font-size: 14px; color: var(--text-secondary); margin: 16px 0 0; line-height: 1.55; }
.rc-open b { color: var(--text-primary); font-weight: 650; }

/* doble imposición: one stacked bar per country */
.rc-wh { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.rc-wh-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; min-width: 0; }
.rc-wh-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: 14px; }
.rc-wh-h b { font-weight: 700; color: var(--text-primary); }
.rc-wh-h span { color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.rc-wh-bar { display: flex; height: 24px; gap: 2px; }
.rc-wh-bar i { display: block; height: 100%; min-width: 3px; }
.rc-wh-bar i:first-child { border-radius: 6px 0 0 6px; }
.rc-wh-bar i:last-child { border-radius: 0 6px 6px 0; }
.rc-wh-bar i:only-child { border-radius: 6px; }
.rc-wh-bar .ded { background: var(--rc-sale); }
.rc-wh-bar .rec { background: var(--rc-block); }
.rc-wh-bar .lost { background: repeating-linear-gradient(135deg, var(--rc-lost) 0 4px, transparent 4px 7px); box-shadow: inset 0 0 0 1px var(--rc-lost); }
.rc-wh-vals { display: flex; flex-wrap: wrap; gap: 2px 16px; font-size: 13px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.rc-wh-vals b { color: var(--text-primary); font-weight: 650; }
.rc-wh-proc { font-size: 13px; line-height: 1.5; color: var(--text-secondary); margin: 2px 0 0; }

/* "Cómo sale": a short ledger that reconciles with the sentence */
.rc-ledger { margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--rc-rule); }
.rc-lines { margin: 0; padding: 0; }
.rc-lines > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 6px 0; }
.rc-lines dt { font-size: 14.5px; color: var(--text-primary); font-weight: 500; min-width: 0; }
.rc-lines dt small { display: block; font-size: 12.5px; color: var(--text-secondary); font-weight: 400; margin-top: 1px; }
.rc-lines dd { margin: 0; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text-primary); }
.rc-lines .tot { border-top: 1px solid var(--rc-rule); margin-top: 2px; padding-top: 8px; }
.rc-lines .tot dt, .rc-lines .tot dd { font-weight: 750; }
.rc-lines .gap { margin-top: 10px; }
.rc-lines .warn dd { color: var(--rc-block-ink); font-weight: 650; }
.rc-lines .muted dt, .rc-lines .muted dd { color: var(--text-secondary); }
.rc-why { font-size: 13.5px; line-height: 1.6; color: var(--text-secondary); margin: 12px 0 0; }
.rc-why a { color: var(--rc-link); text-decoration: none; font-weight: 600; }

/* ===== After the answer: two quiet next steps ===== */
.rc-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0 0; }
.rc-next a { display: block; text-decoration: none; border: 1px solid var(--card-border); border-radius: 14px; padding: 16px 18px; background: var(--card-bg); transition: border-color .15s; }
.rc-next a:hover { border-color: var(--primary-color); }
.rc-next a:focus-visible { outline: 3px solid var(--rc-focus); outline-offset: 2px; }
.rc-next strong { display: block; font-size: 15.5px; color: var(--text-primary); margin: 0 0 4px; }
.rc-next span { display: block; font-size: 14px; line-height: 1.55; color: var(--text-secondary); }
.rc-next em { display: inline-block; font-style: normal; font-weight: 700; font-size: 14px; color: var(--rc-link); margin-top: 8px; }

/* ===== Article (record content) ===== */
.rc-article { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 18px; padding: 40px 44px 36px; margin-top: 36px; }
.rc-article > * { max-width: 760px; }
.rc-page .rc-article h2 { font-size: 24px; font-weight: 750; letter-spacing: -.015em; line-height: 1.25; color: var(--text-primary); margin: 36px 0 14px; padding-top: 28px; border-top: 1px solid var(--card-border); scroll-margin-top: 80px; }
.rc-page .rc-article > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.rc-page .rc-article h3 { font-size: 18px; font-weight: 700; color: var(--text-primary); margin: 24px 0 10px; }
.rc-article p { font-size: 16.5px; line-height: 1.75; color: var(--text-primary); margin: 0 0 16px; }
.rc-article ul, .rc-article ol { margin: 0 0 18px; padding-left: 22px; }
.rc-article li { font-size: 16px; line-height: 1.7; color: var(--text-primary); margin-bottom: 8px; }
.rc-article a { color: var(--rc-link); font-weight: 600; }
.rc-tblwrap { overflow-x: auto; margin: 6px 0 22px; }
.rc-tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rc-tbl th, .rc-tbl td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--card-border); font-size: 15px; color: var(--text-primary); vertical-align: top; line-height: 1.5; }
.rc-tbl th { font-size: 13px; font-weight: 700; color: var(--text-secondary); background: var(--bg-subtle); }
.rc-tbl td:first-child { font-weight: 600; }
.rc-tbl a { color: var(--rc-link); font-weight: 700; text-decoration: none; }
.rc-faq details { border: 1px solid var(--card-border); border-radius: 12px; margin-bottom: 10px; background: var(--card-bg); }
.rc-faq summary { list-style: none; cursor: pointer; padding: 15px 20px; font-size: 16px; font-weight: 700; color: var(--text-primary); display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 44px; }
.rc-faq summary::-webkit-details-marker { display: none; }
.rc-faq summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--primary-color); border-bottom: 2px solid var(--primary-color); transform: rotate(45deg) translateY(-3px); flex: none; transition: transform .2s; }
.rc-faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.rc-faq summary:focus-visible { outline: 3px solid var(--rc-focus); border-radius: 12px; }
.rc-faq details > p { padding: 0 20px 16px; margin: 0; font-size: 15.5px; color: var(--text-secondary); }
.rc-article .rc-law, .rc-article .rc-more { list-style: none; padding: 0; margin: 0; }
.rc-law li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--card-border); font-size: 15px; margin: 0; }
.rc-law li:last-child { border-bottom: 0; }
.rc-law a, .rc-law b { color: var(--rc-link); font-weight: 700; text-decoration: none; }
.rc-law b { color: var(--text-primary); }
.rc-law span { color: var(--text-secondary); line-height: 1.6; }
.rc-more { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.rc-more li { margin: 0; border-bottom: 1px solid var(--card-border); }
.rc-more a { display: block; padding: 12px 0; text-decoration: none; }
.rc-more a b { display: block; font-size: 15.5px; color: var(--text-primary); font-weight: 700; }
.rc-more a span { display: block; font-size: 14px; color: var(--text-secondary); line-height: 1.5; font-weight: 400; }
.rc-more a:hover b { color: var(--rc-link); }
.rc-page .rc-disclaimer, .rc-article p.rc-disclaimer { font-size: 13px; line-height: 1.6; color: var(--text-secondary); margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--card-border); }


/* ===== Guide (pillar) ===== */
.rc-calclink { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--card-border); border-left: 3px solid var(--primary-color); border-radius: 10px; padding: 12px 16px; margin: 4px 0 22px; text-decoration: none; background: var(--bg-subtle); }
.rc-calclink b { display: block; font-size: 15.5px; color: var(--text-primary); }
.rc-calclink span { display: block; font-size: 14px; color: var(--text-secondary); line-height: 1.5; font-weight: 400; }
.rc-calclink em { font-style: normal; font-weight: 700; color: var(--rc-link); white-space: nowrap; font-size: 14.5px; }
.rc-calclink:hover { border-color: var(--primary-color); }

/* ===== Service page ===== */
.rc-price { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.rc-price b { font-size: 40px; font-weight: 800; letter-spacing: -.03em; color: var(--text-primary); line-height: 1; font-variant-numeric: tabular-nums; }
.rc-price span { font-size: 15px; color: var(--text-secondary); }
.rc-root .rc-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 11px; background: var(--primary-color); color: var(--rc-btn-ink); font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; border: 0; }
.rc-root .rc-cta:hover { background: var(--primary-dark); color: var(--rc-btn-ink); }
.rc-cta:focus-visible { outline: 3px solid var(--rc-focus); outline-offset: 2px; }
.rc-box { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 16px; padding: 20px 24px; }
.rc-page .rc-box h2 { font-size: 18px; font-weight: 750; color: var(--text-primary); margin: 0 0 10px; padding: 0; border: 0; }
.rc-box ul { margin: 0; padding-left: 20px; }
.rc-box li { font-size: 15px; line-height: 1.6; color: var(--text-primary); margin: 0 0 6px; }
.rc-box p { font-size: 15px; line-height: 1.6; color: var(--text-secondary); margin: 0; }

/* ===== Phone ===== */
.rc-peek { display: none; }
@media (max-width: 900px) {
  .rc-peek { display: flex; grid-column: 1 / -1; position: sticky; top: 53px; z-index: 6; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; min-height: 52px; background: var(--rc-result-bg); border-bottom: 1px solid var(--card-border); border-radius: 16px 16px 0 0; font-size: 14px; color: var(--text-primary); transition: opacity .15s, box-shadow .15s; }
  .rc-peek.stuck { border-radius: 0; box-shadow: 0 8px 16px -12px rgba(16,42,67,.45); }
  .rc-peek.gone { opacity: 0; visibility: hidden; }
  .rc-peek .t { flex: 1; min-width: 0; line-height: 1.35; }
  .rc-peek b { font-variant-numeric: tabular-nums; white-space: nowrap; }
  .rc-peek .k { color: var(--rc-key); }
  .rc-peek a { flex: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 10px; color: var(--rc-link); font-weight: 700; text-decoration: none; font-size: 14px; }
  .rc-out.is-busy ~ .rc-peek .t, .rc-peek.busy .t { opacity: .6; }

  main.rc-page { padding: 10px 0 16px; }
  .rc-calc { grid-template-columns: 1fr; border-radius: 16px; }
  .rc-form { padding: 16px 16px 18px; }
  .rc-out { border-left: 0; border-top: 1px solid var(--card-border); border-radius: 0 0 16px 16px; }
  .rc-out-inner { position: static; padding: 18px 16px 20px; min-height: 0; }
  .rc-busy { border-radius: 0; }
  .rc-next { grid-template-columns: 1fr; gap: 10px; }
  .rc-article { padding: 24px 18px; margin-top: 24px; border-radius: 16px; }
  .rc-page .rc-article h2 { font-size: 21px; }
  .rc-article p { font-size: 16px; }
  .rc-law li { grid-template-columns: 1fr; gap: 2px; }
  .rc-more { grid-template-columns: 1fr; }
  .rc-cta { width: 100%; }
  .rc-calclink { flex-direction: column; align-items: flex-start; gap: 6px; }
  /* FIFO rows stack as blocks */
  .rc-ops .rc-rows-head { display: none; }
  .rc-ops .rc-row { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 10px 0 12px; border-bottom: 1px solid var(--rc-rule); margin: 0; }
  .rc-ops .rc-cell > .rc-mlabel { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin: 0 0 3px; }
  .rc-ops .c-date { grid-column: span 3; } .rc-ops .c-side { grid-column: span 3; }
  .rc-ops .c-shares { grid-column: span 2; } .rc-ops .c-price { grid-column: span 2; } .rc-ops .c-cur { grid-column: span 2; }
  .rc-ops .c-fees { grid-column: span 2; } .rc-ops .c-broker { grid-column: span 3; }
  .rc-ops .rc-del { grid-column: span 1; align-self: end; justify-self: end; }
}
@media (max-width: 440px) {
  .rc-seg.four { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .rc-grid.g3 { grid-template-columns: 1fr 1fr; column-gap: 10px; }
  .rc-grid.g3 > .rc-field:first-child { grid-column: 1 / -1; }
  .rc-seg label { font-size: 14px; padding: 0 6px; }
  .rc-root .rc-input input { padding-left: 11px; }
  .rc-root .rc-date input { padding-right: 36px; }
  .rc-date .rc-cal { width: 36px; }
  .rc-page .rc-head h1 { font-size: 25px; }
  .rc-lede { font-size: 15px; }
  .rc-grid { column-gap: 10px; }
  .rc-field > label, .rc-field > .rc-label { font-size: 13px; }
  .rc-answer { font-size: 19.5px; }
  .rc-rate { font-size: 16px; }
  .rc-labels b { font-size: 14px; }
  .rc-ticks { font-size: 11px; }
  .rc-rows.pots .rc-rows-head { display: none; }
  .rc-rows.pots .rc-row { grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr) 40px; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--rc-rule); }
  .rc-rows.pots .c-amount { grid-column: 1 / 3; grid-row: 2; }
  .rc-rows.pots .rc-del { grid-column: 3; grid-row: 1; }
  .rc-rows.pots .rc-del { width: 40px; }
  .rc-price b { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .rc-root *, .rc-root *::before, .rc-root *::after { transition: none !important; animation: none !important; }
  .rc-busy::before { left: 0; width: 100%; opacity: .5; }
}

/* FIFO top row: year + market side by side on the wide layout */
.rc-grid.rc-fifo-top { grid-template-columns: 200px minmax(0, 560px); column-gap: 24px; }
@media (max-width: 900px) { .rc-grid.rc-fifo-top { grid-template-columns: 1fr; } }

/* Intro can hold two paragraphs */
.rc-lede p { margin: 0 0 8px; font: inherit; color: inherit; }
.rc-lede p:last-child { margin-bottom: 0; }

/* Broker documents table: wide on desktop, one block per broker on phones */
.rc-article > .rc-bt, .rc-article .rc-bt { max-width: none; margin: 8px 0 24px; }
.rc-page .rc-bt h3 { margin-top: 18px; }
.rc-tbl-stack tbody th { text-align: left; font-weight: 700; font-size: 15px; padding: 11px 14px; border-bottom: 1px solid var(--card-border); vertical-align: top; color: var(--text-primary); white-space: nowrap; }
.rc-tbl-stack tbody th a { color: var(--rc-link); text-decoration: none; }
.rc-tbl-stack td { font-size: 14.5px; }
.rc-tbl-stack td:first-child { font-weight: 400; }
@media (max-width: 700px) {
  .rc-tbl-stack, .rc-tbl-stack tbody, .rc-tbl-stack tr, .rc-tbl-stack th, .rc-tbl-stack td { display: block; width: 100%; }
  .rc-tbl-stack thead { display: none; }
  .rc-tbl-stack tr { border: 1px solid var(--card-border); border-radius: 12px; padding: 4px 14px 10px; margin: 0 0 10px; background: var(--card-bg); }
  .rc-tbl-stack tbody th { border: 0; padding: 10px 0 4px; white-space: normal; font-size: 16px; }
  .rc-tbl-stack td { border: 0; padding: 6px 0; }
  .rc-tbl-stack td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; color: var(--text-secondary); margin-bottom: 1px; }
  .rc-bt .rc-tblwrap { overflow: visible; }
}

/* ===== Order page (/es/informe-renta-inversores/encargar/) ===== */
.rc-order { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 18px; box-shadow: var(--seo-sh-md); }
.rc-order-form { padding: 24px 28px 26px; min-width: 0; }
.rc-form-plain { margin: 0; }
.rc-seg-year { max-width: 260px; margin-top: 6px; }
.rc-check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; margin: 6px 0 16px; padding: 14px 16px; border: 1px solid var(--rc-input-border); border-radius: 12px; cursor: pointer; font-size: 14.5px; line-height: 1.55; color: var(--text-primary); background: var(--rc-input-bg); }
.rc-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--primary-color); cursor: pointer; }
.rc-check:hover { border-color: var(--rc-input-hover); }
.rc-check:focus-within { border-color: var(--primary-color); box-shadow: 0 0 0 3px var(--rc-focus); }
.rc-form .rc-check { margin: 14px 0 0; }
.rc-alert { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: rgba(239,68,68,.08); color: var(--rc-error-ink); font-size: 14.5px; font-weight: 600; line-height: 1.5; }
.rc-root .rc-pay { width: 100%; min-height: 52px; font-size: 17px; cursor: pointer; }
.rc-paynote { font-size: 13px; color: var(--text-secondary); text-align: center; margin: 10px 0 0; }
.rc-guarantee-line { font-size: 13.5px; line-height: 1.55; color: var(--text-primary); margin: 14px 0 0; padding: 10px 0 0 14px; border-left: 3px solid var(--accent-color); }
.rc-btn-quiet { min-height: 44px; padding: 0 16px; border: 1px solid var(--rc-input-border); border-radius: 10px; background: var(--rc-input-bg); color: var(--text-primary); font: inherit; font-weight: 600; cursor: pointer; margin: 4px 0 0; }
.rc-btn-quiet:hover { border-color: var(--rc-input-hover); }
.rc-paid { margin: 18px 0 0; padding: 16px 18px; border-radius: 12px; background: var(--rc-free-tint); }
.rc-paid p { margin: 0 0 12px; font-size: 15px; line-height: 1.55; color: var(--text-primary); }
.rc-order-sum { background: var(--rc-result-bg); border-left: 1px solid var(--card-border); border-radius: 0 18px 18px 0; padding: 24px 28px 26px; min-width: 0; }
.rc-page .rc-order-sum h2 { font-size: 15px; font-weight: 700; margin: 0 0 12px; color: var(--text-primary); }
.rc-page .rc-order-sum h3 { font-size: 14px; font-weight: 700; margin: 18px 0 8px; color: var(--text-primary); }
.rc-order-item { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 0 0 10px; border-bottom: 1px solid var(--rc-rule); font-size: 15px; }
.rc-order-item b { color: var(--text-primary); font-weight: 650; }
.rc-order-item span { color: var(--text-secondary); white-space: nowrap; }
.rc-order-price { display: flex; align-items: baseline; justify-content: space-between; margin: 10px 0 0; }
.rc-order-price b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.rc-order-price span { font-size: 14px; color: var(--text-secondary); }
.rc-order-sum ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rc-order-sum li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.5; color: var(--text-primary); margin: 0; }
.rc-order-sum li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 10px; height: 6px; border-left: 2px solid var(--accent-color); border-bottom: 2px solid var(--accent-color); transform: rotate(-45deg); }
.rc-order-help { font-size: 14px; margin: 16px 0 0; text-align: center; }
.rc-order-help a, .rc-textlink { color: var(--rc-link); font-weight: 700; text-decoration: none; }
.rc-order-msg .rc-alert { background: rgba(245,158,11,.12); color: var(--rc-block-ink); }
.rc-order-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0; }
@media (max-width: 900px) {
  .rc-order { grid-template-columns: 1fr; border-radius: 16px; }
  .rc-order-form { padding: 18px 16px 20px; }
  .rc-order-sum { border-left: 0; border-top: 1px solid var(--card-border); border-radius: 0 0 16px 16px; padding: 18px 16px 20px; }
  .rc-seg-year { max-width: none; }
}
.rc-page .rc-order-h { font-size: 15px; font-weight: 700; color: var(--text-primary); margin: 26px 0 10px; padding-top: 18px; border-top: 1px solid var(--rc-rule); }
.rc-order-steps { list-style: none; counter-reset: rc-os; margin: 0; padding: 0; display: grid; gap: 10px; }
.rc-order-steps li { counter-increment: rc-os; position: relative; padding-left: 28px; font-size: 14px; line-height: 1.55; color: var(--text-secondary); margin: 0; }
.rc-order-steps li::before { content: counter(rc-os); position: absolute; left: 4px; top: -2px; color: var(--primary-color); font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.4; }
.rc-order-steps b { color: var(--text-primary); font-weight: 650; }
.rc-tbl-stack tbody th { background: none; }
.rc-box.rc-order-msg .rc-alert { margin: 0 0 16px; }

/* Four-option market control: the two-month label names the equivalent markets, so it may wrap */
.rc-seg.four label { text-align: center; line-height: 1.2; padding: 4px 8px; }
.rc-seg.four #rc-m-eu + label { white-space: normal; flex: 0 1 auto; }

/* UX review fixes */
.rc-rw { font-size: 13.5px; line-height: 1.55; color: var(--text-primary); margin: 8px 0 0; padding: 8px 12px; border-left: 3px solid var(--primary-color); background: var(--card-bg); border-radius: 0 8px 8px 0; }
.rc-rw b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc-rw a { color: var(--rc-link); font-weight: 600; text-decoration: none; }
/* AA contrast in light: darker link blue, darker button fill */
.rc-root { --rc-link: #1f6aa5; }
html.dark .rc-root, body.dark-theme .rc-root, body.premium-dark-theme .rc-root { --rc-link: #79c0ff; }
.rc-root .rc-cta { background: #1f6aa5; }
.rc-root .rc-cta:hover { background: #1a5276; }
/* dark: the selected segment must read as selected */
html.dark .rc-seg input:checked + label, body.dark-theme .rc-seg input:checked + label { background: #1d3b5a; color: #ffffff; box-shadow: inset 0 0 0 1px #3498db; }
/* FIFO desktop: reserve the answer's first-paint height so the page does not jump */
@media (min-width: 901px) { .rc-calc.is-wide .rc-out-inner { min-height: 640px; } }

/* ===================================================================================
   Editorial layer (guide and service page, October 2026). Reusable by the hub and the
   calculator articles: longform measure, figures that explain, framed screenshots,
   quiet calls to action. Colour meaning matches the calculators: blue = your money or
   this operation, amber = blocked or suspended, green = free or saved.
   =================================================================================== */
.rc-root .rc-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rc-page:has(.rc-guide) .rc-lede, .rc-page:has(.rc-offer) .rc-lede { max-width: 780px; }

/* Guide: sticky rail + article */
.rc-guide { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0 32px; align-items: start; }
.rc-page nav.rc-rail { display: block; width: auto; position: sticky; top: 76px; padding: 44px 0 0; }
.rc-page .rc-rail-h { font-size: 13px; font-weight: 700; color: var(--text-primary); margin: 0 0 10px; }
.rc-rail ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--card-border); }
.rc-rail li { margin: 0; }
.rc-rail a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.35; color: var(--text-secondary); text-decoration: none; }
.rc-rail a:hover { color: var(--text-primary); }
.rc-rail a[aria-current] { color: var(--rc-link); border-left-color: var(--primary-color); font-weight: 700; }
.rc-rail a:focus-visible { outline: 3px solid var(--rc-focus); outline-offset: 1px; }
.rc-toc-m { display: none; }
.rc-guide .rc-article { margin-top: 0; }

/* Longform article */
.rc-article.rc-longform { padding: 44px 52px 40px; }
.rc-article.rc-longform > * { max-width: none; }
.rc-longform > .rc-faq, .rc-longform > .rc-law, .rc-longform > .rc-more, .rc-longform > .rc-disclaimer { max-width: 760px; }
.rc-sec + .rc-sec { margin-top: 64px; }
.rc-page .rc-longform h2 { font-size: 26px; font-weight: 750; letter-spacing: -.016em; line-height: 1.24; margin: 64px 0 14px; padding: 0; border: 0; max-width: 680px; text-wrap: balance; scroll-margin-top: 84px; }
.rc-page .rc-longform .rc-sec h2 { margin-top: 0; }
.rc-anchor { display: block; position: relative; top: -84px; visibility: hidden; height: 0; }
.rc-longform .rc-sec > p { font-size: 17px; line-height: 1.7; max-width: 660px; margin: 0 0 16px; text-wrap: pretty; }
.rc-longform .rc-sec > p b { font-weight: 700; color: var(--text-primary); }
.rc-longform .rc-list { list-style: none; padding: 0; margin: 0 0 8px; max-width: 660px; }
.rc-longform .rc-list li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.6; margin: 0 0 8px; }
.rc-longform .rc-list li::before { content: ""; position: absolute; left: 3px; top: .6em; width: 7px; height: 7px; border-radius: 2px; background: var(--text-muted); }
.rc-longform .rc-bt { max-width: 760px; margin: 22px 0 8px; }
.rc-page .rc-longform .rc-bt h3 { font-size: 18px; margin: 0 0 10px; }
.rc-longform .rc-calclink { max-width: 720px; margin: 18px 0 0; }
.rc-longform .rc-more-inline { max-width: 720px; margin: 8px 0 0; }
.rc-longform .rc-next { max-width: 720px; margin: 22px 0 0; }
.rc-longform .rc-next span, .rc-offerline > span > span { font-weight: 400; }
.rc-longform .rc-more li { line-height: 1.4; }
@media (min-width: 901px) { .rc-longform .rc-law li { grid-template-columns: 210px minmax(0, 1fr); } }

/* Figures that explain */
.rc-vis { margin: 24px 0 26px; padding: 20px 22px 16px; background: var(--rc-result-bg); border: 1px solid var(--rc-rule); border-radius: 14px; max-width: 720px; font-variant-numeric: tabular-nums; }
.rc-root .rc-vis p { margin: 0; font-size: 14px; line-height: 1.45; color: inherit; max-width: none; }
.rc-root .rc-vis .rc-vis-t { font-size: 14.5px; font-weight: 700; color: var(--text-primary); margin: 0 0 14px; line-height: 1.35; }
.rc-vis figcaption { font-size: 13.5px; line-height: 1.5; color: var(--text-secondary); margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--rc-rule); }
.rc-sw.open { background: var(--rc-track); box-shadow: inset 0 0 0 1.5px var(--rc-prior); }
.rc-vis-result { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 12px; }
.rc-root .rc-vis .rc-vis-result { font-size: 14px; color: var(--text-secondary); margin-top: 12px; }
.rc-vis-result b { font-size: 17px; font-weight: 750; color: var(--text-primary); margin-left: 4px; white-space: nowrap; }
.rc-vis-result .block b { color: var(--rc-block-ink); }
.rc-vis-result .free b { color: var(--rc-free-ink); }
.rc-vis-result .key b { color: var(--rc-key); }
.rc-root .rc-vis .rc-vis-note { font-size: 13.5px; color: var(--text-secondary); margin-top: 14px; }

/* Map: what goes where in Renta Web */
.rc-vis-map { padding: 10px 14px 14px; }
.rc-map { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.rc-map thead th { font-size: 12.5px; font-weight: 700; color: var(--text-secondary); text-align: left; padding: 2px 12px 0; background: none; border: 0; }
.rc-map tbody th, .rc-map tbody td { background: var(--card-bg); border-top: 1px solid var(--rc-rule); border-bottom: 1px solid var(--rc-rule); vertical-align: middle; }
.rc-map tbody th { text-align: left; font-size: 15px; font-weight: 700; color: var(--text-primary); padding: 10px 12px; border-left: 1px solid var(--rc-rule); border-radius: 10px 0 0 10px; width: 28%; line-height: 1.3; }
.rc-map .rc-map-what { font-size: 14px; color: var(--text-secondary); padding: 10px 12px; line-height: 1.4; width: 30%; }
.rc-map .rc-map-where { padding: 6px; border-right: 1px solid var(--rc-rule); border-radius: 0 10px 10px 0; }
.rc-map .rc-map-where span { display: block; position: relative; background: var(--primary-light, rgba(46,134,193,.10)); color: var(--rc-key); font-weight: 650; font-size: 14px; line-height: 1.35; padding: 7px 10px 7px 28px; border-radius: 8px; }
.rc-map .rc-map-where span::before { content: "→"; position: absolute; left: 10px; top: 7px; color: var(--primary-color); font-weight: 700; }

/* FIFO: lots consumed oldest first */
.rc-fifo2 { padding-top: 24px; }
.rc-fifo2-sale { position: relative; width: var(--w); height: 10px; border: 2px solid var(--rc-key); border-bottom: 0; border-radius: 4px 4px 0 0; margin-bottom: 6px; transition: opacity .4s ease 1.3s; }
.rc-fifo2-sale span { position: absolute; left: -2px; bottom: 14px; font-size: 13.5px; font-weight: 700; color: var(--rc-key); white-space: nowrap; }
.rc-fifo2-bar { display: flex; gap: 4px; height: 30px; }
.rc-fifo2-lot { position: relative; min-width: 0; border-radius: 7px; background: var(--rc-track); box-shadow: inset 0 0 0 1.5px var(--rc-prior); overflow: hidden; }
.rc-fifo2-lot i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: var(--rc-sale); transition: width .8s cubic-bezier(.2,.7,.2,1); }
.rc-fifo2-lot + .rc-fifo2-lot i { transition-delay: .75s; }
.rc-fifo2-labels { display: flex; gap: 4px; margin-top: 10px; }
.rc-fifo2-labels > div { min-width: 0; display: grid; align-content: start; gap: 2px; padding-left: 10px; border-left: 2px solid var(--rc-rule); font-size: 13px; line-height: 1.4; color: var(--text-secondary); }
.rc-fifo2-labels b { font-size: 14.5px; color: var(--text-primary); }
.rc-fifo2-labels .u, .rc-fifo2-labels .o { display: flex; align-items: baseline; gap: 7px; color: var(--text-primary); font-weight: 600; }
.rc-fifo2-labels .o { font-weight: 500; color: var(--text-secondary); }
.rc-fifo2-labels .rc-sw { width: 10px; height: 10px; flex: none; transform: translateY(1px); }
.rc-anim .rc-reveal:not(.is-in) .rc-fifo2-lot i { width: 0; }
.rc-anim .rc-reveal:not(.is-in) .rc-fifo2-sale { opacity: 0; }
.rc-vis-sum { margin: 16px 0 0; padding: 10px 0 0; border-top: 1px solid var(--rc-rule); }
.rc-vis-sum > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 4px 0; }
.rc-vis-sum dt { font-size: 14px; font-weight: 500; color: var(--text-primary); min-width: 0; }
.rc-vis-sum dt small { display: block; font-size: 12.5px; color: var(--text-secondary); font-weight: 400; }
.rc-vis-sum dd { margin: 0; font-size: 15px; white-space: nowrap; color: var(--text-primary); }
.rc-vis-sum .tot { border-top: 1px solid var(--rc-rule); margin-top: 4px; padding-top: 8px; }
.rc-vis-sum .tot dt, .rc-vis-sum .tot dd { font-weight: 750; font-size: 16px; }
.rc-vis-sum .tot dd { color: var(--rc-key); }

/* Repurchase window on a fixed calendar */
.rc-tl-seg { margin: 0 0 20px; max-width: 560px; }
.rc-seg.rc-tl-seg label { white-space: normal; text-align: center; line-height: 1.25; padding: 6px 10px; font-size: 14px; }
.rc-tl2-above, .rc-tl2-below { position: relative; height: 22px; }
.rc-tl2-lab { position: absolute; top: 0; white-space: nowrap; font-size: 13px; color: var(--text-secondary); }
.rc-tl2-lab b { color: var(--text-primary); font-weight: 700; }
.rc-tl2-lab.sale { transform: translateX(-50%); }
.rc-tl2-lab.buy { transform: translateX(-50%); top: 2px; }
.rc-tl2-track { position: relative; height: 18px; border-radius: 9px; background: var(--rc-free-tint); margin: 4px 0; }
.rc-tl2-win { position: absolute; top: 0; bottom: 0; left: var(--l0); width: var(--w0); background: var(--rc-block-tint); box-shadow: inset 0 0 0 1.5px var(--rc-block); border-radius: 5px; transition: left .45s ease, width .45s ease, opacity .5s ease .2s; }
.rc-vis-tl[data-m="1"] .rc-tl2-win { left: var(--l1); width: var(--w1); }
.rc-vis-tl:has(.rc-tl-seg input:nth-of-type(2):checked) .rc-tl2-win { left: var(--l1); width: var(--w1); }
.rc-tl2-yr { position: absolute; top: -4px; bottom: -4px; border-left: 1px dashed var(--text-muted); opacity: .6; }
.rc-tl2-sale { position: absolute; top: -7px; bottom: -7px; border-left: 2px solid var(--text-primary); z-index: 2; }
.rc-tl2-dot { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--rc-block); box-shadow: 0 0 0 2px var(--rc-result-bg); z-index: 3; transition: transform .35s ease .6s; }
.rc-tl2-axis { position: relative; height: 18px; margin-top: 8px; border-top: 1px solid var(--rc-rule); }
.rc-tl2-axis span { position: absolute; top: 3px; transform: translateX(-50%); font-size: 12px; color: var(--text-secondary); }
.rc-tl2-legend { margin-top: 12px; }
.rc-root .rc-vis .rc-tl2-mode { display: none; flex-wrap: wrap; gap: 4px 20px; font-size: 13.5px; color: var(--text-secondary); }
.rc-tl2-mode span { display: inline-flex; align-items: center; gap: 7px; }
.rc-root .rc-vis-tl .rc-tl2-mode.m0 { display: flex; }
.rc-root .rc-vis-tl[data-m="1"] .rc-tl2-mode.m0 { display: none; }
.rc-root .rc-vis-tl:has(.rc-tl-seg input:nth-of-type(2):checked) .rc-tl2-mode.m0 { display: none; }
.rc-root .rc-vis-tl[data-m="1"] .rc-tl2-mode.m1 { display: flex; }
.rc-root .rc-vis-tl:has(.rc-tl-seg input:nth-of-type(2):checked) .rc-tl2-mode.m1 { display: flex; }
.rc-anim .rc-reveal:not(.is-in) .rc-tl2-win { opacity: 0; }
.rc-anim .rc-reveal:not(.is-in) .rc-tl2-dot { transform: scale(0); }

/* Cascade: from the sales result to the savings base */
.rc-cas { display: grid; gap: 8px; }
.rc-cas-row { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr) 6.5em; align-items: center; gap: 4px 14px; }
.rc-cas-l { font-size: 14px; color: var(--text-primary); line-height: 1.3; }
.rc-cas-track { position: relative; height: 22px; }
.rc-cas-track::before { content: ""; position: absolute; inset: 0; border-radius: 5px; background: var(--rc-track); opacity: .55; }
.rc-cas-track i { position: absolute; top: 0; bottom: 0; left: var(--l); width: var(--w); border-radius: 5px; background: var(--rc-sale); transform-origin: left center; transition: transform .55s cubic-bezier(.2,.7,.2,1) calc(var(--i) * .22s); }
.rc-cas-row.loss .rc-cas-track i { background: repeating-linear-gradient(135deg, var(--rc-prior) 0 4px, transparent 4px 7px); box-shadow: inset 0 0 0 1.5px var(--rc-prior); transform-origin: right center; }
.rc-cas-row.total { border-top: 1px solid var(--rc-rule); padding-top: 9px; margin-top: 2px; }
.rc-cas-row.total .rc-cas-track i { background: var(--rc-sale-3); }
.rc-cas-row.total .rc-cas-l, .rc-cas-row.total .rc-cas-v { font-weight: 750; }
.rc-cas-row.total .rc-cas-v { color: var(--rc-key); }
.rc-cas-v { text-align: right; font-size: 15px; font-weight: 650; white-space: nowrap; color: var(--text-primary); }
.rc-cas-row.loss .rc-cas-v { color: var(--text-secondary); }
.rc-anim .rc-reveal:not(.is-in) .rc-cas-track i { transform: scaleX(0); }

/* Savings scale as steps */
.rc-scale ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.rc-scale li { margin: 0; min-width: 0; display: flex; flex-direction: column; }
.rc-scale-col { height: 128px; display: flex; flex-direction: column; justify-content: flex-end; border-bottom: 1px solid var(--text-muted); }
.rc-scale-rate { font-size: 18px; font-weight: 800; letter-spacing: -.01em; color: var(--text-primary); margin-bottom: 5px; white-space: nowrap; }
.rc-scale i { display: block; height: calc(var(--r) * 3.2px); background: var(--rc-prior); border-radius: 6px 6px 0 0; transform-origin: bottom; transition: transform .5s ease calc(var(--i) * .1s); }
.rc-scale li.here i { background: var(--rc-sale); }
.rc-scale li.here .rc-scale-rate { color: var(--rc-key); }
.rc-scale-range { display: block; font-size: 12.5px; line-height: 1.3; color: var(--text-secondary); padding-top: 7px; }
.rc-anim .rc-reveal:not(.is-in) .rc-scale i { transform: scaleY(0); }

/* Foreign withholding per country */
.rc-whv { display: grid; gap: 16px; }
.rc-root .rc-vis .rc-whv-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: 14px; margin: 0 0 6px; }
.rc-whv-h b { color: var(--text-primary); }
.rc-whv-h span { color: var(--text-secondary); }
.rc-whv-bar { display: flex; gap: 3px; height: 22px; }
.rc-whv-bar i { display: block; flex: none; width: var(--w); height: 100%; transform-origin: left center; transition: transform .6s ease; }
.rc-whv-bar .ded { background: var(--rc-sale); border-radius: 6px 0 0 6px; }
.rc-whv-bar .ded:only-child { border-radius: 6px; }
.rc-whv-bar .rec { background: var(--rc-block); border-radius: 0 6px 6px 0; transition-delay: .45s; }
.rc-root .rc-vis .rc-whv-vals { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13.5px; color: var(--text-primary); margin-top: 7px; }
.rc-whv-vals span { display: inline-flex; align-items: center; gap: 7px; }
.rc-anim .rc-reveal:not(.is-in) .rc-whv-bar i { transform: scaleX(0); }

/* Two outcomes side by side */
.rc-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rc-cmp-i { display: grid; align-content: start; gap: 4px; background: var(--card-bg); border: 1px solid var(--rc-rule); border-top: 3px solid var(--rc-sale); border-radius: 10px; padding: 14px 16px; }
.rc-cmp-i.free { border-top-color: var(--accent-color, #10b981); }
.rc-cmp-i b { font-size: 15.5px; color: var(--text-primary); }
.rc-cmp-i span { font-size: 14.5px; line-height: 1.5; color: var(--text-secondary); }

/* Key dates */
.rc-article .rc-dates { list-style: none; margin: 0; padding: 0; }
.rc-dates li { position: relative; display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 2px 18px; padding: 10px 0 10px 22px; margin: 0; border-top: 1px solid var(--rc-rule); }
.rc-dates li:first-child { border-top: 0; padding-top: 2px; }
.rc-dates li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 9px; height: 9px; border-radius: 50%; background: var(--primary-color); }
.rc-dates li:first-child::before { top: 8px; }
.rc-dates b { font-size: 14.5px; color: var(--text-primary); }
.rc-dates span { font-size: 14.5px; line-height: 1.5; color: var(--text-secondary); }

/* Quiet offer inside the guide */
.rc-offerline { display: flex; align-items: center; justify-content: space-between; gap: 18px; max-width: 720px; margin: 22px 0 0; padding: 16px 20px; border-radius: 12px; background: var(--rc-result-bg); border: 1px solid var(--rc-rule); border-left: 3px solid var(--primary-color); text-decoration: none; }
.rc-offerline b { display: block; font-size: 16px; color: var(--text-primary); }
.rc-offerline > span > span { display: block; font-size: 14.5px; line-height: 1.5; color: var(--text-secondary); margin-top: 2px; }
.rc-offerline em { font-style: normal; font-weight: 700; color: var(--rc-link); white-space: nowrap; font-size: 14.5px; }
.rc-offerline:hover { border-color: var(--primary-color); }
.rc-offerline:focus-visible { outline: 3px solid var(--rc-focus); outline-offset: 2px; }

/* Framed product screenshot (light capture, reads on both themes) */
.rc-shot { margin: 26px 0 28px; max-width: 720px; }
.rc-shot picture { display: block; border: 1px solid var(--card-border); border-radius: 14px; overflow: hidden; background: #f8fafc; box-shadow: 0 1px 2px rgba(16,42,67,.06), 0 14px 34px -14px rgba(16,42,67,.24); }
.rc-shot img { display: block; width: 100%; height: auto; }
.rc-shot figcaption { font-size: 13.5px; line-height: 1.5; color: var(--text-secondary); margin: 10px 2px 0; }
html.dark .rc-shot picture, body.dark-theme .rc-shot picture, body.premium-dark-theme .rc-shot picture { border-color: #3d444d; box-shadow: 0 16px 36px -16px rgba(0,0,0,.7); }

/* Service page */
.rc-offer { display: grid; grid-template-columns: minmax(0, 372px) minmax(0, 1fr); gap: 28px 40px; align-items: start; }
.rc-offer-buy { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 18px; box-shadow: var(--seo-sh-md); padding: 26px 28px 24px; }
.rc-offer .rc-price b { font-size: 54px; }
.rc-checks { list-style: none; margin: 16px 0 20px; padding: 0; display: grid; gap: 9px; }
.rc-checks li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.5; color: var(--text-primary); margin: 0; }
.rc-checks li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 11px; height: 6px; border-left: 2px solid var(--accent-color); border-bottom: 2px solid var(--accent-color); transform: rotate(-45deg); }
.rc-root .rc-offer-buy .rc-cta { width: 100%; min-height: 52px; font-size: 17px; }
.rc-offer-buy .rc-guarantee-line { margin-top: 16px; }
.rc-shot.rc-shot-hero { margin: 0; max-width: none; }
.rc-svc { margin: 68px 0 0; }
.rc-page .rc-svc h2 { font-size: 26px; font-weight: 750; letter-spacing: -.016em; line-height: 1.24; color: var(--text-primary); margin: 0 0 16px; padding: 0; border: 0; scroll-margin-top: 84px; }
.rc-svc-lede { font-size: 16.5px; line-height: 1.65; color: var(--text-primary); max-width: 640px; margin: 0 0 14px; }
.rc-svc-note { font-size: 14px; line-height: 1.55; color: var(--text-secondary); max-width: 640px; margin: 16px 0 0; }
.rc-svc .rc-checks { margin-bottom: 0; }
.rc-flow { list-style: none; counter-reset: rc-flow; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.rc-flow li { counter-increment: rc-flow; margin: 0; border-top: 2px solid var(--primary-color); padding-top: 14px; }
.rc-flow li::before { content: counter(rc-flow); display: block; font-size: 28px; font-weight: 800; line-height: 1; color: var(--primary-color); margin-bottom: 10px; }
.rc-flow b { display: block; font-size: 17px; color: var(--text-primary); margin: 0 0 4px; }
.rc-flow span { display: block; font-size: 15px; line-height: 1.55; color: var(--text-secondary); }
.rc-svc-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 580px); gap: 32px 40px; align-items: start; }
.rc-shot.rc-shot-side { margin: 52px 0 0; max-width: none; }
.rc-docs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; margin: 4px 0 0; }
.rc-docs > div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 2px 14px; padding: 11px 0; border-top: 1px solid var(--card-border); }
.rc-docs dt { font-weight: 700; font-size: 15px; color: var(--text-primary); line-height: 1.45; }
.rc-docs dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-secondary); }
.rc-svc .rc-faq { max-width: 820px; }
.rc-svc .rc-more { list-style: none; padding: 0; margin: 0; max-width: 820px; }
.rc-closing { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 28px; margin: 56px 0 0; padding: 24px 28px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 18px; box-shadow: var(--seo-sh-md); }
.rc-closing p { margin: 0; font-size: 15.5px; color: var(--text-secondary); }
.rc-page .rc-closing .rc-closing-t { font-size: 20px; font-weight: 750; color: var(--text-primary); margin: 0; }

@media (max-width: 900px) {
  .rc-guide { grid-template-columns: minmax(0, 1fr); }
  .rc-page nav.rc-rail { display: none; }
  .rc-toc-m { display: block; margin: 0 0 14px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 12px; }
  .rc-toc-m summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 16px; font-size: 15px; font-weight: 700; color: var(--text-primary); }
  .rc-toc-m summary::-webkit-details-marker { display: none; }
  .rc-toc-m summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--primary-color); border-bottom: 2px solid var(--primary-color); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
  .rc-toc-m[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
  .rc-toc-m summary:focus-visible { outline: 3px solid var(--rc-focus); border-radius: 12px; }
  .rc-toc-m ol { list-style: none; margin: 0; padding: 0 16px 8px; }
  .rc-toc-m li { margin: 0; }
  .rc-toc-m a { display: block; padding: 10px 0; border-top: 1px solid var(--card-border); color: var(--text-primary); text-decoration: none; font-size: 15px; }
  .rc-article.rc-longform { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 10px 0 8px; margin-top: 0; }
  .rc-page .rc-longform h2 { font-size: 22px; }
  .rc-sec + .rc-sec { margin-top: 48px; }
  .rc-longform .rc-sec > p { font-size: 16.5px; }
  .rc-vis { padding: 16px 14px 12px; margin: 20px -4px 22px; }
  .rc-offer, .rc-svc-split { grid-template-columns: minmax(0, 1fr); }
  .rc-shot.rc-shot-side { margin: 4px 0 0; }
  .rc-flow { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .rc-docs { grid-template-columns: minmax(0, 1fr); }
  .rc-svc { margin-top: 52px; }
  .rc-page .rc-svc h2 { font-size: 22px; }
  .rc-offerline { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 560px) {
  .rc-offer .rc-price b { font-size: 46px; }
  .rc-offer-buy { padding: 20px 18px; }
  .rc-map, .rc-map tbody, .rc-map tr, .rc-map th, .rc-map td { display: block; width: auto; }
  .rc-map thead { display: none; }
  .rc-map tr { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--rc-rule); }
  .rc-map tbody tr:last-child { border-bottom: 0; }
  .rc-map tbody th, .rc-map tbody td { border: 0; border-radius: 0; padding: 0; background: none; width: auto; }
  .rc-map tbody th { font-size: 14.5px; }
  .rc-map td.rc-map-what { font-size: 12.5px; margin: 1px 0 3px; padding: 0; width: auto; }
  .rc-map td.rc-map-where { padding: 0; border: 0; }
  .rc-map .rc-map-where span { background: none; padding: 0 0 0 18px; font-size: 13.5px; }
  .rc-map .rc-map-where span::before { left: 0; top: 0; }
  .rc-vis-map { padding: 2px 14px 10px; }
  .rc-fifo2-labels > div { font-size: 12.5px; padding-left: 8px; }
  .rc-fifo2-labels b { font-size: 13.5px; }
  .rc-cas-row { grid-template-columns: minmax(0, 1fr) auto; }
  .rc-cas-track { grid-column: 1 / -1; grid-row: 2; }
  .rc-scale ol { gap: 4px; }
  .rc-scale-rate { font-size: 15px; }
  .rc-scale-range { font-size: 11.5px; }
  .rc-cmp { grid-template-columns: minmax(0, 1fr); }
  .rc-dates li { grid-template-columns: minmax(0, 1fr); }
  .rc-docs > div { grid-template-columns: minmax(0, 1fr); }
  .rc-closing { padding: 20px 18px; }
  .rc-closing .rc-cta { width: 100%; }
}

/* Phone: shorter long-form blocks (broker list as compact rows, faded crop for tall screenshots) */
@media (max-width: 700px) {
  .rc-bt .rc-tbl-stack tr { border: 0; border-bottom: 1px solid var(--card-border); border-radius: 0; padding: 10px 0; margin: 0; background: none; }
  .rc-bt .rc-tbl-stack tbody th { padding: 0 0 2px; font-size: 15px; }
  .rc-bt .rc-tbl-stack td { padding: 0; font-size: 14px; line-height: 1.45; }
  .rc-bt .rc-tbl-stack td::before { display: none; }
  .rc-bt .rc-tbl-stack td.bt-note { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
}
@media (max-width: 900px) {
  .rc-law li { padding: 8px 0; font-size: 14px; }
  .rc-law span { line-height: 1.5; }
}
@media (max-width: 560px) {
  .rc-shot-fade picture { position: relative; }
  .rc-shot-fade picture::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 84px; background: linear-gradient(rgba(248,250,252,0), #f8fafc 88%); pointer-events: none; }
}

/* Wave 2: hub cards, compare figures, split bars, year strip, reference tables as rows */
.rc-picks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; align-items: start; }
.rc-picks li { margin: 0; display: flex; }
.rc-picks a { flex: 1; display: grid; grid-template-rows: auto auto auto; gap: 6px; padding: 20px 22px 18px; background: var(--card-bg); border: 1px solid var(--card-border); border-top: 3px solid var(--primary-color); border-radius: 14px; box-shadow: var(--seo-sh-md); text-decoration: none; transition: border-color .15s, transform .15s; }
.rc-picks a:hover { border-color: var(--primary-color); transform: translateY(-1px); }
.rc-picks a:focus-visible { outline: 3px solid var(--rc-focus); outline-offset: 2px; }
.rc-picks b { font-size: 17.5px; line-height: 1.3; font-weight: 750; letter-spacing: -.01em; color: var(--text-primary); }
.rc-picks span { font-size: 15px; line-height: 1.5; color: var(--text-secondary); }
.rc-picks em { font-style: normal; font-weight: 700; font-size: 14.5px; color: var(--rc-link); margin-top: 6px; }
.rc-needs { margin: 14px 0 0; padding: 16px 22px 14px; border: 1px dashed var(--card-border); border-radius: 14px; }
.rc-page .rc-needs h2 { font-size: 15.5px; font-weight: 750; color: var(--text-primary); margin: 0 0 10px; padding: 0; border: 0; }
.rc-needs ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 24px; }
.rc-needs li { position: relative; margin: 0; padding-left: 16px; font-size: 14px; line-height: 1.45; color: var(--text-secondary); }
.rc-needs li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 6px; height: 6px; border-radius: 2px; background: var(--text-muted); }
.rc-needs + .rc-next { margin-top: 18px; }
@media (max-width: 1000px) { .rc-needs ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .rc-needs { padding: 14px 16px 12px; } .rc-needs ul { grid-template-columns: minmax(0, 1fr); } }
.rc-longform .rc-sec > .rc-tblwrap { max-width: 760px; }

.rc-cmp-i.muted { border-top-color: var(--rc-lost); }
.rc-cmp-i.muted b, .rc-cmp-i.muted .rc-cmp-fig { color: var(--text-secondary); }
.rc-cmp-fig { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--rc-key); font-variant-numeric: tabular-nums; margin: 4px 0 2px; }

.rc-split { display: grid; gap: 16px; }
.rc-split-bar { display: flex; gap: 3px; height: 22px; }
.rc-split-bar i { display: block; flex: none; width: var(--w); height: 100%; background: var(--rc-sale); transform-origin: left center; transition: transform .55s ease calc(var(--i) * .35s); }
.rc-split-bar i:first-child { border-radius: 6px 0 0 6px; }
.rc-split-bar i:last-child { border-radius: 0 6px 6px 0; }
.rc-split-bar i.prior { background: var(--rc-prior); }
.rc-split-bar i.pending { background: repeating-linear-gradient(135deg, var(--rc-prior) 0 4px, transparent 4px 7px); box-shadow: inset 0 0 0 1.5px var(--rc-prior); }
.rc-split-bar i.block { background: var(--rc-block); }
.rc-split-bar i.free { background: var(--accent-color, #10b981); }
.rc-sw.prior { background: var(--rc-prior); }
.rc-sw.pending { background: repeating-linear-gradient(135deg, var(--rc-prior) 0 3px, transparent 3px 5px); box-shadow: inset 0 0 0 1.5px var(--rc-prior); }
.rc-sw.free { background: var(--accent-color, #10b981); box-shadow: none; }
.rc-anim .rc-reveal:not(.is-in) .rc-split-bar i { transform: scaleX(0); }

.rc-article .rc-years { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.rc-years li { margin: 0; display: grid; gap: 3px; padding: 10px 8px 9px; border-radius: 8px; background: var(--rc-free-tint); text-align: center; transition: opacity .35s ease calc(var(--i) * .12s), transform .35s ease calc(var(--i) * .12s); }
.rc-years b { font-size: 16px; font-weight: 800; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.rc-years span { font-size: 12.5px; line-height: 1.25; color: var(--rc-free-ink); font-weight: 600; }
.rc-years li.origin { background: var(--primary-light, rgba(46,134,193,.12)); }
.rc-years li.origin span { color: var(--rc-key); }
.rc-years li.last { background: var(--rc-block-tint); box-shadow: inset 0 0 0 1.5px var(--rc-block); }
.rc-years li.last span { color: var(--rc-block-ink); }
.rc-years li.gone { background: none; box-shadow: inset 0 0 0 1px var(--rc-rule); }
.rc-years li.gone b { color: var(--text-muted); text-decoration: line-through; }
.rc-years li.gone span { color: var(--text-secondary); font-weight: 500; }
.rc-anim .rc-reveal:not(.is-in) .rc-years li { opacity: 0; transform: translateY(4px); }

.rc-tbl-rows tbody th { text-align: left; font-weight: 700; font-size: 15px; padding: 11px 14px; border-bottom: 1px solid var(--card-border); vertical-align: top; color: var(--text-primary); background: none; }
.rc-tbl-rows td { font-size: 14.5px; }
.rc-tbl-rows td:first-child { font-weight: 400; }
.rc-longform .rc-rowswrap { max-width: 760px; margin-bottom: 8px; }
.rc-morerows { max-width: 760px; margin: 4px 0 22px; }
.rc-morerows summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; font-size: 15px; color: var(--rc-link); }
.rc-morerows summary::-webkit-details-marker { display: none; }
.rc-morerows summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.rc-morerows[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.rc-morerows summary:focus-visible { outline: 3px solid var(--rc-focus); border-radius: 6px; }
.rc-morerows thead { display: none; }

@media (max-width: 900px) {
  .rc-picks { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .rc-picks a { padding: 16px 16px 14px; }
}
@media (max-width: 700px) {
  .rc-tbl-rows, .rc-tbl-rows tbody, .rc-tbl-rows tr, .rc-tbl-rows th, .rc-tbl-rows td { display: block; width: auto; }
  .rc-tbl-rows thead { display: none; }
  .rc-tbl-rows tr { padding: 9px 0; border-bottom: 1px solid var(--card-border); }
  .rc-tbl-rows tbody th, .rc-tbl-rows td { border: 0; padding: 0; }
  .rc-tbl-rows tbody th { font-size: 15px; padding-bottom: 2px; }
  .rc-tbl-rows td { font-size: 13.5px; line-height: 1.45; color: var(--text-primary); }
  .rc-tbl-rows td::before { content: attr(data-label) ": "; color: var(--text-secondary); font-weight: 600; }
  .rc-tbl-rows td:last-child { color: var(--text-secondary); }
  .rc-rowswrap { overflow: visible; }
}
@media (max-width: 560px) {
  .rc-article .rc-years { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rc-cmp-fig { font-size: 23px; }
}
/* bootstrap_premium_dark.css paints every th with !important; row-heading cells keep the row's own surface */
.rc-root .rc-tbl-rows tbody th, .rc-root .rc-tbl-stack tbody th { background-color: transparent !important; }
.rc-root .rc-map tbody th { background-color: var(--card-bg) !important; }
@media (max-width: 560px) { .rc-root .rc-map tbody th { background-color: transparent !important; } }
/* Phone: two-column reference tables keep short answers ("Dos meses") on one line */
@media (max-width: 560px) {
  .rc-longform .rc-tbl:not(.rc-tbl-rows):not(.rc-tbl-stack) th, .rc-longform .rc-tbl:not(.rc-tbl-rows):not(.rc-tbl-stack) td { padding: 10px 8px; }
  .rc-longform .rc-tbl:not(.rc-tbl-rows):not(.rc-tbl-stack):not(:has(thead th:nth-child(3))) td:not(:first-child) { white-space: nowrap; }
}

/* Broker logos: each broker's own square icon on a white tile with a hairline, on both themes
   (Trade Republic, Revolut and MyInvestor are dark marks on transparent). Sizes: 20 in a figure
   label, 24 inline, 28 in a figure card, 32 in a list. alt="" where the name is the text beside
   the logo; the broker name where a logo stands alone (the service price card strip). */
.rc-root .rc-logo { display: inline-block; flex: none; width: 24px; height: 24px; border-radius: 6px; background: #ffffff; border: 1px solid rgba(15,40,70,.14); background-clip: padding-box; box-sizing: border-box; object-fit: cover; vertical-align: middle; }
.rc-root .rc-logo-s { width: 20px; height: 20px; border-radius: 5px; }
.rc-root .rc-logo-m { width: 28px; height: 28px; border-radius: 7px; }
html.dark .rc-root .rc-logo, body.dark-theme .rc-root .rc-logo, body.premium-dark-theme .rc-root .rc-logo { border-color: rgba(255,255,255,.24); }
/* Guide: broker documents table */
/* vertical-align: top, or the image's bottom edge becomes the line's baseline and the phone row gains a gap under the name */
.rc-bt .rc-brk { display: inline-flex; align-items: center; gap: 10px; vertical-align: top; }
a.rc-brk:hover span { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) {
  .rc-bt tr:has(.rc-logo) td { padding-left: 34px; }
}
/* Guide: FIFO lot labels */
.rc-fifo2-labels .rc-lot-brk { display: flex; align-items: flex-start; gap: 8px; }
/* FIFO calculator: whose purchases each view counts */
.rc-cmp-logos { display: flex; gap: 6px; margin: 0 0 6px; }
/* Service: one quiet row under "all your brokers" */
.rc-logostrip { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
/* Service: "Qué nos mandas" */
.rc-docs > div { grid-template-columns: 12.5em minmax(0, 1fr); }
.rc-docs dt { display: flex; align-items: flex-start; gap: 12px; }
.rc-docs dt > span:last-child { padding-top: 5px; }
.rc-docs dd { padding-top: 5px; }
.rc-docs-logo { position: relative; flex: none; width: 32px; height: 32px; }
.rc-root .rc-docs-logo .rc-logo { width: 32px; height: 32px; border-radius: 8px; }
/* "Trade Republic y MyInvestor": one logo per name line, stacked in the same 32px column (on phones the second hangs beside the indented documents line) */
.rc-root .rc-docs-logo.is-pair .rc-logo { position: absolute; left: 4px; top: 0; width: 24px; height: 24px; border-radius: 6px; }
.rc-root .rc-docs-logo.is-pair .rc-logo:last-child { top: 28px; }
.rc-docs-logo.is-other { border: 1px dashed var(--card-border); border-radius: 8px; box-sizing: border-box; }
.rc-docs-logo.is-other::before, .rc-docs-logo.is-other::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 1px; background: var(--text-muted); }
.rc-docs-logo.is-other::after { transform: rotate(90deg); }
@media (max-width: 560px) {
  .rc-docs > div { grid-template-columns: minmax(0, 1fr); }
  .rc-docs dd { padding-top: 2px; padding-left: 44px; }
}
