/* Great Place To Work® Chile — demo de rediseño (2026), versión formal.
   Noche azulada casi negra, serif en titulares, esquinas rectas, rojo puntual. */
:root {
  --night: #0a0e1a; --night-2: #11172a; --night-3: #1a2240;
  --red: #e60000; --red-d: #b80000; --red-t: #c20000; --red-l: #ff4a57;
  --blue: #1d4ed8; --sky: #cfe3ff; --cyan: #2b7fc4; --cyan-t: #0a5f93;
  --ink: #0f1424; --muted: #454b5b; --line: #dfe3ec; --bg: #fff; --bg-alt: #f3f5f9;
  --on-dark: #e9ecf5; --on-dark-m: #a3adc4; --line-d: rgba(255,255,255,.14);
  --max: 1340px; --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --shadow: 0 22px 44px -28px rgba(10,14,26,.5);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border-radius: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; } img { max-width: 100%; display: block; } ul { list-style: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
section { padding: 64px 0; }
h1, h2, h3 { line-height: 1.08; color: var(--ink); }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 4.9vw, 4.4rem); } h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); } h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.005em; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--red-t); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 58ch; }
.hero, .phead, .band, .cta-sec, .stats { --ink: var(--on-dark); --muted: var(--on-dark-m); }
.phead.light { --ink: #0f1424; --muted: #454b5b; }
.hero h1, .hero h2, .phead h1, .band h2, .band h3, .cta-sec h2, .stats b { color: #fff; }
.hero .eyebrow, .phead .eyebrow, .band .eyebrow, .cta-sec .eyebrow { color: var(--red-l); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 30px; font-weight: 700; font-size: .86rem; letter-spacing: .06em; text-transform: uppercase; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s, transform .15s; font-family: inherit; }
.btn:hover { transform: translateY(-2px); } .btn:active { transform: translateY(0); }
.btn-red { background: var(--red); color: #fff; } .btn-red:hover { background: #ff1628; }
.btn-ghost { border-color: var(--ink); color: var(--ink); } .btn-ghost:hover { background: var(--ink); color: #fff; }
.hero .btn-ghost, .phead .btn-ghost { border-color: #fff; color: #fff; } .hero .btn-ghost:hover { background: #fff; color: var(--night); }
.btn-light { background: #fff; color: var(--night); } .btn-light:hover { background: var(--sky); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: #fff; color: #000; padding: 8px 14px; z-index: 99; }
:focus-visible { outline: 3px solid #4da3ff; outline-offset: 3px; }
.demo-tag { background: var(--red); color: #fff; font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-align: center; padding: 7px 14px; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand img { height: auto; width: 250px; }
@media (max-width: 600px) { .brand img { width: 190px; } }
.nav { display: flex; align-items: center; gap: 32px; font-weight: 600; font-size: .92rem; }
.nav a:not(.btn) { position: relative; padding: 6px 0; color: var(--ink); }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--red); transition: width .2s; }
.nav a:not(.btn):hover::after, .nav a[aria-current]::after { width: 100%; }
.nav .btn { padding: 12px 22px; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 24px; height: 2px; background: var(--ink); position: relative; content: ""; }
.burger span::before { position: absolute; top: -8px; } .burger span::after { position: absolute; top: 8px; }

/* Hero: escalera del ranking */
.hero { background: var(--night); padding: 0; position: relative; }
.hero-in { position: relative; overflow: hidden; display: flex; min-height: min(calc(100svh - 110px), 760px); }
.hero-in::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 480px at 10% 100%, rgba(230,0,0,.14), transparent 70%), radial-gradient(900px 500px at 90% 0, rgba(43,127,196,.18), transparent 70%); pointer-events: none; }
.hero-in .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px; width: 100%; align-items: center; }
.hero-tx { padding: 72px 0; position: relative; z-index: 2; }
.hero-tx h1 { text-wrap: balance; } .hero-tx h1 em { font-style: italic; color: var(--red-l); }
.hero-tx .lead { margin: 26px 0 36px; color: var(--on-dark-m); }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.stair { align-self: stretch; display: flex; align-items: flex-end; gap: 6px; min-height: 420px; position: relative; margin-right: -28px; padding-top: 44px; }
.stair .col { position: relative; flex: 1; height: var(--h); overflow: hidden; background: var(--night-3); transition: flex .7s cubic-bezier(.2,.7,.2,1); clip-path: inset(100% 0 0 0); animation: rise 1.1s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i) * 120ms + 200ms); display: block; }
.stair .col.on { flex: 3.2; }
.stair .col img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.72) contrast(1.1); transform: scale(1.08); transition: filter .7s, transform 1.4s cubic-bezier(.2,.7,.2,1); }
.stair .col.on img { filter: none; transform: scale(1); }
.stair .col::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(10,14,26,.9)); }
.stair .n { position: absolute; left: 14px; bottom: 6px; z-index: 2; font-family: var(--serif); font-size: clamp(3.4rem, 6vw, 5.8rem); line-height: 1; color: #fff; letter-spacing: -.04em; transition: color .4s; }
.stair .col.on .n { color: var(--red-l); }
.stair .meta { position: absolute; left: 14px; right: 14px; bottom: clamp(70px, 8vw, 104px); z-index: 2; opacity: 0; transform: translateY(14px); transition: opacity .5s .15s, transform .5s .15s; }
.stair .col.on .meta { opacity: 1; transform: none; }
.stair .meta b { display: block; color: #fff; font-size: 1.15rem; line-height: 1.2; } .stair .meta small { color: var(--on-dark-m); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.stair-cap { position: absolute; top: 4px; left: 0; right: 28px; display: flex; justify-content: space-between; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-m); }
.stair-cap a { color: #fff; border-bottom: 1px solid var(--red); }
@keyframes rise { to { clip-path: inset(0 0 0 0); } }

/* Stats */
.stats { padding: 0; background: var(--night); border-top: 1px solid var(--line-d); }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px 28px 44px 0; border-right: 1px solid var(--line-d); padding-left: 28px; } .stat:first-child { padding-left: 0; } .stat:last-child { border: 0; }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 4.4vw, 3.8rem); letter-spacing: -.03em; line-height: 1; }
.stat span { color: var(--on-dark-m); font-size: .9rem; display: block; margin-top: 10px; }

