/* ==========================================================================
   Formato "reportaje" del blog de tato9689.
   Hoja aparte: NO toca style.css (lo usan los 72 artículos antiguos).
   Todo va bajo .rp para no pisar nada. Sin JS todo se ve (mejora progresiva:
   las animaciones solo se activan si <html> lleva .rp-js).
   ========================================================================== */

.rp {
  --rp-ink: #171411;
  --rp-ink-2: #211d19;
  --rp-ink-3: #2c2722;
  --rp-line: rgba(255,255,255,.12);
  --rp-acc: var(--accent, #cc785c);
  --rp-acc-soft: #e8a68c;          /* acento legible sobre fondo oscuro */
  --rp-paper: var(--bg, #fdfdfc);
  --rp-paper-2: var(--bg-alt, #f7f6f4);
  --rp-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --rp-w: 1120px;
  --rp-nav: 0px;   /* la cabecera del sitio NO es fija: lo pegajoso se pega arriba del todo */
  --rp-head: 92px;
  color: var(--fg, #1d1d1f);
  overflow-x: clip;
}
.rp *, .rp *::before, .rp *::after { box-sizing: border-box; }
.rp img { max-width: 100%; height: auto; display: block; }
.rp-in { max-width: var(--rp-w); margin: 0 auto; padding: 0 28px; }
.rp-narrow { max-width: 720px; }

/* ---------- Revelado al hacer scroll (solo con JS) ---------- */
.rp-js .rp-r { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.rp-js .rp-r.in { opacity: 1; transform: none; }

/* ---------- Tipografía común ---------- */
.rp-kicker { font-family: var(--rp-mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text, #ab5336); margin: 0 0 18px; font-weight: 600; }
.rp-dark .rp-kicker, .rp-hero .rp-kicker, .rp-scrolly .rp-kicker, .rp-flowwrap .rp-kicker, .rp-end .rp-kicker { color: var(--rp-acc-soft); }
.rp h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); line-height: 1.06; letter-spacing: -.025em; font-weight: 800; margin: 0 0 22px; max-width: 18ch; }
.rp h2.wide { max-width: 24ch; }
.rp p { font-size: 1.06rem; line-height: 1.7; margin: 0 0 18px; }
.rp-lead { font-size: clamp(1.15rem, 2vw, 1.4rem) !important; line-height: 1.55 !important; color: var(--muted, #6e6e73); max-width: 38em; }
.rp sup.fn a { color: var(--accent-text, #ab5336); text-decoration: none; font-weight: 700; font-size: .72em; padding: 0 1px; }
.rp-dark sup.fn a { color: var(--rp-acc-soft); }
.rp mark { background: color-mix(in srgb, var(--rp-acc) 26%, transparent); color: inherit; padding: 0 .15em; border-radius: 3px; }
.rp-dark mark { background: color-mix(in srgb, var(--rp-acc) 40%, transparent); }

.rp-sec { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.rp-sec.alt { background: var(--rp-paper-2); }
.rp-dark { background: var(--rp-ink); color: #f4efe9; }
.rp-dark p { color: #d8d0c7; }
.rp-dark h2 { color: #fff; }

/* ==========================================================================
   HERO
   ========================================================================== */
.rp-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(120% 90% at 85% 10%, #2e2620 0%, var(--rp-ink) 60%);
  color: #fff; min-height: calc(100svh - var(--rp-head)); display: flex; align-items: center;
  padding: 72px 0 110px;
}
.rp-hero-bg { position: absolute; inset: 0; z-index: -1; perspective: 1400px; pointer-events: none; }
.rp-shot { position: absolute; width: min(36vw, 470px); border-radius: 12px; border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 80px rgba(0,0,0,.55); opacity: .5; will-change: transform; }
.rp-shot.s1 { right: 2%;  top: 8%;   transform: rotateY(-16deg) rotateX(6deg) rotate(3deg)   translateY(calc(var(--py, 0) * -.05px)); }
.rp-shot.s2 { right: 14%; top: 44%;  transform: rotateY(-12deg) rotateX(4deg) rotate(-4deg)  translateY(calc(var(--py, 0) * -.10px)); opacity: .42; }
.rp-shot.s3 { right: -5%; top: 58%;  transform: rotateY(-18deg) rotateX(5deg) rotate(2deg)   translateY(calc(var(--py, 0) * -.16px)); opacity: .5; }
.rp-shot.s4 { right: 20%; top: -8%;  transform: rotateY(-10deg) rotateX(7deg) rotate(-2deg)  translateY(calc(var(--py, 0) * -.03px)); opacity: .3; }
.rp-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--rp-ink) 0%, rgba(23,20,17,.97) 46%, rgba(23,20,17,.55) 70%, rgba(23,20,17,.1) 100%); }
.rp-hero-in { width: 100%; }
.rp-hero h1 { font-size: clamp(2.4rem, 6vw, 4.7rem); line-height: 1; letter-spacing: -.035em; font-weight: 800; margin: 0 0 24px; max-width: 15ch; color: #fff; }
.rp-hero h1 em { font-style: normal; color: var(--rp-acc-soft); }
.rp-deck { font-size: clamp(1.05rem, 1.7vw, 1.3rem) !important; line-height: 1.55 !important; color: #d8d0c7 !important; max-width: 34em; margin-bottom: 30px !important; }
.rp-meta { font-size: .86rem; color: #a99f94; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.rp-meta a { color: #e8dfd5; text-underline-offset: 3px; }
.rp-meta .dot { width: 3px; height: 3px; background: #6d645a; border-radius: 50%; }
.rp-cifra { position: absolute; right: 28px; bottom: 28px; text-align: right; display: flex; align-items: flex-end; gap: 16px; }
.rp-cifra b { font-family: var(--rp-mono); font-size: clamp(4rem, 11vw, 8rem); line-height: .8; color: var(--rp-acc-soft); font-weight: 600; }
.rp-cifra span { font-size: .8rem; line-height: 1.4; color: #cfc6bc; text-align: left; font-family: var(--rp-mono); letter-spacing: .04em; padding-bottom: 6px; }
.rp-cue { position: absolute; left: 28px; bottom: 28px; font-family: var(--rp-mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #bdb3a8; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.rp-cue i { width: 1px; height: 34px; background: linear-gradient(#bdb3a8, transparent); display: block; animation: rp-cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes rp-cue { 0%,100% { transform: scaleY(.35); opacity: .5; } 50% { transform: scaleY(1); opacity: 1; } }

/* ==========================================================================
   1 · Qué es: frase grande + pestañas
   ========================================================================== */
.rp-big { font-size: clamp(1.5rem, 3.6vw, 2.6rem) !important; line-height: 1.22 !important; letter-spacing: -.02em; font-weight: 700; max-width: 26em; margin-bottom: 34px !important; }
.rp-big .m { color: var(--accent-text, #ab5336); }
.rp-tabs { margin-top: 48px; }
.rp-tablist { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.rp-tab { font: inherit; font-weight: 600; font-size: .92rem; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--border-strong, #dcdcdc); background: #fff; color: var(--muted, #6e6e73); cursor: pointer; transition: all .2s; }
.rp-tab:hover { border-color: var(--rp-acc); color: var(--fg, #1d1d1f); }
.rp-tab[aria-selected="true"] { background: var(--rp-ink); border-color: var(--rp-ink); color: #fff; }
.rp-panel { background: #fff; border: 1px solid var(--border, #ececec); border-radius: 18px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--card-shadow); display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: center; }
.rp-js .rp-panel[hidden] { display: none; }
.rp-panel + .rp-panel { margin-top: 14px; }
.rp-js .rp-panel + .rp-panel { margin-top: 0; }
.rp-panel h3 { font-size: 1.35rem; letter-spacing: -.01em; margin: 0 0 8px; }
.rp-panel p { margin: 0; color: var(--muted, #6e6e73); font-size: 1rem; }
.rp-panel .ico { width: 150px; height: 120px; border-radius: 14px; background: var(--rp-paper-2); display: grid; place-items: center; }
.rp-panel .ico svg { width: 92px; height: 92px; }
.rp-panel .when { display: inline-block; margin-top: 12px; font-family: var(--rp-mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text, #ab5336); }

/* ==========================================================================
   2 · Para qué: dos cifras grandes
   ========================================================================== */
.rp-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 40px 0 8px; }
.rp-stat { background: #fff; border: 1px solid var(--border, #ececec); border-radius: 20px; padding: clamp(24px, 3vw, 38px); box-shadow: var(--card-shadow); }
.rp-stat b { display: block; font-size: clamp(3rem, 7vw, 5.2rem); line-height: .95; letter-spacing: -.04em; font-weight: 800; color: var(--rp-acc); }
.rp-stat b small { font-size: .45em; letter-spacing: 0; font-weight: 700; margin-left: .1em; }
.rp-stat p { margin: 12px 0 0; color: var(--muted, #6e6e73); font-size: .98rem; line-height: 1.55; }
.rp-twocol { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); }

/* ==========================================================================
   3 · Mis números: SCROLLYTELLING
   ========================================================================== */
.rp-scrolly { position: relative; background: var(--rp-ink); color: #f4efe9; }
.rp-scrolly-head { padding: clamp(72px, 10vw, 130px) 0 10px; }
.rp-scrolly-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.rp-stage { position: sticky; top: calc(var(--rp-nav) + 28px); height: min(78vh, 640px); background: var(--rp-ink-2); border: 1px solid var(--rp-line); border-radius: 24px; padding: clamp(22px, 3vw, 40px); display: flex; flex-direction: column; overflow: hidden; }
.rp-stage-label { font-family: var(--rp-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #a99f94; }
.rp-bignum { font-family: var(--rp-mono); font-weight: 600; font-size: clamp(5rem, 13vw, 9.5rem); line-height: .9; letter-spacing: -.04em; color: var(--rp-acc-soft); margin: 18px 0 8px; font-variant-numeric: tabular-nums; }
.rp-bigcap { font-size: 1.15rem; color: #efe7de; min-height: 3.2em; line-height: 1.35; max-width: 20em; transition: opacity .3s; }
.rp-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: auto; transition: opacity .5s, transform .5s; }
.rp-thumbs img { border-radius: 6px; border: 1px solid var(--rp-line); aspect-ratio: 8/5; object-fit: cover; }
.rp-bars { margin-top: auto; display: grid; gap: 12px; }
.rp-bar { display: grid; grid-template-columns: 12.5em 1fr 2.2em; gap: 12px; align-items: center; font-size: .86rem; color: #d8d0c7; }
.rp-bar i { height: 14px; border-radius: 3px; background: rgba(255,255,255,.07); position: relative; overflow: hidden; display: block; }
.rp-bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); min-width: 3px; background: var(--rp-acc); border-radius: 3px; transform-origin: left; transform: scaleX(1); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.rp-bar.bad i::after { background: #8a7f74; }
.rp-bar b { font-family: var(--rp-mono); text-align: right; color: #fff; }
.rp-js .rp-bar { opacity: .4; transition: opacity .5s; }
.rp-js .rp-bar i::after { transform: scaleX(0); }
.rp-js .rp-bar.on { opacity: 1; }
.rp-js .rp-bar.on i::after { transform: scaleX(1); }
.rp-js .rp-scrolly:not([data-step="0"]) .rp-thumbs { opacity: 0; transform: translateY(12px); pointer-events: none; position: absolute; }
.rp-js .rp-scrolly[data-step="0"] .rp-bars { opacity: 0; }
.rp-steps { padding-bottom: 20vh; }
.rp-step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 28px 0; opacity: .68; transition: opacity .5s; }
.rp-step.on { opacity: 1; }
.rp-no-js .rp-step, .rp-step:first-child { }
.rp-step h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 14px; color: #fff; }
.rp-step p { color: #cfc6bc; margin-bottom: 12px; }
.rp-step .rp-tag { font-family: var(--rp-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rp-acc-soft); margin-bottom: 12px; display: block; }
html:not(.rp-js) .rp-step { opacity: 1; min-height: 0; }
html:not(.rp-js) .rp-stage { position: static; height: auto; }

/* ---- El robot: doble confirmación animada ---- */
.rp-flowwrap { padding: clamp(64px, 9vw, 120px) 0; background: var(--rp-ink-2); border-top: 1px solid var(--rp-line); color: #f4efe9; }
.rp-flowwrap h2 { color: #fff; }
.rp-flowwrap p { color: #d8d0c7; }
.rp-flow { display: grid; gap: 22px; margin-top: 40px; }
.rp-lane { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: center; }
.rp-lane-tag { font-family: var(--rp-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: #bdb3a8; }
.rp-lane ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.rp-lane li { position: relative; padding: 52px 10px 0 0; font-size: .92rem; line-height: 1.35; color: #8b8176; transition: color .5s; transition-delay: calc(var(--i) * .7s + .2s); }
.rp-lane li::before { content: attr(data-n); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #5b5249; background: var(--rp-ink-2); display: grid; place-items: center; font-family: var(--rp-mono); font-size: .8rem; color: #8b8176; z-index: 1; transition: all .5s; transition-delay: calc(var(--i) * .7s + .2s); }
.rp-lane li::after { content: ""; position: absolute; left: 34px; right: 0; top: 16px; height: 2px; background: #3b342d; }
.rp-lane li:last-child::after { display: none; }
.rp-lane li > span { display: block; }
.rp-flow.in .rp-lane.person li { color: #f4efe9; }
.rp-flow.in .rp-lane.person li::before { border-color: var(--rp-acc); background: var(--rp-acc); color: #fff; }
.rp-flow.in .rp-lane.person li:last-child::before { border-color: #6fcf97; background: #6fcf97; color: #11301d; content: "✓"; }
.rp-flow.in .rp-lane.bot li:nth-child(-n+2) { color: #f4efe9; }
.rp-flow.in .rp-lane.bot li:nth-child(-n+2)::before { border-color: var(--rp-acc); background: var(--rp-acc); color: #fff; }
.rp-flow.in .rp-lane.bot li:nth-child(3) { color: #f0a09a; }
.rp-flow.in .rp-lane.bot li:nth-child(3)::before { border-color: #e5645c; background: transparent; color: #e5645c; content: "×"; font-size: 1.3rem; }
.rp-flow.in .rp-lane.bot li:nth-child(4) { color: #a0958a; text-decoration: line-through; text-decoration-color: #e5645c; }
.rp-flow-note { margin-top: 28px; padding: 18px 22px; border-left: 3px solid var(--rp-acc); background: rgba(255,255,255,.04); border-radius: 0 12px 12px 0; font-size: .98rem !important; }
html:not(.rp-js) .rp-lane li { color: #f4efe9; }

/* ---- Galería horizontal de capturas reales ---- */
.rp-gal { padding: clamp(64px, 9vw, 120px) 0; background: var(--rp-paper-2); overflow: hidden; }
.rp-gal-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.rp-gal-ctl { display: flex; gap: 8px; }
.rp-gal-ctl button { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--border-strong, #dcdcdc); background: #fff; font-size: 1.2rem; cursor: pointer; transition: all .2s; line-height: 1; }
.rp-gal-ctl button:hover { border-color: var(--rp-acc); color: var(--accent-text, #ab5336); }
.rp-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px max(28px, calc((100vw - var(--rp-w)) / 2 + 28px)) 26px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rp-track::-webkit-scrollbar { display: none; }
.rp-card { flex: 0 0 min(78vw, 520px); scroll-snap-align: center; background: #fff; border: 1px solid var(--border, #ececec); border-radius: 16px; overflow: hidden; box-shadow: var(--card-shadow); transition: transform .3s; }
.rp-card:hover { transform: translateY(-4px); }
.rp-card .bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--rp-paper-2); border-bottom: 1px solid var(--border, #ececec); font-family: var(--rp-mono); font-size: .78rem; color: var(--muted, #6e6e73); }
.rp-card .bar i { width: 9px; height: 9px; border-radius: 50%; background: #d8d4cf; display: block; }
.rp-card .bar span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-card img { width: 100%; aspect-ratio: 8/5; object-fit: cover; object-position: top; }
.rp-card figcaption { padding: 16px 18px 20px; }
.rp-card h3 { font-size: 1.08rem; margin: 0 0 4px; letter-spacing: -.01em; }
.rp-card p { font-size: .9rem !important; line-height: 1.5 !important; color: var(--muted, #6e6e73); margin: 0 !important; }
.rp-card .nums { margin-top: 10px; display: flex; gap: 14px; font-family: var(--rp-mono); font-size: .76rem; color: var(--fg, #1d1d1f); }
.rp-card .nums span b { color: var(--accent-text, #ab5336); }
.rp-gal-foot { font-size: .84rem !important; color: var(--muted, #6e6e73); margin-top: 6px !important; }

/* ==========================================================================
   4 · Dónde: tres columnas con una pregunta
   ========================================================================== */
.rp-cmp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.rp-opt { background: #fff; border: 1px solid var(--border, #ececec); border-radius: 20px; padding: 28px 26px 26px; display: flex; flex-direction: column; box-shadow: var(--card-shadow); transition: transform .3s, box-shadow .3s, border-color .3s; }
.rp-opt:hover { transform: translateY(-6px); border-color: var(--rp-acc); box-shadow: 0 18px 44px rgba(0,0,0,.09); }
.rp-opt h3 { font-size: 1.2rem; margin: 0 0 6px; letter-spacing: -.01em; }
.rp-opt .for { font-size: .92rem; color: var(--muted, #6e6e73); margin: 0 0 22px; line-height: 1.5; }
.rp-opt .own { margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--border-strong, #dcdcdc); }
.rp-opt .own small { display: block; font-family: var(--rp-mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted, #6e6e73); margin-bottom: 6px; }
.rp-opt .own b { display: block; font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.1; }
.rp-opt.mine .own b { color: #2f7d4f; }
.rp-opt:not(.mine) .own b { color: var(--accent-text, #ab5336); }
.rp-opt .own span { display: block; font-size: .88rem; color: var(--muted, #6e6e73); line-height: 1.5; margin-top: 8px; }
.rp-callout { margin-top: 34px; padding: 22px 26px; border-radius: 16px; background: var(--rp-ink); color: #f4efe9; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.rp-callout b { font-family: var(--rp-mono); font-size: 2.2rem; color: var(--rp-acc-soft); font-weight: 600; letter-spacing: -.03em; }
.rp-callout p { margin: 0 !important; color: #d8d0c7 !important; font-size: .98rem !important; line-height: 1.6 !important; }

/* ==========================================================================
   5 · La ley: tarjetas apiladas que se van tapando (sticky)
   ========================================================================== */
.rp-stack { margin-top: 44px; }
.rp-law { position: sticky; top: calc(var(--rp-nav) + 28px + var(--k) * 22px); margin-bottom: 30px; background: #fff; border: 1px solid var(--border, #ececec); border-radius: 24px; padding: clamp(26px, 4vw, 48px); box-shadow: 0 10px 40px rgba(0,0,0,.08); display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 4vw, 48px); align-items: start; min-height: 240px; }
.rp-law .n { font-family: var(--rp-mono); font-size: clamp(3.4rem, 9vw, 7rem); line-height: .85; font-weight: 600; color: var(--rp-acc); letter-spacing: -.05em; }
.rp-law h3 { font-size: clamp(1.4rem, 2.8vw, 2.1rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 12px; }
.rp-law p { margin: 0; color: var(--muted, #6e6e73); max-width: 38em; }
.rp-law p + p { margin-top: 10px; }

/* ==========================================================================
   6 · Medir: cuatro métricas con veredicto
   ========================================================================== */
.rp-met { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.rp-m { background: #fff; border: 1px solid var(--border, #ececec); border-radius: 18px; padding: 24px 22px; position: relative; overflow: hidden; box-shadow: var(--card-shadow); }
.rp-m .v { display: inline-block; font-family: var(--rp-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; font-weight: 600; margin-bottom: 16px; }
.rp-m.no .v { background: #fbe3df; color: #a23b30; }
.rp-m.ok .v { background: #dff1e6; color: #226b42; }
.rp-m.best .v { background: var(--rp-ink); color: #fff; }
.rp-m h3 { font-size: 1.3rem; margin: 0 0 8px; letter-spacing: -.01em; }
.rp-m.no h3 { text-decoration: line-through; text-decoration-color: #cf5b50; text-decoration-thickness: 2px; }
.rp-m p { font-size: .92rem !important; line-height: 1.55 !important; color: var(--muted, #6e6e73); margin: 0 !important; }
.rp-m .meter { height: 6px; border-radius: 3px; background: var(--rp-paper-2); margin-top: 18px; overflow: hidden; }
.rp-m .meter i { display: block; height: 100%; width: var(--w); background: var(--rp-acc); border-radius: 3px; transition: width 1.1s cubic-bezier(.2,.7,.2,1) .2s; }
.rp-m.no .meter i { background: #cf5b50; }
.rp-js .rp-m:not(.in) .meter i { width: 0; }
.rp-m .meter-l { display: flex; justify-content: space-between; font-family: var(--rp-mono); font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted, #6e6e73); margin-top: 6px; }

/* ==========================================================================
   7 · Empezar: línea de tiempo que se va llenando
   ========================================================================== */
.rp-tl { position: relative; margin-top: 46px; padding-left: 64px; --fill: 0; }
.rp-tl::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 3px; background: var(--border-strong, #dcdcdc); border-radius: 2px; }
.rp-tl::after { content: ""; position: absolute; left: 21px; top: 8px; width: 3px; height: calc((100% - 16px) * var(--fill)); background: var(--rp-acc); border-radius: 2px; }
.rp-tl li { list-style: none; position: relative; padding-bottom: 38px; }
.rp-tl li:last-child { padding-bottom: 0; }
.rp-tl li::before { content: attr(data-n); position: absolute; left: -64px; top: -2px; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 3px solid var(--border-strong, #dcdcdc); display: grid; place-items: center; font-family: var(--rp-mono); font-weight: 600; font-size: .9rem; color: var(--muted, #6e6e73); transition: all .4s; z-index: 1; }
.rp-tl li.on::before { background: var(--rp-acc); border-color: var(--rp-acc); color: #fff; transform: scale(1.08); }
.rp-tl h3 { font-size: 1.3rem; margin: 0 0 6px; letter-spacing: -.01em; padding-top: 6px; }
.rp-tl p { margin: 0 !important; color: var(--muted, #6e6e73); max-width: 40em; font-size: 1rem !important; }
.rp-tl ol, .rp-tl { margin-left: 0; }
ol.rp-tl { padding-left: 64px; }

/* ==========================================================================
   8 · FAQ
   ========================================================================== */
.rp-faq { margin-top: 36px; border-top: 1px solid var(--border-strong, #dcdcdc); }
.rp-faq details { border-bottom: 1px solid var(--border-strong, #dcdcdc); }
.rp-faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font-size: clamp(1.08rem, 2vw, 1.3rem); font-weight: 700; letter-spacing: -.01em; position: relative; }
.rp-faq summary::-webkit-details-marker { display: none; }
.rp-faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--border-strong, #dcdcdc); display: grid; place-items: center; font-weight: 400; font-size: 1.4rem; line-height: 1; transition: all .25s; }
.rp-faq details[open] summary::after { content: "−"; background: var(--rp-acc); border-color: var(--rp-acc); color: #fff; }
.rp-faq details p { padding: 0 48px 24px 0; margin: 0; color: var(--muted, #6e6e73); max-width: 44em; }

/* ---------- Fuentes ---------- */
.rp-src { margin-top: 56px; border: 1px solid var(--border-strong, #dcdcdc); border-radius: 16px; background: #fff; }
.rp-src summary { cursor: pointer; padding: 18px 24px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.rp-src summary::-webkit-details-marker { display: none; }
.rp-src summary::after { content: "+"; font-weight: 400; font-size: 1.3rem; line-height: 1; }
.rp-src[open] summary::after { content: "−"; }
.rp-src ol { margin: 0; padding: 0 24px 22px 44px; font-size: .86rem; line-height: 1.6; color: var(--muted, #6e6e73); }
.rp-src li { margin-bottom: 8px; }
.rp-src li:target { background: color-mix(in srgb, var(--rp-acc) 14%, transparent); border-radius: 6px; }
.rp-src a { color: var(--accent-text, #ab5336); }

/* ---------- Carril de capítulos (puntos a la derecha, solo escritorio ancho) ---------- */
.rp-rail { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 30; display: none; flex-direction: column; gap: 4px; }
.rp-rail a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; height: 22px; text-decoration: none; font-family: var(--rp-mono); font-size: .68rem; letter-spacing: .04em; color: transparent; transition: color .2s; }
.rp-rail a::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #b9b1a8; transition: all .25s; flex: none; }
.rp-rail a:hover { color: var(--fg, #1d1d1f); }
.rp-rail a.on::after { background: var(--rp-acc); transform: scale(1.5); }
.rp-rail a.on { color: var(--accent-text, #ab5336); }
.rp-rail.over-dark a:hover { color: #fff; }
@media (min-width: 1360px) { .rp-rail { display: flex; } }

/* ---------- Cierre ---------- */
.rp-end { background: var(--rp-ink); color: #f4efe9; padding: clamp(56px, 8vw, 100px) 0; }
.rp-end h2 { color: #fff; }
.rp-end .resource-highlight { margin-top: 28px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .rp-in { padding: 0 20px; }
  .rp-hero { padding: 48px 0 150px; align-items: flex-start; }
  .rp-shot { width: 78vw; opacity: .32 !important; }
  .rp-shot.s1 { right: -20%; top: 10%; } .rp-shot.s2 { right: 20%; top: 46%; } .rp-shot.s3 { right: -26%; top: 64%; } .rp-shot.s4 { display: none; }
  .rp-hero::after { background: linear-gradient(180deg, rgba(23,20,17,.9) 0%, rgba(23,20,17,.7) 100%); }
  .rp-cifra { right: 20px; bottom: 22px; } .rp-cue { left: 20px; bottom: 26px; }
  .rp-panel { grid-template-columns: 1fr; gap: 18px; } .rp-panel .ico { width: 100%; height: 90px; }
  .rp-stats, .rp-twocol, .rp-cmp { grid-template-columns: 1fr; }
  .rp-met { grid-template-columns: 1fr 1fr; }
  /* scrolly: el escenario se queda arriba, los pasos pasan por debajo */
  .rp-scrolly-grid { grid-template-columns: 1fr; gap: 0; }
  .rp-stage { top: calc(var(--rp-nav) + 8px); height: 46vh; min-height: 330px; border-radius: 18px; z-index: 2; }
  .rp-bignum { font-size: clamp(3.6rem, 18vw, 5.6rem); margin: 8px 0 4px; }
  .rp-bigcap { font-size: .98rem; min-height: 2.8em; }
  .rp-bar { grid-template-columns: 7.4em 1fr 2em; font-size: .78rem; gap: 8px; }
  .rp-bars { gap: 8px; }
  .rp-step { min-height: 62vh; padding: 20px 0; } .rp-steps { margin-top: 12px; }
  .rp-step > * { background: rgba(23,20,17,.82); }
  .rp-lane { grid-template-columns: 1fr; gap: 10px; }
  .rp-lane ol { grid-template-columns: repeat(2, 1fr); row-gap: 8px; }
  .rp-lane li:nth-child(2)::after { display: none; }
  .rp-law { position: relative; top: auto; min-height: 0; grid-template-columns: 1fr; gap: 8px; }
  .rp-tl { padding-left: 54px; } ol.rp-tl { padding-left: 54px; } .rp-tl li::before { left: -54px; width: 38px; height: 38px; }
  .rp-tl::before, .rp-tl::after { left: 17px; }
  .rp-callout { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 520px) { .rp-met { grid-template-columns: 1fr; } .rp-bar { grid-template-columns: 6.6em 1fr 1.8em; } }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .rp-js .rp-r { opacity: 1; transform: none; transition: none; }
  .rp-cue i { animation: none; }
  .rp-shot { transform: none !important; }
  .rp-bar i::after, .rp-m .meter i, .rp-lane li, .rp-lane li::before { transition: none; }
  .rp-js .rp-bar { opacity: 1; } .rp-js .rp-bar i::after { transform: scaleX(1); }
  .rp-js .rp-m:not(.in) .meter i { width: var(--w); }
  .rp-step { opacity: 1; }
}
@media print { .rp-hero, .rp-scrolly { background: #fff !important; color: #000 !important; } .rp-rail, .rp-shot { display: none !important; } }

/* El sitio resalta todo <strong>/<b> con un subrayador salmón (style.css). Lo conservo en la
   prosa clara, que es su firma, y lo quito en cifras y en secciones oscuras. */
.rp b, .rp-hero strong, .rp-scrolly strong, .rp-flowwrap strong, .rp-end strong, .rp-callout strong, .rp-dark strong {
  background: none; padding: 0; margin: 0; border-radius: 0;
}
.rp-scrolly strong, .rp-flowwrap strong, .rp-dark strong { color: #fff; }

/* enlaces dentro de la prosa */
.rp p a, .rp li a, .rp summary a { color: var(--accent-text, #ab5336); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rp p a:hover, .rp li a:hover { color: var(--rp-acc); }
.rp-dark p a, .rp-scrolly p a, .rp-flowwrap p a, .rp-end p a { color: var(--rp-acc-soft); }
.rp-meta a { color: #e8dfd5; }
.rp-cue { color: #bdb3a8; }
.rp-src a { color: var(--accent-text, #ab5336); }

@media (max-width: 900px) { .rp-bar { grid-template-columns: 8.6em 1fr 2em; } }
@media (max-width: 520px) { .rp-bar { grid-template-columns: 7.2em 1fr 1.8em; } }

/* ---- vídeo ---- */
.rp-vid { position: relative; margin: 0 0 34px; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 24px 60px rgba(0,0,0,.18); }
.rp-vid video { width: 100%; height: auto; aspect-ratio: 8/5; display: block; background: #111; }
.rp-vid-btn { position: absolute; right: 16px; bottom: 56px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(23,20,17,.78); color: #fff; font-size: 1rem; cursor: pointer; backdrop-filter: blur(6px); transition: transform .2s, background .2s; }
.rp-vid-btn:hover { transform: scale(1.08); background: var(--rp-acc); }
.rp-vid figcaption { padding: 12px 18px; font-size: .82rem; line-height: 1.5; color: #cfc6bc; background: var(--rp-ink); }

/* ---- móvil: flujo del robot en vertical y menos hueco entre pasos ---- */
@media (max-width: 900px) {
  .rp-step { min-height: 52vh; }
  .rp-lane ol { grid-template-columns: 1fr; row-gap: 0; }
  .rp-lane li { padding: 4px 0 20px 50px; min-height: 52px; }
  .rp-lane li::before { left: 0; top: 0; }
  .rp-lane li::after, .rp-lane li:nth-child(2)::after { display: block; left: 16px; right: auto; top: 36px; bottom: 2px; width: 2px; height: auto; }
  .rp-lane li:last-child::after { display: none; }
  .rp-vid-btn { bottom: 70px; }
}
@media (min-width: 901px) { .rp-cifra { right: 96px; } }

html:not(.rp-js) .rp-tablist { display: none; }
html:not(.rp-js) .rp-panel + .rp-panel { margin-top: 14px; }

/* anillo de foco coherente (el sitio no define ninguno) */
.rp :focus-visible { outline: 3px solid var(--rp-acc); outline-offset: 3px; border-radius: 4px; }
.rp-dark :focus-visible, .rp-scrolly :focus-visible, .rp-flowwrap :focus-visible, .rp-hero :focus-visible, .rp-end :focus-visible { outline-color: var(--rp-acc-soft); }

/* carril de capítulos: el punto es lo único que se pulsa; la etiqueta sale al pasar y NO captura clics */
.rp-rail a { position: relative; width: 24px; height: 24px; justify-content: center; }
.rp-rail a span { position: absolute; right: 30px; white-space: nowrap; padding: 3px 9px; border-radius: 6px; background: var(--rp-ink); color: #fff; font-size: .76rem; letter-spacing: .04em; opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s; pointer-events: none; }
.rp-rail a:hover span, .rp-rail a:focus-visible span { opacity: 1; transform: none; }
.rp-rail a, .rp-rail a:hover, .rp-rail a.on { color: inherit; }

/* móviles pequeños (360 px): el escenario necesita sitio para número + leyenda + 4 barras */
@media (max-width: 420px) {
  .rp-stage { min-height: 372px; padding: 18px; }
  .rp-bignum { font-size: clamp(3rem, 15vw, 4.4rem); }
  .rp-bigcap { min-height: 2.6em; }
}

/* chip del hero: fuera del globo de chat del sitio (abajo a la derecha, ~90 px) */
.rp-cifra { right: 120px; bottom: 34px; }
@media (max-width: 900px) {
  .rp-cifra { right: auto; left: 20px; bottom: 78px; }
  .rp-shot { opacity: .2 !important; }
}


/* ---- imagen con pie (captura, foto, gráfico estático) ---- */
.rp-fig { margin: 34px 0; }
.rp-fig img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--border, #ececec); box-shadow: var(--card-shadow); }
.rp-fig figcaption { margin-top: 10px; font-size: .86rem; line-height: 1.5; color: var(--muted, #6e6e73); }
.rp-fig figcaption a { color: var(--accent-text, #ab5336); }
.rp-dark .rp-fig figcaption { color: #cfc6bc; }

/* ---- cita destacada ---- */
.rp-quote { margin: 36px 0; padding: 6px 0 6px 26px; border-left: 4px solid var(--rp-acc); font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.3; letter-spacing: -.015em; font-weight: 700; max-width: 28em; }
.rp-quote cite { display: block; margin-top: 12px; font-size: .9rem; font-weight: 500; font-style: normal; color: var(--muted, #6e6e73); }
