/* ═══════════════════════════════════════════════════════════════════════
   LEXSTART · PÁGINA "ME HAN DESPEDIDO" (v26)
   Baraja de cartas al hacer scroll + guía del despido en España.
   Usa los tokens de apple.css (--bg, --card, --ink…) → modo claro y oscuro.
   Sin JavaScript o con "reducir movimiento": las cartas se muestran en lista estática.
   ═══════════════════════════════════════════════════════════════════════ */

.pg-despido .page-hero { --aura1: rgba(46, 158, 128, .36); --aura2: rgba(220, 90, 70, .16); min-height: 72vh; display: flex; align-items: center; position: relative; overflow: hidden; }
/* Estructura del héroe (las demás páginas de servicio la llevan en su propio <style>) */
.pg-despido .page-hero .inner { position: relative; z-index: 1; width: 100%; text-align: center; }
.pg-despido .breadcrumb { font-family: 'Outfit', sans-serif; margin-bottom: 24px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pg-despido .page-hero h1 { margin: 0 auto 24px; max-width: 1000px; }
.pg-despido .page-hero h1 em { font-style: normal; display: block; }
.pg-despido .page-hero p { max-width: 640px; margin: 0 auto 40px; }
.pg-despido .hero-ctas-wrap { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.pg-despido .hero-stats-row { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.pg-despido .hs-item { text-align: center; }
.pg-despido .hs-num { font-family: 'Outfit', sans-serif; line-height: 1; }
.pg-despido .hs-label { font-family: 'Outfit', sans-serif; margin-top: 5px; }
.pg-despido .dk-alert { display: inline-flex; align-items: center; gap: 10px; margin: 0 auto 30px; padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: #f5f5f7; font-size: 15px; font-weight: 500; }
.pg-despido .dk-alert b { color: #7ECFCF; font-weight: 700; }
.pg-despido .dk-alert i { width: 8px; height: 8px; border-radius: 50%; background: #ff6b5a; box-shadow: 0 0 0 0 rgba(255, 107, 90, .6); animation: dkPulse 2s infinite; }
@keyframes dkPulse { 70% { box-shadow: 0 0 0 10px rgba(255, 107, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 107, 90, 0); } }

/* ───────────────── BARAJA ───────────────── */
.dk { position: relative; background: #000; color: #f5f5f7; overflow: clip; }
.dk::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 45% at 50% 55%, rgba(46, 158, 128, .22), transparent 70%); pointer-events: none; }
.dk-pin { position: relative; }
.dk-head { position: relative; z-index: 5; max-width: var(--a-max); margin: 0 auto; padding: 0 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.pg-despido .dk-head h2 { font-size: clamp(30px, 4.4vw, 54px) !important; color: #f5f5f7; margin: 0; }
.dk-head .a-eyebrow { color: #7ECFCF; }
.dk-count { flex: none; font-size: 15px; font-weight: 600; color: #a1a1a6; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.dk-count b { color: #f5f5f7; font-size: 28px; font-weight: 700; }
.dk-bar { position: absolute; left: 22px; right: 22px; bottom: 26px; max-width: calc(var(--a-max) - 44px); margin: 0 auto; height: 2px; background: rgba(255, 255, 255, .12); border-radius: 2px; overflow: hidden; z-index: 5; }
.dk-bar i { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #3BB89A, #7ECFCF); }

/* Carta */
.dk-card { --w: min(380px, 84vw); --h: min(540px, 62svh); width: var(--w); height: var(--h); position: relative; transform-style: preserve-3d; }
.dk-face { position: absolute; inset: 0; border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; padding: clamp(22px, 3vh, 32px); box-sizing: border-box; }
.dk-front { background: linear-gradient(160deg, #0f1916 0%, #070b0a 70%); border: 1px solid rgba(126, 207, 207, .22); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06); }
.dk-front::before { content: ''; position: absolute; inset: 10px; border-radius: 18px; border: 1px solid rgba(126, 207, 207, .12); pointer-events: none; }
.dk-front::after { content: ''; position: absolute; inset: -40%; background: radial-gradient(40% 35% at 70% 20%, rgba(46, 158, 128, .35), transparent 70%); pointer-events: none; }
.dk-idx { position: absolute; font-size: 15px; font-weight: 700; color: #7ECFCF; line-height: 1; z-index: 1; }
.dk-idx.tl { top: 22px; left: 24px; } .dk-idx.br { bottom: 22px; right: 24px; transform: rotate(180deg); }
.dk-num { position: relative; z-index: 1; margin-top: auto; font-size: clamp(90px, 15vh, 150px); font-weight: 800; line-height: .8; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.6px rgba(126, 207, 207, .65); }
.dk-ico { position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(126, 207, 207, .1); color: #7ECFCF; margin-bottom: auto; margin-top: 18px; }
.dk-ico svg { width: 26px; height: 26px; }
.dk-front h3 { position: relative; z-index: 1; margin: 22px 0 0; font-size: clamp(22px, 3vh, 28px); line-height: 1.1; font-weight: 700; letter-spacing: -.025em; color: #f5f5f7; }
.dk-front p { position: relative; z-index: 1; margin: 10px 0 0; font-size: clamp(14px, 1.9vh, 16px); line-height: 1.45; color: #a1a1a6; }
.dk-hint { position: relative; z-index: 1; margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #7ECFCF; }
.dk-hint svg { width: 14px; height: 14px; animation: dkBob 1.6s ease-in-out infinite; }
@keyframes dkBob { 50% { transform: translateY(3px); } }
.dk-back { transform: rotateY(180deg); background: var(--card); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); border: 1px solid var(--line); }
.dk-back .dk-bt { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--a-teal-ink); letter-spacing: .02em; }
.dk-back .dk-bt span:first-child { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--a-teal); color: #fff; font-size: 13px; }
.dk-back h4 { margin: 12px 0 0; font-size: clamp(19px, 2.6vh, 23px); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.dk-back ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: clamp(8px, 1.3vh, 12px); }
.dk-back li { position: relative; padding-left: 24px; font-size: clamp(13.5px, 1.75vh, 15.5px); line-height: 1.42; color: var(--ink2); }
.dk-back li::before { content: ''; position: absolute; left: 0; top: .35em; width: 14px; height: 14px; border-radius: 50%; background: var(--a-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6,12.5 10,16.5 18,8.5'/%3E%3C/svg%3E") center/9px no-repeat; }
.dk-back li b { color: var(--ink); font-weight: 600; }
.dk-key { margin-top: auto; padding: 12px 14px; border-radius: 14px; background: rgba(46, 158, 128, .1); color: var(--ink); font-size: clamp(13px, 1.7vh, 14.5px); line-height: 1.4; }
.dk-key b { color: var(--a-teal-ink); }

/* Entrega final: mano con tarjeta de visita */
.dk-final { position: relative; text-align: center; }
.dk-deliver { position: relative; width: min(560px, 90vw); aspect-ratio: 4 / 3; margin: 0 auto; container-type: inline-size; }
.dk-deliver svg.dk-hand { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.dk-deliver svg.dk-hand.front { z-index: 3; }
.dk-bcard { position: absolute; z-index: 2; left: 7.14%; top: 14.29%; width: 71.43%; height: 61.67%; border-radius: 4.5cqw; overflow: hidden; text-align: left; color: #fff;
  background: linear-gradient(150deg, #0e1a16 0%, #050807 70%); border: 1px solid rgba(126, 207, 207, .3);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .08); padding: 5.5cqw 6cqw; box-sizing: border-box; display: flex; flex-direction: column; }
.dk-bcard::before { content: ''; position: absolute; inset: -30%; background: radial-gradient(40% 40% at 80% 10%, rgba(46, 158, 128, .4), transparent 70%); pointer-events: none; }
.dk-bcard::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2.2cqw; background: linear-gradient(90deg, #2E9E80, #7ECFCF); }
.dk-bcard > * { position: relative; }
.dk-blogo { display: flex; align-items: flex-end; gap: 1.6cqw; }
.dk-blogo svg { height: 7.2cqw; width: auto; }
.dk-blogo b { display: block; font-weight: 900; font-size: 4.8cqw; line-height: .8; color: #2E9E80; }
.dk-blogo span { display: block; font-weight: 300; font-size: 3.4cqw; letter-spacing: .19em; color: #7ECFCF; margin-top: .4cqw; }
.dk-bname { margin-top: auto; font-size: 5.2cqw; font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
.dk-brole { font-size: 2.6cqw; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #7ECFCF; margin-top: 1.2cqw; }
.dk-brows { margin-top: 3cqw; display: grid; gap: 1.2cqw; font-size: 3cqw; color: rgba(255, 255, 255, .88); }
.dk-brows span { display: flex; align-items: center; gap: 1.6cqw; }
.dk-brows svg { width: 3.2cqw; height: 3.2cqw; flex: none; color: #7ECFCF; }
.dk-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }
.dk-cta { display: inline-flex; align-items: center; gap: 9px; height: 48px; padding: 0 20px; border-radius: 999px; font-size: 16px; font-weight: 600; text-decoration: none; transition: transform .35s var(--a-ease-out), filter .3s, background .3s; }
.dk-cta svg { width: 19px; height: 19px; }
.dk-cta.wa { background: #25D366; color: #fff; }
.dk-cta.mail, .dk-cta.cal { background: rgba(255, 255, 255, .1); color: #f5f5f7; border: 1px solid rgba(255, 255, 255, .16); }
.dk-cta:hover { filter: brightness(1.08); transform: translateY(-2px); }
.dk-cta:active { transform: scale(.97); }
.dk-final h3, .dk-final > p, .dk-final .dk-ctas { position: relative; z-index: 5; }
.dk-final h3 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; letter-spacing: -.03em; margin: 0 0 6px; color: #f5f5f7; }
.dk-final > p { color: #a1a1a6; font-size: clamp(16px, 1.5vw, 19px); margin: 0 auto 10px; max-width: 560px; }

/* ── Modo estático (sin JS o reducir movimiento): lista legible ── */
.dk:not(.dk-live) { padding: clamp(90px, 10vw, 130px) 0; }
.dk:not(.dk-live) .dk-count, .dk:not(.dk-live) .dk-bar, .dk:not(.dk-live) .dk-hint, .dk:not(.dk-live) .dk-final-tag { display: none; }
.dk:not(.dk-live) .dk-stage { max-width: var(--a-max); margin: 50px auto 0; padding: 0 22px; display: grid; gap: 22px; }
.dk:not(.dk-live) .dk-card { width: auto; height: auto; display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; transform: none !important; }
.dk:not(.dk-live) .dk-face { position: relative; inset: auto; transform: none; min-height: 300px; }
.dk:not(.dk-live) .dk-final { margin-top: 30px; }
@media (max-width: 760px) { .dk:not(.dk-live) .dk-card { grid-template-columns: 1fr; } }

/* ── Modo baraja (activado por despido.js) ── */
.dk.dk-live .dk-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; padding-top: calc(var(--nav-h) + var(--sub-h, 0px) + 22px); box-sizing: border-box; }
.dk.dk-live .dk-stage { position: relative; flex: 1; perspective: 1600px; }
.dk.dk-live .dk-card { position: absolute; left: 50%; top: 50%; margin-left: calc(var(--w) / -2); margin-top: calc(var(--h) / -2); will-change: transform; }
.dk.dk-live .dk-final { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; pointer-events: none; }
.dk.dk-live .dk-final.on { pointer-events: auto; }
.dk.dk-live .dk-final .dk-deliver { width: min(480px, 84vw, 52svh * 1.33); will-change: transform; }
.dk.dk-live .dk-final { padding-bottom: 40px; box-sizing: border-box; }
.dk.dk-live .dk-final .dk-ctas, .dk.dk-live .dk-final h3, .dk.dk-live .dk-final > p { will-change: opacity, transform; }
.dk-headswap [data-state] { transition: opacity .4s var(--a-ease); }
.dk-headswap { display: grid; }
.dk-headswap > * { grid-area: 1 / 1; }
.dk-headswap .final { opacity: 0; }
.dk.at-final .dk-headswap .steps { opacity: 0; }
.dk.at-final .dk-headswap .final { opacity: 1; }
@media (max-width: 760px) {
  .dk.dk-live .dk-card { --w: min(340px, 84vw); --h: min(500px, 60svh); }
  .dk-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .dk-count b { font-size: 22px; }
  .dk-final h3 { font-size: 24px; }
  .dk-cta { height: 44px; font-size: 15px; padding: 0 16px; }
}
@media (max-height: 700px) { .dk.dk-live .dk-card { --h: min(460px, 58svh); } .dk-num { font-size: 80px; } .dk-ico { display: none; } }

/* ───────────────── GUÍA DEL DESPIDO ───────────────── */
.dg { padding: clamp(90px, 10vw, 130px) 0; background: var(--bg); }
.dg.alt { background: var(--bg2); }
.dg-wrap { max-width: var(--a-max); margin: 0 auto; padding: 0 22px; }
.dg-intro { max-width: 820px; }
.dg-intro p { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; color: var(--ink2); margin: 18px 0 0; }
.dg-grid { display: grid; gap: 20px; margin-top: 48px; }
.dg-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.dg-grid.c2 { grid-template-columns: repeat(2, 1fr); }
.dg-card { background: var(--card); border-radius: 24px; padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow-card); transition: transform .6s var(--a-ease-out), box-shadow .6s; }
.dg-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.dg-card .tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: rgba(46, 158, 128, .12); color: var(--a-teal-ink); }
.dg-card h3 { margin: 14px 0 0; font-size: clamp(21px, 2vw, 25px); font-weight: 700; letter-spacing: -.02em; color: var(--ink); line-height: 1.15; }
.dg-card p, .dg-card li { font-size: 16px; line-height: 1.55; color: var(--ink2); }
.dg-card p { margin: 10px 0 0; }
.dg-card ul { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.dg-card .foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink); font-weight: 600; }
.dg-card.proc { border-top: 4px solid #2E9E80; } .dg-card.impr { border-top: 4px solid #F59E0B; } .dg-card.nulo { border-top: 4px solid #ef5b4c; }
.dg-card.impr .tag { background: rgba(245, 158, 11, .14); color: #b86e00; } .dg-card.nulo .tag { background: rgba(239, 91, 76, .14); color: #c73a2b; }
html[data-theme="dark"] .dg-card.impr .tag { color: #fbbf24; } html[data-theme="dark"] .dg-card.nulo .tag { color: #fca5a5; }
.dg-table-wrap { margin-top: 44px; border-radius: 22px; overflow-x: auto; background: var(--card); box-shadow: var(--shadow-card); }
.dg-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.dg-table th { text-align: left; padding: 16px 20px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .7); background: #000; }
.dg-table td { padding: 16px 20px; font-size: 15.5px; color: var(--ink); border-top: 1px solid var(--line); vertical-align: top; }
.dg-table td b { color: var(--a-teal-ink); }
.dg-table tr:hover td { background: var(--bg2); }
.dg-time { margin-top: 48px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; }
.dg-time::before { content: ''; position: absolute; left: 4%; right: 4%; top: 27px; height: 2px; background: linear-gradient(90deg, #2E9E80, #7ECFCF); opacity: .5; }
.dg-step { position: relative; text-align: center; }
.dg-step .d { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--card); box-shadow: var(--shadow-card), inset 0 0 0 2px rgba(46, 158, 128, .5); font-weight: 800; font-size: 15px; color: var(--a-teal-ink); position: relative; }
.dg-step h4 { margin: 14px 0 0; font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.dg-step p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--ink2); }
.dg-news { margin-top: 44px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.dg-new { background: var(--card); border-radius: 24px; padding: 28px; box-shadow: var(--shadow-card); position: relative; overflow: hidden; }
.dg-new::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(#2E9E80, #7ECFCF); }
.dg-new .when { font-size: 13px; font-weight: 700; color: var(--a-teal-ink); }
.dg-new h3 { margin: 8px 0 0; font-size: 21px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); line-height: 1.2; }
.dg-new p { margin: 10px 0 0; font-size: 16px; line-height: 1.55; color: var(--ink2); }
.dg-note { margin-top: 26px; font-size: 14px; color: var(--ink3); line-height: 1.5; }

/* Calculadora */
.dg-calc { margin-top: 44px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.dg-calc form, .dg-calc .res { background: var(--card); border-radius: 24px; padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow-card); }
.dg-calc label { display: block; font-size: 13px; font-weight: 600; color: var(--ink2); margin: 0 0 6px; }
.dg-calc input, .dg-calc select { width: 100%; box-sizing: border-box; font: 400 16px 'Outfit', sans-serif; color: var(--ink); background: var(--field); border: 1px solid transparent; border-radius: 12px; padding: 13px 14px; outline: none; transition: border-color .3s, box-shadow .3s; }
.dg-calc input:focus, .dg-calc select:focus { border-color: var(--a-teal); box-shadow: 0 0 0 4px rgba(46, 158, 128, .16); }
.dg-calc .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dg-calc .fgp { margin-bottom: 16px; }
.dg-calc button { width: 100%; height: 50px; border: 0; border-radius: 999px; background: var(--a-teal); color: #fff; font: 600 16px 'Outfit', sans-serif; cursor: pointer; transition: filter .3s, transform .3s; }
.dg-calc button:hover { filter: brightness(1.08); }
.dg-calc button:active { transform: scale(.98); }
.dg-calc .res { display: flex; flex-direction: column; justify-content: center; background: #000; color: #f5f5f7; position: relative; overflow: hidden; }
.dg-calc .res::before { content: ''; position: absolute; inset: -30%; background: radial-gradient(40% 40% at 80% 20%, rgba(46, 158, 128, .35), transparent 70%); pointer-events: none; }
.dg-calc .res > * { position: relative; }
.dg-calc .res .lbl { font-size: 14px; color: #a1a1a6; }
.dg-calc .res .amt { font-size: clamp(38px, 5vw, 58px); font-weight: 700; letter-spacing: -.04em; background: linear-gradient(135deg, #3BB89A, #7ECFCF 55%, #d7fff4); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; margin-top: 6px; }
.dg-calc .res .det { margin-top: 12px; font-size: 15px; color: #d2d2d7; line-height: 1.5; }
.dg-calc .res .warn { margin-top: 16px; font-size: 13px; color: #86868b; line-height: 1.45; }

/* Relacionados y contacto */
.dg-links { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dg-link { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-card); text-decoration: none; color: var(--ink); transition: transform .5s var(--a-ease-out), box-shadow .5s; }
.dg-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.dg-link .k { font-size: 12px; font-weight: 700; color: var(--a-teal-ink); }
.dg-link .t { font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.dg-contact { background: #000; color: #f5f5f7; padding: clamp(100px, 11vw, 150px) 0; position: relative; overflow: hidden; text-align: center; }
.dg-contact::before { content: ''; position: absolute; left: 50%; top: 0; width: 1100px; max-width: 100%; height: 700px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(46, 158, 128, .28), transparent); pointer-events: none; }
.dg-contact > * { position: relative; }
.pg-despido .dg-contact h2 { color: #f5f5f7; font-size: clamp(40px, 7vw, 88px) !important; }
.dg-contact p { color: #a1a1a6; font-size: clamp(17px, 1.7vw, 21px); max-width: 640px; margin: 18px auto 0; }
.dg-contact .dk-ctas { margin-top: 34px; }
.dg-disc { background: var(--bg2); padding: 22px; text-align: center; font-size: 13px; color: var(--ink3); line-height: 1.5; }

@media (max-width: 980px) { .dg-grid.c3 { grid-template-columns: 1fr; } .dg-links { grid-template-columns: 1fr 1fr; } .dg-news { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .dg-grid.c2, .dg-calc, .dg-links { grid-template-columns: 1fr; }
  .dg-calc .row { grid-template-columns: 1fr; gap: 0; }
  .dg-time { grid-template-columns: 1fr; gap: 18px; }
  .dg-time::before { left: 27px; right: auto; top: 4%; bottom: 4%; width: 2px; height: auto; background: linear-gradient(#2E9E80, #7ECFCF); }
  .dg-step { display: grid; grid-template-columns: 56px 1fr; gap: 0 16px; text-align: left; align-items: start; }
  .dg-step .d { grid-row: span 2; margin: 0; }
  .dg-step h4 { margin: 4px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .dk-hint svg, .pg-despido .dk-alert i { animation: none; } }

/* Inglés: las reglas de idioma de shared.css fuerzan display:block; se restaura el círculo centrado */
body.en .dg-step .d[data-en] { display: grid !important; }
body.en .dg-card span.tag[data-en] { display: inline-block !important; }


/* Inglés: las celdas [data-en] deben seguir siendo celdas de tabla (shared.css las fuerza a block) */
body.en .dg-table th[data-en], body.en .dg-table td[data-en] { display: table-cell !important; }

/* Tabla de indemnizaciones en móvil: fichas apiladas */
@media (max-width: 640px) {
  .dg-table-wrap { background: transparent; box-shadow: none; overflow: visible; }
  .dg-table { min-width: 0; }
  .dg-table thead { display: none; }
  .dg-table, .dg-table tbody, .dg-table tr { display: block; }
  .dg-table tr { background: var(--card); border-radius: 18px; box-shadow: var(--shadow-card); padding: 16px 18px; margin-bottom: 12px; }
  .dg-table td { display: block; border: 0; padding: 2px 0; font-size: 15px; }
  body:not(.en) .dg-table td[data-es]:first-child, body.en .dg-table td[data-en]:nth-child(2) { font-weight: 700; font-size: 16.5px; margin-bottom: 4px; }
  body:not(.en) .dg-table td:nth-child(5)::before { content: 'Máximo: '; color: var(--ink3); }
  body.en .dg-table td:nth-child(6)::before { content: 'Cap: '; color: var(--ink3); }
  body.en .dg-table td[data-en] { display: block !important; }
  .dg-table tr:hover td { background: transparent; }
}
/* ═══════════════════════════════════════════════════════════════════════
   v27 · GUÍA EDITORIAL (prefijo dx-)
   Tipografía protagonista, filas editoriales, selector con deslizador,
   cifras gigantes, calculadora en vivo, línea de tiempo ligada al scroll.
   ═══════════════════════════════════════════════════════════════════════ */
.dx { --g: linear-gradient(120deg, #13705a 0%, #2E9E80 48%, #43c09f 100%); padding: clamp(110px, 12vw, 180px) 0; background: var(--bg); position: relative; }
html[data-theme="dark"] .dx, .dx.dark { --g: linear-gradient(120deg, #3BB89A 0%, #7ECFCF 55%, #c9f5ec 100%); }
.dx.alt { background: var(--bg2); }
.dx.dark { background: #000; color: #f5f5f7; overflow: clip; }
.dx.dark::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 40% at 85% 10%, rgba(46, 158, 128, .28), transparent 70%), radial-gradient(40% 40% at 5% 95%, rgba(126, 207, 207, .1), transparent 70%); }
.dx-wrap { max-width: var(--a-max); margin: 0 auto; padding: 0 22px; position: relative; }
.dx-head { max-width: 880px; }
.dx-head.dx-center { margin: 0 auto; text-align: center; }
.dx-head.dx-center .dx-lead { margin-left: auto; margin-right: auto; }
.pg-despido .dx-head h2 { font-size: clamp(40px, 6.2vw, 84px) !important; line-height: 1.02 !important; letter-spacing: -.045em !important; margin: 0; color: var(--ink); }
.pg-despido .dx.dark .dx-head h2 { color: #f5f5f7; }
.dx.dark .a-eyebrow { color: #7ECFCF !important; }
.dx-lead { font-size: clamp(18px, 1.8vw, 23px); line-height: 1.45; color: var(--ink2); margin: 24px 0 0; max-width: 700px; letter-spacing: -.01em; }
.dx.dark .dx-lead { color: #a1a1a6; }
.dx-headrow { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }

/* ── Capítulo 1 · Filas editoriales ── */
.dx-rows { list-style: none; margin: clamp(56px, 7vw, 90px) 0 0; padding: 0; border-top: 1px solid var(--line); }
.dx-row { --mx: 50%; --my: 50%; position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr) 300px; gap: 32px; padding: clamp(34px, 4vw, 52px) 0; border-bottom: 1px solid var(--line); align-items: start; isolation: isolate; }
.dx-row::before { content: ''; position: absolute; inset: 0 -26px; z-index: -1; border-radius: 30px; opacity: 0; transition: opacity .6s var(--a-ease); background: radial-gradient(640px circle at var(--mx) var(--my), rgba(46, 158, 128, .11), transparent 55%); }
.dx-row:hover::before { opacity: 1; }
.dx-row::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--g); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--a-ease) .25s; }
.dx-row.revealed::after { transform: scaleX(1); }
.dx-n { font-size: 15px; font-weight: 600; color: var(--ink3); padding-top: 16px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.dx-row h3 { font-size: clamp(36px, 4.6vw, 64px); font-weight: 700; letter-spacing: -.045em; line-height: 1; margin: 0; color: var(--ink); transition: color .5s var(--a-ease); }
.dx-row:hover h3 { background: var(--g); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dx-main p { font-size: 17px; line-height: 1.6; color: var(--ink2); margin: 18px 0 0; max-width: 560px; }
.dx-main .dx-req { font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 16px; padding-left: 22px; position: relative; }
.dx-main .dx-req::before { content: ''; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--g); }
.dx-meta { text-align: right; padding-top: 10px; }
.dx-art { display: block; font-size: 13px; font-weight: 600; letter-spacing: .03em; color: var(--a-teal-ink); }
.dx-fig { display: block; margin-top: 10px; font-size: clamp(60px, 6.4vw, 96px); font-weight: 700; letter-spacing: -.055em; line-height: .95; background: var(--g); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.dx-fig small, .dx-f .big small, .dx-sp .big small { font-size: .3em; font-weight: 600; letter-spacing: -.01em; margin-left: .18em; }
.dx-fig small.pre { margin: 0 .08em 0 0; font-size: .5em; }
.dx-cap { display: block; margin-top: 8px; font-size: 14px; color: var(--ink3); }
.dx-other { margin-top: 56px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px 32px; align-items: center; }
.dx-other h4 { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.dx-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.dx-chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-card); font-size: 15px; color: var(--ink); transition: transform .5s var(--a-ease-out), box-shadow .5s; }
.dx-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.dx-chip .k { font-weight: 600; color: var(--a-teal-ink); padding-left: 10px; border-left: 1px solid var(--line); }
.dx-other > p { grid-column: 2; margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink2); }

/* ── Capítulo 2 · Selector con deslizador ── */
.dx-verdict { --tone: #e08a00; --tone-ink: #b86e00; margin-top: clamp(44px, 5vw, 64px); display: flex; flex-direction: column; align-items: center; }
.dx-verdict[data-tone="0"] { --tone: #2E9E80; --tone-ink: #1c7f65; }
.dx-verdict[data-tone="1"] { --tone: #e08a00; --tone-ink: #b86e00; }
.dx-verdict[data-tone="2"] { --tone: #e0503f; --tone-ink: #c23a2a; }
html[data-theme="dark"] .dx-verdict[data-tone="0"] { --tone-ink: #5fe0bf; }
html[data-theme="dark"] .dx-verdict[data-tone="1"] { --tone-ink: #fbbf24; }
html[data-theme="dark"] .dx-verdict[data-tone="2"] { --tone-ink: #fca5a5; }
.dx-seg { --i: 1; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 5px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-card); width: min(560px, 100%); }
.dx-seg button { position: relative; z-index: 1; border: 0; background: none; padding: 14px 10px; font: 600 16px/1 'Outfit', sans-serif; color: var(--ink2); cursor: pointer; border-radius: 999px; transition: color .45s var(--a-ease); -webkit-tap-highlight-color: transparent; }
.dx-seg button[aria-selected="true"] { color: #fff; }
.dx-seg button:focus-visible { outline: 2px solid var(--tone); outline-offset: 2px; }
.dx-seg .knob { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 3); border-radius: 999px; background: var(--tone); transform: translateX(calc(var(--i) * 100%)); transition: transform .65s cubic-bezier(.34, 1.3, .64, 1), background-color .5s; box-shadow: 0 12px 30px -10px var(--tone); }
.dx-panels { margin-top: 34px; width: 100%; display: grid; }
.dx-panel { grid-area: 1 / 1; position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: center; padding: clamp(30px, 4.5vw, 64px); border-radius: 38px; background: var(--card); box-shadow: var(--shadow-card); overflow: hidden; isolation: isolate; }
.dx-panel::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 70% at 100% 0%, color-mix(in srgb, var(--tone) 16%, transparent), transparent 70%); transition: background .6s; }
.dx-word { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--tone-ink); }
.dx-panel h3 { margin: 12px 0 0; font-size: clamp(30px, 3.6vw, 50px); font-weight: 700; letter-spacing: -.04em; line-height: 1.04; color: var(--ink); }
.dx-panel p { margin: 18px 0 0; font-size: 17px; line-height: 1.6; color: var(--ink2); }
.dx-cons { display: grid; gap: 14px; }
.dx-con { padding: 24px 26px; border-radius: 24px; background: var(--bg2); }
.dx-con .v { display: block; font-size: clamp(30px, 3vw, 44px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; color: var(--tone-ink); }
.dx-con .l { display: block; margin-top: 6px; font-size: 15px; color: var(--ink2); line-height: 1.4; }
/* Con JS: solo el panel activo, con transición */
.dx-verdict.js .dx-panel { opacity: 0; visibility: hidden; transform: translateY(24px) scale(.985); transition: opacity .55s var(--a-ease), transform .75s var(--a-ease-out), visibility .55s; }
.dx-verdict.js .dx-panel.on { opacity: 1; visibility: visible; transform: none; }
.dx-verdict.js .dx-panel .dx-con { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--a-ease), transform .6s var(--a-ease-out); }
.dx-verdict.js .dx-panel.on .dx-con { opacity: 1; transform: none; transition-delay: .15s; }
.dx-verdict.js .dx-panel.on .dx-con + .dx-con { transition-delay: .25s; }
.dx-verdict:not(.js) .dx-seg { display: none; }
.dx-verdict:not(.js) .dx-panels { gap: 20px; }
.dx-verdict:not(.js) .dx-panel { grid-area: auto; }
.dx-verdict:not(.js) .dx-panel.t0 { --tone: #2E9E80; --tone-ink: #1c7f65; }
.dx-verdict:not(.js) .dx-panel.t2 { --tone: #e0503f; --tone-ink: #c23a2a; }

/* ── Capítulo 3 · Cifras gigantes ── */
.dx-figs { margin-top: clamp(56px, 7vw, 90px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.dx-f { padding: 40px 34px 44px 0; border-bottom: 1px solid var(--line); }
.dx-f:nth-child(3n+2), .dx-f:nth-child(3n) { padding-left: 34px; border-left: 1px solid var(--line); }
.dx-f .big { display: block; font-size: clamp(66px, 7.4vw, 116px); font-weight: 700; letter-spacing: -.06em; line-height: .92; background: var(--g); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.dx-f .big.word { font-size: clamp(30px, 3.2vw, 50px); letter-spacing: -.04em; line-height: 1.1; padding-top: .5em; overflow-wrap: anywhere; hyphens: auto; }
.dx-f .t { display: block; margin-top: 18px; font-size: 18px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.dx-f .s { display: block; margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--ink2); }

/* Calculadora en vivo */
.dx-calc { margin-top: clamp(70px, 8vw, 110px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 42px; overflow: hidden; background: #000; color: #f5f5f7; position: relative; isolation: isolate; box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .7); }
.dx-calc::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(45% 60% at 90% 10%, rgba(46, 158, 128, .38), transparent 70%), radial-gradient(40% 50% at 10% 100%, rgba(126, 207, 207, .12), transparent 70%); }
.dx-cin { padding: clamp(30px, 4.5vw, 60px); border-right: 1px solid rgba(255, 255, 255, .08); margin: 0; }
.dx-cin h3 { margin: 0; font-size: clamp(28px, 2.8vw, 38px); font-weight: 700; letter-spacing: -.035em; color: #f5f5f7; }
.dx-cin .sub { margin: 10px 0 0; font-size: 16px; color: #a1a1a6; }
.dx-field { margin-top: 30px; }
.dx-field label, .dx-tseg legend { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; letter-spacing: .03em; color: #a1a1a6; }
.dx-field input { width: 100%; box-sizing: border-box; background: transparent; border: 0; border-bottom: 1.5px solid rgba(255, 255, 255, .18); border-radius: 0; color: #f5f5f7; font: 500 clamp(20px, 2vw, 26px)/1.2 'Outfit', sans-serif; padding: 6px 0 12px; outline: none; transition: border-color .3s; color-scheme: dark; -webkit-appearance: none; appearance: none; }
.dx-field input:focus { border-bottom-color: #3BB89A; }
.dx-money { display: flex; align-items: baseline; gap: 8px; }
.dx-money span { font-size: 22px; color: #86868b; }
.dx-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.dx-tseg { --i: 0; position: relative; margin: 30px 0 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.dx-tseg legend { grid-column: 1 / -1; padding: 0; }
.dx-tseg .knob { position: absolute; left: 4px; bottom: 4px; height: 44px; width: calc((100% - 8px) / 3); border-radius: 999px; background: #f5f5f7; transform: translateX(calc(var(--i) * 100%)); transition: transform .6s cubic-bezier(.34, 1.3, .64, 1); }
.dx-tseg::before { content: ''; grid-column: 1 / -1; grid-row: 2; height: 52px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.dx-tseg label { grid-row: 2; position: relative; z-index: 1; display: grid; place-items: center; height: 52px; font-size: 15px; font-weight: 600; color: #a1a1a6; cursor: pointer; transition: color .4s; }
.dx-tseg label:nth-of-type(1) { grid-column: 1; } .dx-tseg label:nth-of-type(2) { grid-column: 2; } .dx-tseg label:nth-of-type(3) { grid-column: 3; }
.dx-tseg label:has(input:checked) { color: #000; }
.dx-tseg input { position: absolute; opacity: 0; pointer-events: none; }
.dx-tseg label:has(input:focus-visible) { outline: 2px solid #3BB89A; outline-offset: -2px; border-radius: 999px; }
.dx-cout { padding: clamp(30px, 4.5vw, 60px); display: flex; flex-direction: column; justify-content: center; }
.dx-cout .lbl { display: block; font-size: 15px; color: #a1a1a6; }
.dx-cout .amt { display: block; margin-top: 10px; font-size: clamp(54px, 7vw, 108px); font-weight: 700; letter-spacing: -.055em; line-height: .95; background: linear-gradient(120deg, #3BB89A, #7ECFCF 55%, #d7fff4); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dx-cout .days { display: block; margin-top: 14px; font-size: 18px; color: #f5f5f7; }
.dx-bar { margin-top: 28px; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.dx-bar i { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, #2E9E80, #7ECFCF); transition: width .9s var(--a-ease-out); }
.dx-barcap { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 13px; color: #86868b; }
.dx-rule { margin: 22px 0 0; font-size: 15px; line-height: 1.5; color: #d2d2d7; }
.dx-warn { margin: 12px 0 0; font-size: 13px; line-height: 1.45; color: #86868b; }

/* ── Capítulo 4 · Línea de tiempo ligada al scroll ── */
.dx-tl { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 90px); align-items: start; }
.dx-tl .dx-head { position: sticky; top: calc(var(--nav-h) + var(--sub-h, 0px) + 60px); }
.dx-steps { --p: 0; position: relative; list-style: none; margin: 0; padding: 0 0 0 84px; }
.dx-steps::before, .dx-steps::after { content: ''; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; border-radius: 2px; }
.dx-steps::before { background: rgba(255, 255, 255, .1); }
.dx-steps::after { background: linear-gradient(#2E9E80, #7ECFCF); transform-origin: top; transform: scaleY(var(--p)); box-shadow: 0 0 18px rgba(46, 158, 128, .6); }
.dx-step { position: relative; padding: 0 0 clamp(60px, 8vw, 96px); }
.dx-step:last-child { padding-bottom: 0; }
.dx-step .dot { position: absolute; left: -84px; top: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; z-index: 1; background: #0b0f0e; border: 1.5px solid rgba(255, 255, 255, .14); font-size: 16px; font-weight: 700; color: #86868b; transition: background .5s, color .5s, border-color .5s, box-shadow .6s, transform .6s var(--a-ease-out); }
.dx-step.on .dot { background: linear-gradient(135deg, #2E9E80, #7ECFCF); color: #00140f; border-color: transparent; box-shadow: 0 0 0 8px rgba(46, 158, 128, .14), 0 0 40px rgba(46, 158, 128, .55); transform: scale(1.06); }
.dx-step .big { display: block; font-size: clamp(46px, 5.4vw, 80px); font-weight: 700; letter-spacing: -.05em; line-height: 1; color: rgba(255, 255, 255, .18); transition: color .6s; }
.dx-step.on .big { background: linear-gradient(120deg, #3BB89A, #7ECFCF 55%, #d7fff4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dx-step h3 { margin: 12px 0 0; font-size: clamp(22px, 2.2vw, 29px); font-weight: 700; letter-spacing: -.025em; color: #f5f5f7; }
.dx-step p { margin: 8px 0 0; font-size: 17px; line-height: 1.5; color: #a1a1a6; max-width: 460px; }
.dx-step:not(.on) h3, .dx-step:not(.on) p { opacity: .55; transition: opacity .6s; }
.dx-step.on h3, .dx-step.on p { opacity: 1; }

/* ── Capítulo 5 · Novedades (estilo sala de prensa) ── */
.dx-news { margin-top: clamp(50px, 6vw, 80px); border-top: 1px solid var(--line); }
.dx-new { --mx: 50%; --my: 50%; position: relative; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 34px; padding: clamp(34px, 4vw, 50px) 0; border-bottom: 1px solid var(--line); isolation: isolate; }
.dx-new::before { content: ''; position: absolute; inset: 0 -26px; z-index: -1; border-radius: 30px; opacity: 0; transition: opacity .6s; background: radial-gradient(640px circle at var(--mx) var(--my), rgba(46, 158, 128, .09), transparent 55%); }
.dx-new:hover::before { opacity: 1; }
.dx-when .yr { display: block; font-size: clamp(48px, 5vw, 72px); font-weight: 700; letter-spacing: -.05em; line-height: .95; background: var(--g); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dx-when .m { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--ink3); }
.dx-new h3 { margin: 4px 0 0; font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; color: var(--ink); }
.dx-new p { margin: 14px 0 0; font-size: 17px; line-height: 1.6; color: var(--ink2); max-width: 720px; }

/* ── Capítulo 6 · IRPF y paro ── */
.dx-split { margin-top: clamp(50px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.dx-sp { position: relative; overflow: hidden; isolation: isolate; padding: clamp(30px, 4.5vw, 60px); border-radius: 38px; background: var(--card); box-shadow: var(--shadow-card); }
.dx-sp.dark { background: #000; color: #f5f5f7; --g: linear-gradient(120deg, #3BB89A 0%, #7ECFCF 55%, #c9f5ec 100%); }
.dx-sp.dark::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 60% at 100% 0%, rgba(46, 158, 128, .35), transparent 70%); }
.dx-sp .k { display: block; font-size: 13px; font-weight: 600; letter-spacing: .03em; color: var(--a-teal-ink); }
.dx-sp.dark .k { color: #7ECFCF; }
.dx-sp .big { display: block; margin-top: 18px; font-size: clamp(56px, 6.4vw, 96px); font-weight: 700; letter-spacing: -.055em; line-height: .95; background: var(--g); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dx-sp .big .arrow { font-size: .45em; margin: 0 .25em; vertical-align: middle; }
.dx-sp .cap { display: block; margin-top: 8px; font-size: 15px; color: var(--ink3); }
.dx-sp.dark .cap { color: #a1a1a6; }
.dx-sp p { margin: 22px 0 0; font-size: 17px; line-height: 1.6; color: var(--ink2); }
.dx-sp.dark p { color: #a1a1a6; }
.dx-sp p.foot { font-size: 15px; font-weight: 600; color: var(--ink); padding-top: 18px; border-top: 1px solid var(--line); }
.dx-sp.dark p.foot { color: #f5f5f7; border-top-color: rgba(255, 255, 255, .12); }
.dx-sp p.foot a { color: var(--a-teal-ink); text-decoration: none; }
.dx-paro { display: grid; grid-template-columns: 180fr 190fr; gap: 4px; margin-top: 22px; }
.dx-paro > span { padding: 10px 12px; border-radius: 12px; font-size: 13px; font-weight: 600; }
.dx-paro .a { background: linear-gradient(90deg, #2E9E80, #3BB89A); color: #fff; }
.dx-paro .b { background: rgba(46, 158, 128, .14); color: var(--a-teal-ink); }

/* ── Relacionados · carril horizontal ── */
.dx-arrows { display: flex; gap: 10px; flex: none; }
.dx-arrows button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--line); color: var(--ink); font-size: 22px; cursor: pointer; transition: background .3s, transform .3s var(--a-ease-out); }
.dx-arrows button:hover { background: rgba(46, 158, 128, .18); }
.dx-arrows button:active { transform: scale(.92); }
.dx-rail { margin: clamp(40px, 5vw, 60px) calc(-1 * max(22px, (100vw - var(--a-max)) / 2 + 22px)) 0; padding: 6px max(22px, calc((100vw - var(--a-max)) / 2 + 22px)) 30px; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 max(22px, calc((100vw - var(--a-max)) / 2 + 22px)); scrollbar-width: none; }
.dx-rail::-webkit-scrollbar { display: none; }
.dx-card { flex: none; width: min(76vw, 330px); aspect-ratio: 4 / 5; scroll-snap-align: start; position: relative; overflow: hidden; isolation: isolate; border-radius: 32px; padding: 28px; box-sizing: border-box; display: flex; flex-direction: column; color: #fff; text-decoration: none; transition: transform .6s var(--a-ease-out), box-shadow .6s; box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .55); }
.dx-card::before { content: ''; position: absolute; inset: 0; z-index: -1; transition: transform 1.2s var(--a-ease-out); background: var(--bgc); }
.dx-card:hover { transform: translateY(-6px); }
.dx-card:hover::before { transform: scale(1.07); }
.dx-card.g1 { --bgc: linear-gradient(160deg, #2E9E80, #0f3d31); }
.dx-card.g2 { --bgc: linear-gradient(160deg, #1a2a26, #000); }
.dx-card.g3 { --bgc: linear-gradient(160deg, #0f3d31, #050a09); }
.dx-card.g4 { --bgc: linear-gradient(160deg, #3b2a12, #0a0703); }
.dx-card.g5 { --bgc: linear-gradient(160deg, #1c3f6e, #070d17); }
.dx-card.g6 { --bgc: linear-gradient(160deg, #2a1f3f, #07050b); }
.dx-card .n { font-size: 110px; font-weight: 800; line-height: .8; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.4px rgba(255, 255, 255, .45); }
.dx-card .k { display: block; margin-top: auto; font-size: 13px; font-weight: 600; letter-spacing: .03em; color: rgba(255, 255, 255, .7); }
.dx-card .t { display: block; margin-top: 8px; font-size: 22px; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.dx-card .go { position: absolute; top: 24px; right: 24px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); font-size: 18px; transition: transform .5s var(--a-ease-out), background .3s; }
.dx-card:hover .go { transform: rotate(-45deg); background: rgba(255, 255, 255, .28); }

/* ── Navegación por capítulos (escritorio) ── */
.dx-dots { position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 60; display: flex; flex-direction: column; gap: 14px; padding: 14px 8px; border-radius: 999px; background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 0 0 1px var(--line); opacity: 0; pointer-events: none; transition: opacity .5s var(--a-ease); }
.dx-dots.show { opacity: 1; pointer-events: auto; }
.dx-dots a { position: relative; display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--ink3); opacity: .45; transition: transform .4s var(--a-ease-out), opacity .3s, background .3s; }
.dx-dots a.on { background: var(--a-teal); opacity: 1; transform: scale(1.5); }
.dx-dots a:hover { opacity: 1; }
.dx-dots .lb { position: absolute; right: 22px; top: 50%; transform: translate(8px, -50%); white-space: nowrap; padding: 6px 12px; border-radius: 999px; background: var(--card); color: var(--ink); font-size: 13px; font-weight: 600; box-shadow: var(--shadow-card); opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--a-ease-out); }
.dx-dots a:hover .lb { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 1180px) { .dx-dots { display: none; } }

/* ── Inglés: las reglas de idioma de shared.css fuerzan display; se restauran ── */
body.en :is(.dx-art, .dx-cap, .dx-word, .dx-con .v, .dx-con .l, .dx-f .t, .dx-f .s, .dx-f .big, .dx-sp .k, .dx-sp .cap, .dx-card .k, .dx-card .t, .dx-when .m, .dx-cout .lbl)[data-en] { display: block !important; }
body.en .dx small[data-en] { display: inline !important; }
body.en .dx-word[data-en] { display: inline-block !important; }

/* ── Responsive ── */
@media (max-width: 980px) {
  .dx-row { grid-template-columns: 56px minmax(0, 1fr); }
  .dx-meta { grid-column: 2; text-align: left; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; padding-top: 0; }
  .dx-meta .dx-art { flex-basis: 100%; }
  .dx-fig { font-size: 64px; margin-top: 0; }
  .dx-panel { grid-template-columns: 1fr; }
  .dx-calc { grid-template-columns: 1fr; }
  .dx-cin { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .dx-tl { grid-template-columns: 1fr; }
  .dx-tl .dx-head { position: static; }
  .dx-split { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .dx-row { grid-template-columns: 1fr; gap: 14px; }
  .dx-n { padding-top: 0; }
  .dx-meta { grid-column: 1; }
  .dx-row::before, .dx-new::before { inset: 0 -12px; }
  .dx-other { grid-template-columns: 1fr; }
  .dx-other > p { grid-column: 1; }
  .dx-figs { grid-template-columns: 1fr 1fr; }
  .dx-f, .dx-f:nth-child(3n+2), .dx-f:nth-child(3n) { padding: 28px 14px 30px 0; border-left: 0; }
  .dx-f:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line); }
  .dx-f .big { font-size: 56px; }
  .dx-f .big.word { font-size: 28px; }
  .dx-f .t { font-size: 16px; }
  .dx-row2 { grid-template-columns: 1fr; gap: 0; }
  .dx-seg button { font-size: 14px; padding: 13px 4px; }
  .dx-steps { padding-left: 70px; }
  .dx-step .dot { left: -70px; width: 48px; height: 48px; font-size: 14px; }
  .dx-steps::before, .dx-steps::after { left: 23px; top: 24px; bottom: 24px; }
  .dx-new { grid-template-columns: 1fr; gap: 10px; }
  .dx-when { display: flex; align-items: baseline; gap: 12px; }
  .dx-when .m { margin-top: 0; }
  .dx-headrow { align-items: flex-start; flex-direction: column; }
  .dx-arrows { display: none; }
  .dx-sp .big { font-size: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .dx-seg .knob, .dx-tseg .knob, .dx-verdict.js .dx-panel, .dx-row::after, .dx-bar i { transition: none !important; }
  .dx-row::after { transform: scaleX(1); }
}