/* Cabeceras de sección */
.sh { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.sh h2 { max-width: none; }
.link-arrow { font-weight: 700; font-size: .84rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); border-bottom: 2px solid var(--red); padding-bottom: 4px; }
.link-arrow::after { content: " →"; } .link-arrow:hover { color: var(--red-t); }
.band .link-arrow, .cta-sec .link-arrow { color: #fff; }

/* Tarjetas */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); overflow: hidden; transition: translate .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column; }
.card:hover { translate: 0 -3px; box-shadow: var(--shadow); border-color: var(--ink); }
.card .im { aspect-ratio: 3/2; overflow: hidden; background: var(--bg-alt); position: relative; }
.card .im img { width: 100%; height: 100%; object-fit: cover; transition: scale .5s; } .card:hover .im img { scale: 1.05; }
.card .bd { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; line-height: 1.2; }
.card p { color: var(--muted); font-size: .92rem; }
.badge { position: absolute; top: 0; left: 0; background: var(--red); color: #fff; font-weight: 700; padding: 6px 14px; font-size: .9rem; }
.tag { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-t); }
.alt { background: var(--bg-alt); }
/* Tarjetas grandes: 3 columnas y foto protagonista */
.cards.big { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards.big .card .im { aspect-ratio: 4/3; }
.cards.big .card h3 { font-size: 1.6rem; }
.cards.big .card .bd { padding: 22px 26px 28px; }
@media (max-width: 960px) { .cards.big { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards.big { grid-template-columns: 1fr; } }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); position: relative; counter-increment: s; overflow: hidden; }
.step::before { content: counter(s, decimal-leading-zero); position: absolute; top: 12px; left: 18px; z-index: 1; font-family: var(--serif); font-size: 3rem; color: #fff; line-height: 1; text-shadow: 0 2px 18px rgba(0,0,0,.55); }
.step .ph { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.step .ph::after { content: ""; position: absolute; inset: 0 0 55% 0; background: linear-gradient(180deg, rgba(10,14,26,.7), transparent); } .step .ph img { width: 100%; height: 100%; object-fit: cover; transition: scale .5s; } .step:hover .ph img { scale: 1.05; }
.step .tx { padding: 20px 26px 26px; } .step p { color: var(--muted); margin-top: 8px; }

/* Banda oscura */
.band { background: var(--night-2); position: relative; overflow: hidden; }
.band .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.quote { font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.12; letter-spacing: -.015em; color: #fff; }
.bignum { font-family: var(--serif); font-size: clamp(4.5rem, 10vw, 8rem); color: #fff; line-height: 1; letter-spacing: -.04em; }
.band-ph { position: relative; overflow: hidden; min-height: 340px; display: grid; align-content: end; padding: 32px; }
.band-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(var(--g, .4)); }
.band-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,26,.1), rgba(10,14,26,.94)); }
.band-ph > *:not(img) { position: relative; z-index: 1; }

/* Marquesina */
.marq { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marq .tr { display: flex; gap: 8px; width: max-content; will-change: transform; }
.marq + .marq { margin-top: 8px; }
.marq img { height: 190px; width: 285px; object-fit: cover; filter: grayscale(1); transition: filter .3s; } .marq img:hover { filter: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .stair .col { animation: none; clip-path: none; } }

/* Cabecera de página interior */
.phead { padding: 72px 0 56px; background: var(--night); position: relative; overflow: hidden; }
.phead::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 320px at 95% 0, rgba(43,127,196,.2), transparent 70%); }
.phead .wrap { position: relative; }
.phead .lead { margin-top: 18px; color: var(--on-dark-m); }
.crumbs { font-size: .8rem; color: var(--on-dark-m); margin-bottom: 22px; letter-spacing: .04em; } .crumbs a:hover { color: #fff; }

/* Contacto: cabecera clara y formulario centrado */
.phead.light { background: #fff; text-align: center; padding: 72px 0 40px; }
.phead.light::before { display: none; }
.phead.light h1 { color: #0f1424; font-size: clamp(3rem, 6.4vw, 5.6rem); }
.phead.light .lead { margin: 18px auto 0; color: #454b5b; max-width: 56ch; }
.phead.light .lead a { border-bottom: 1px dotted #0f1424; }
.contact { padding-top: 24px; } .contact .wrap { max-width: 980px; }
.cta-sec .form label { border-color: #8d95a8; }

/* Filtros y rankings */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.seg { display: inline-flex; border: 1px solid var(--ink); }
.seg button { border: 0; background: #fff; font: inherit; font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; padding: 12px 20px; cursor: pointer; color: var(--ink); } .seg button + button { border-left: 1px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.field { font: inherit; border: 1px solid var(--ink); padding: 12px 18px; background: #fff; min-width: 230px; color: var(--ink); }
.count { color: var(--muted); font-size: .9rem; margin-left: auto; }
.rank-list { display: grid; gap: 8px; margin-top: 20px; }
.row { display: grid; grid-template-columns: 84px 200px 1fr auto; gap: 22px; align-items: center; background: #fff; border: 1px solid var(--line); padding: 12px 26px 12px 12px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.row:hover { border-color: var(--ink); transform: translateX(4px); box-shadow: var(--shadow); }
.row .pos { font-family: var(--serif); font-size: 2.8rem; line-height: 1; color: var(--ink); text-align: center; letter-spacing: -.03em; }
.row:nth-child(-n+3) .pos { color: var(--red-t); }
.row img { width: 200px; height: 132px; object-fit: cover; }
.row h3 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; } .row .sec { color: var(--muted); font-size: .88rem; }
.row .go { font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; border-bottom: 2px solid var(--red); padding-bottom: 2px; white-space: nowrap; }
.empty { padding: 40px; text-align: center; color: var(--muted); }

/* Ficha */
.profile { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); padding: 30px; } .panel + .panel { margin-top: 20px; }
.panel h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; }
.facts { display: grid; gap: 16px; } .facts dt { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; } .facts dd { font-weight: 600; }
.bars { display: grid; gap: 20px; margin-top: 20px; }
.bar .l { display: flex; justify-content: space-between; gap: 18px; font-size: .95rem; margin-bottom: 8px; } .bar .l b { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.bar .t { height: 6px; background: var(--bg-alt); } .bar .t i { display: block; height: 100%; background: var(--red); width: 0; transition: width 1.2s cubic-bezier(.2,.7,.2,1); }
.ring { --p: 88; width: 150px; height: 150px; border-radius: 50% !important; background: conic-gradient(var(--red) calc(var(--p) * 1%), var(--bg-alt) 0); display: grid; place-items: center; flex: none; }
.ring div { width: 124px; height: 124px; border-radius: 50% !important; background: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 2.5rem; color: var(--ink); }
.hero-co { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.hero-co img.cover { width: 240px; height: 160px; object-fit: cover; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; } .chip { border: 1px solid var(--line-d); color: #fff; font-weight: 600; font-size: .78rem; padding: 6px 14px; letter-spacing: .04em; }
.panel .chip { border-color: var(--line); color: var(--ink); }
.note { font-size: .82rem; color: var(--muted); margin-top: 16px; }

/* Directorio */
.az { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 20px; } .az button { border: 1px solid var(--line); background: #fff; width: 38px; height: 38px; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink); } .az button:hover { border-color: var(--ink); } .az button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.orgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.org { background: #fff; border: 1px solid var(--line); padding: 16px 18px; font-weight: 600; font-size: .94rem; display: flex; align-items: center; gap: 14px; transition: border-color .15s, transform .15s; }
.org:hover { border-color: var(--ink); transform: translateY(-2px); }
.org i { width: 36px; height: 36px; background: var(--night); color: #fff; display: grid; place-items: center; font-style: normal; font-family: var(--serif); font-size: 1.2rem; flex: none; }

/* Formulario */
.form { display: grid; gap: 14px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form { gap: 16px; }
.form label { font-weight: 600; font-size: .86rem; color: #0f1424; display: grid; gap: 6px; background: #fff; border: 1px solid #8d95a8; padding: 12px 18px 10px; cursor: text; transition: border-color .15s, box-shadow .15s; }
.form label:hover { border-color: #0f1424; }
.form label:focus-within { border-color: #0f1424; box-shadow: 0 0 0 3px rgba(77,163,255,.45); }
.form input, .form select, .form textarea { font: inherit; font-size: 1rem; font-weight: 400; color: #0f1424; border: 0; background: transparent; padding: 4px 0 8px; width: 100%; outline: none; min-height: 34px; }
.form select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 28px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230f1424' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 2px center; }
.form textarea { resize: vertical; min-height: 84px; }
.form .btn { justify-self: start; }
.form .ok { background: #e8f8ee; color: #0a6b34; padding: 14px 18px; font-weight: 600; display: none; } .form .ok.show { display: block; }
.cta-sec { background: var(--night); position: relative; overflow: hidden; }
.cta-sec::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 420px at 0 100%, rgba(230,0,0,.16), transparent 70%); }
.cta-sec .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.cta-sec .lead { margin-top: 18px; color: var(--on-dark-m); }
.cta-sec .form { background: #fff; padding: 34px; --ink: #0f1424; }
.cta-ph { margin-top: 32px; aspect-ratio: 16/9; overflow: hidden; } .cta-ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3); }

/* Footer */
.ftr { background: #fff; color: #454b5b; padding: 72px 0 28px; font-size: .94rem; border-top: 1px solid var(--line); }
.ftr .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 40px; }
.ftr h4 { color: #0f1424; font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.ftr li { margin-bottom: 10px; } .ftr a:hover { color: var(--red-t); }
.ftr .logo { height: 80px; width: 80px; margin-bottom: 18px; }
.ftr .legal { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 22px; font-size: .8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

@media (max-width: 960px) {
  section { padding: 64px 0; }
  .hero-in .wrap { grid-template-columns: 1fr; gap: 0; } .hero-tx { padding: 48px 0 32px; }
  .stair { min-height: 360px; margin: 0 -28px; padding-top: 36px; } .stair-cap { left: 28px; right: 28px; }
  .band .wrap, .cta-sec .wrap, .profile { grid-template-columns: 1fr; }
  .stats .grid { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-d); } .stat:nth-child(3) { padding-left: 0; }
  .steps { grid-template-columns: 1fr; } .ftr .cols { grid-template-columns: 1fr 1fr; }
  .burger { display: block; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 22px 28px 30px; gap: 18px; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .row { grid-template-columns: 48px 88px 1fr; gap: 12px; } .row .go { display: none; } .row img { width: 88px; height: 62px; } .row .pos { font-size: 1.7rem; }
  .form .two { grid-template-columns: 1fr; }
}

.cards.big.blog .card .im { aspect-ratio: 3/2; }

/* ══ Efectos ligados al scroll (solo con JS y sin "reducir movimiento") ═════ */
/* El script escribe variables (--py, --sc, --o, --e, --hp…) en cada fotograma de scroll */
.fx-img { transform: translate3d(0, var(--py, 0px), 0) scale(var(--sc, 1.12)); will-change: transform; }
.w { opacity: var(--o, 1); }
.sh .eyebrow::before { width: calc(28px * var(--e, 1)); }
.hdr { transition: box-shadow .25s; } .hdr.scrolled { box-shadow: 0 10px 30px -22px rgba(10,14,26,.7); }
.hdr::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 3px; width: calc(var(--p, 0) * 100%); background: var(--red); }
.cards.big:not(.blog) { margin-top: 24px; }
.card { will-change: transform; }

/* Hero fijo: el scroll sube por el ranking */
html.js .hero { height: 230vh; }
html.js .hero-in { position: sticky; top: 76px; height: calc(100svh - 110px); min-height: 560px; max-height: 860px; }
html.js .hero-tx, html.js .stair { will-change: transform; }

/* Banda del 44%: escena fija; el scroll llena el titular, cuenta y revela la foto */
.band-stick { padding: 64px 0; }
.band-pin .band-ph { min-height: 0; height: min(62vh, 560px); }
html.js .band-pin { height: 240vh; padding: 0; }
html.js .band-stick { position: sticky; top: 76px; height: calc(100svh - 76px); min-height: 560px; padding: 0; display: flex; align-items: center; }
html.js .band-stick .wrap { width: 100%; }

/* Carrusel: dos filas que viajan con el scroll en sentidos opuestos */
.marq + .marq img { height: 150px; width: 225px; }

/* Cabeceras de página: el brillo y el título se desplazan al bajar */
.phead::before { inset: -80px 0; transform: translate3d(0, calc(var(--pp, 0) * 90px), 0); }

@media (max-width: 960px) {
  html.js .hero { height: auto; } html.js .hero-in { position: relative; top: auto; height: auto; max-height: none; min-height: 0; }
  html.js .band-pin { height: auto; } html.js .band-stick { position: relative; top: auto; height: auto; padding: 64px 0; }

}

section:has(.cards.blog) { overflow-x: clip; }
.band-pin { overflow: visible; }

/* ══ Slider de rankings (home) ═══════════════════════════════════════════════
   Base = lista estática (celular, sin JS, "reducir movimiento").
   Desde 961 px y con JS es una escena fija: el scroll cambia de diapositiva. */
.rk { padding: 0; background: #fff; }
.rk-stick { padding: 56px 0 8px; }
.rk-label { max-width: var(--max); margin: 0 auto 28px; padding: 0 28px; }
.rk-label h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--ink); max-width: none; }
.rk-all, .rk-nav { display: none; }
.rs { max-width: var(--max); margin: 0 auto 36px; padding: 0 28px; }
.rs-fr, .rs-t2 { display: none; }
.rs-bg { aspect-ratio: 3/2; overflow: hidden; position: relative; background: var(--bg-alt); }
.rs-bg img { width: 100%; height: 100%; object-fit: cover; }
.rs-n { display: block; margin-top: 16px; font-weight: 700; font-size: .85rem; letter-spacing: .14em; color: var(--red-t); }
.rs-t { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 7vw, 3.4rem); line-height: 1; letter-spacing: -.02em; color: var(--ink); margin: 6px 0 16px; }
.rs-t .m { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; }
.rs-t .w2 { display: inline-block; }
.rs-box { border-left: 3px solid var(--red); padding: 2px 0 2px 18px; max-width: 520px; }
.rs-box b { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1; display: block; color: var(--ink); }
.rs-box p { margin: 6px 0 4px; font-weight: 600; color: var(--ink); }
.rs-box small { display: block; color: #454b5b; font-size: .88rem; margin-bottom: 12px; }

@media (min-width: 961px) {
  html.js .rk { height: calc(100svh - 76px + (var(--n) - 1) * 80vh); }
  html.js .rk-stick { --SH: calc(100svh - 76px); position: sticky; top: 76px; height: var(--SH); min-height: 600px; padding: 0; overflow: hidden; background: #fff; }
  html.js .rk-stick[data-dir="1"] { --c0: 100% 0 0 0; --d: 1; }
  html.js .rk-stick[data-dir="-1"] { --c0: 0 0 100% 0; --d: -1; }

  html.js .rk-label { position: absolute; z-index: 6; left: 4vw; top: 30px; margin: 0; padding: 0; max-width: none; color: #fff; transition: color .5s; pointer-events: none; }
  html.js .rk-label h2 { color: inherit; font-size: clamp(1.2rem, 1.8vw, 1.6rem); margin-top: -4px; }
  html.js .rk-stick[data-comp="b"] .rk-label { color: var(--ink); }
  html.js .rk-all { display: inline-block; position: absolute; z-index: 6; right: 12vw; bottom: 30px; transition: color .5s; }
  html.js .rk-stick[data-comp="c"] .rk-all { color: #fff; }
  html.js .rk-nav { display: grid; position: absolute; z-index: 6; right: 0; top: 50%; transform: translateY(-50%); }
  html.js .rk-nav button { width: 84px; height: 84px; border: 0; background: rgba(243,245,249,.94); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
  html.js .rk-nav button + button { border-top: 1px solid #dfe3ec; }
  html.js .rk-nav button:hover { background: var(--ink); color: #fff; }

  html.js .rs { position: absolute; inset: 0; max-width: none; margin: 0; padding: 0; visibility: hidden; }
  html.js .rs.on, html.js .rs.out { visibility: visible; }
  html.js .rs.on { z-index: 3; } html.js .rs.out { z-index: 2; }

  /* Fotos: cortina desde abajo (o desde arriba al volver) y zoom que se asienta */
  html.js .rs-bg, html.js .rs-fr { position: absolute; margin: 0; overflow: hidden; aspect-ratio: auto; background: var(--night-3); clip-path: inset(var(--c0)); transition: clip-path 1.15s cubic-bezier(.7,0,.2,1) .05s; }
  html.js .rs-fr { display: block; transition-delay: .3s; }
  html.js .rs.on .rs-bg, html.js .rs.on .rs-fr { clip-path: inset(0 0 0 0); }
  html.js .rs.out .rs-bg, html.js .rs.out .rs-fr { clip-path: inset(0 0 0 0); transition: none; }
  html.js .rs-bg img, html.js .rs-fr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); transition: transform 2s cubic-bezier(.2,.7,.2,1); }
  html.js .rs.on img { transform: none; } html.js .rs.out img { transform: none; transition: none; }
  html.js .rs-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,14,26,.78), transparent 55%), linear-gradient(180deg, rgba(10,14,26,.5), transparent 26%); }

  /* Titular: palabras que suben tras una máscara */
  html.js .rs-meta { position: absolute; z-index: 4; display: flex; flex-direction: column; gap: 10px; }
  html.js .rs-n { margin: 0; font-size: 1.15rem; font-weight: 500; letter-spacing: .04em; color: #fff; opacity: 0; transform: translateY(14px); transition: opacity .6s .5s, transform .7s .5s; }
  html.js .rs.on .rs-n { opacity: 1; transform: none; } html.js .rs.out .rs-n { opacity: 0; transition: opacity .3s; }
  html.js .rs-t { color: #fff; margin: 0; line-height: .94; font-size: clamp(3rem, 6.6vw, 7.6rem); }
  html.js .rs-t .w2 { transform: translateY(calc(var(--d, 1) * 118%)); transition: transform 1s cubic-bezier(.2,.7,.2,1) calc(.35s + var(--i) * .09s); }
  html.js .rs.on .rs-t .w2 { transform: none; }
  html.js .rs.out .rs-t .w2 { transform: translateY(calc(var(--d, 1) * -118%)); transition: transform .6s cubic-bezier(.6,0,.8,.4); }

  /* Recuadro blanco superpuesto */
  html.js .rs-box { position: absolute; z-index: 5; background: #fff; border: 0; padding: 28px 30px 26px; max-width: none; box-shadow: 0 30px 60px -34px rgba(10,14,26,.6); opacity: 0; transform: translateY(26px); transition: opacity .7s .75s, transform .9s .75s cubic-bezier(.2,.7,.2,1); }
  html.js .rs.on .rs-box { opacity: 1; transform: none; } html.js .rs.out .rs-box { opacity: 0; transition: opacity .3s; }
  html.js .rs-box b { font-size: 2.4rem; color: var(--red-t); }
  html.js .rs-box p { font-size: 1.02rem; line-height: 1.35; margin: 10px 0 8px; }

  /* A · foto partida a la izquierda + recorte enmarcado a la derecha */
  html.js .s-a .rs-bg { left: 0; top: 0; bottom: 0; width: 50vw; }
  html.js .s-a .rs-fr { left: 60vw; top: calc(var(--SH) * .2); width: 27vw; height: calc(var(--SH) * .56); }
  html.js .s-a .rs-fr img { object-position: 82% 40%; transform: scale(1.6); } html.js .s-a.on .rs-fr img { transform: scale(1.35); } html.js .s-a.out .rs-fr img { transform: scale(1.35); }
  html.js .s-a .rs-meta { left: 4vw; bottom: calc(var(--SH) * .1); width: 44vw; }
  html.js .s-a .rs-box { left: 53vw; bottom: calc(var(--SH) * .24); width: 17vw; min-width: 260px; }

  /* B · retrato enmarcado al centro; el titular lo cruza (copia blanca dentro de la foto) */
  html.js .s-b .rs-fr { left: 30vw; top: calc(var(--SH) * .06); width: 40vw; height: calc(var(--SH) * .88); }
  html.js .s-b .rs-fr img { filter: brightness(.82); }
  html.js .s-b .rs-meta { display: contents; }
  html.js .s-b .rs-n { position: absolute; z-index: 4; left: 7vw; top: calc(var(--SH) * .3); color: var(--ink); }
  html.js .s-b .rs-t { position: absolute; z-index: 4; left: 7vw; top: calc(var(--SH) * .4); width: 62vw; color: var(--ink); font-size: clamp(3.2rem, 8.4vw, 9.6rem); }
  html.js .s-b .rs-fr .rs-t2 { display: block; z-index: 2; left: calc(7vw - 30vw); top: calc(var(--SH) * (.4 - .06)); color: #fff; }
  html.js .s-b .rs-box { left: 63vw; top: calc(var(--SH) * .5); width: 17vw; min-width: 260px; }

  /* C · foto a sangre */
  html.js .s-c .rs-bg { inset: 0; width: 100%; }
  html.js .s-c .rs-meta { left: 7vw; bottom: calc(var(--SH) * .12); width: 62vw; }
  html.js .s-c .rs-t { font-size: clamp(3.2rem, 8vw, 9rem); }
  html.js .s-c .rs-box { right: 12vw; top: calc(var(--SH) * .2); width: 18vw; min-width: 270px; }
}

/* Ajustes del slider tras revisión */
@media (min-width: 961px) {
  html.js .rk-label { width: 24vw; }
  html.js .rk-label .eyebrow { color: inherit; }
  html.js .rk-all { right: 9vw; }
  /* B: el titular oscuro queda DEBAJO del marco; la copia blanca (dentro del marco) lo reemplaza al cruzar */
  html.js .s-b .rs-fr { z-index: 2; }
  html.js .s-b .rs-t { z-index: 1; }
  html.js .s-b .rs-fr .rs-t2 { z-index: 3; }
  /* A: recorte enmarcado más cerrado, para que no repita la foto de la izquierda */
  html.js .s-a .rs-fr img { transform-origin: 80% 34%; transform: scale(2.4); }
  html.js .s-a.on .rs-fr img, html.js .s-a.out .rs-fr img { transform: scale(1.95); }
}

@media (min-width: 961px) {
  /* Al salir, las fotos se desvanecen rápido para que el titular nuevo nunca caiga sobre la foto anterior */
  html.js .rs.out .rs-bg, html.js .rs.out .rs-fr { opacity: 0; transition: opacity .45s ease .05s; }
}

/* Lista estática (celular / sin JS): la diapositiva B también muestra su foto */
.s-b .rs-fr { display: block; aspect-ratio: 3/2; overflow: hidden; position: relative; background: var(--bg-alt); }
.s-b .rs-fr img { width: 100%; height: 100%; object-fit: cover; }

/* Celular: la escalera queda fija bajo el header y el scroll sube del 5 al 1 */
@media (max-width: 960px) {
  html.js .hero-in { overflow: visible; }
  html.js .hero-in .wrap { display: block; }
  html.js .hero-in .wrap::after { content: ""; display: block; height: 125vh; }
  html.js .stair { position: sticky; top: 84px; height: calc(100svh - 104px); min-height: 420px; max-height: 780px; padding-top: 74px; margin: 0 -28px; }
  html.js .stair-cap { flex-direction: column; gap: 6px; align-items: flex-start; left: 28px; right: 28px; }
  .stair .meta b { font-size: 1.05rem; } .stair .meta small { font-size: .7rem; }
}
