/* CPS v4.0.0-alpha.2 · Solo Inicio; sin cambios a fichas ni Dashboard. */
.cps4-home { --rail-gutter:clamp(20px,3vw,56px); --rail-gap:14px; background:#0c0c0e; color:#f5f5f5; overflow:hidden; padding-bottom:32px; }
.cps4-home * { box-sizing:border-box; }
.cps4-home [hidden] { display:none!important; }
.cps4-home a { color:inherit; text-decoration:none; }
.cps4-home :is(a,button,[tabindex]):focus-visible { outline:2px solid #f4a300; outline-offset:3px; }
.cps4-hero { position:relative; isolation:isolate; background:#0c0c0e; }
.cps4-hero-slide { position:relative; min-height:90vh; min-height:90svh; display:flex; align-items:flex-end; isolation:isolate; }
.cps4-hero-media { position:absolute; inset:0; display:block; z-index:-2; overflow:hidden; background:#111114; }
.cps4-hero-media img,.cps4-hero-media video { width:100%; height:100%; object-fit:contain; object-position:center; display:block; }
.cps4-hero-slide::after { content:''; position:absolute; inset:0; z-index:-1; pointer-events:none; background:linear-gradient(90deg,rgba(8,8,10,.8),transparent 70%),linear-gradient(0deg,#0c0c0e 0%,rgba(12,12,14,.82) 13%,transparent 55%); }
.cps4-hero-copy { padding:40px var(--rail-gutter) clamp(80px,12vh,140px); width:min(660px,85%); }
.cps4-kicker { margin:0 0 10px; font-weight:700; font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:#ffc052; }
.cps4-hero-copy h2,.cps4-hero-empty h1 { color:#fff; margin:0 0 10px; font-weight:850; font-size:clamp(32px,4.2vw,62px); line-height:1.06; letter-spacing:-.035em; overflow-wrap:anywhere; }
.cps4-hero-description { color:#e5e5e5; font-size:clamp(14px,1.3vw,18px); line-height:1.45; max-width:46ch; margin:0 0 18px; }
.cps4-home .cps4-hero-cta { display:inline-flex; align-items:center; justify-content:center; gap:15px; min-height:44px; color:#171717; background:#f5f5f5; border-radius:5px; padding:10px 22px; font-size:15px; font-weight:750; }
.cps4-home .cps4-hero-cta:hover { background:#f4a300; }
.cps4-hero-controls { display:flex; align-items:center; justify-content:center; gap:8px; padding:0; position:absolute; inset:auto 0 12px; z-index:3; pointer-events:none; }
.cps4-hero-controls button { border:0; background:transparent; color:white; font-size:23px; width:30px; min-height:34px; padding:0; display:grid; place-items:center; cursor:pointer; pointer-events:auto; }
.cps4-hero-controls button[data-cps4-dot] { width:24px; }
.cps4-hero-controls button span { width:7px; height:7px; border-radius:100%; background:#777; display:block; }
.cps4-hero-controls button[aria-pressed=true] span { background:#fff; }
.cps4-hero-empty { padding:65px var(--rail-gutter); min-height:300px; background:linear-gradient(135deg,#18181b,#0c0c0e); }
.cps4-hero-empty p:not(.cps4-kicker) { color:#ddd; margin-bottom:20px; }
.cps4-rail { margin:0 0 28px; scroll-margin-top:80px; }
.cps4-rail-head { padding:0 var(--rail-gutter); display:flex; justify-content:space-between; align-items:baseline; gap:10px; margin-bottom:10px; }
.cps4-rail-head h2 { font-size:clamp(18px,1.5vw,24px); font-weight:750; margin:0; line-height:1.2; color:#f5f5f5; letter-spacing:-.02em; }
.cps4-home .cps4-more { flex:0 0 auto; font-size:13px; color:#dedee3; font-weight:600; }
.cps4-home .cps4-more:hover { color:#f4a300; }
.cps4-rail-body { position:relative; }
.cps4-rail-track { display:flex; gap:var(--rail-gap); overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x proximity; scroll-padding-inline:var(--rail-gutter); padding:4px var(--rail-gutter) 10px; scrollbar-width:none; -ms-overflow-style:none; }
.cps4-home .cps4-cover { position:relative; display:block; flex:0 0 clamp(145px,15vw,210px); aspect-ratio:2/3; border-radius:4px; overflow:hidden; background:#202024; scroll-snap-align:start; color:#fff; }
.cps4-cover img { width:100%; height:100%; object-fit:contain; display:block; }
.cps4-cover--collection img { object-fit:cover; }
.cps4-cover-placeholder { position:absolute; inset:0; padding:12px; display:flex; flex-direction:column; gap:8px; justify-content:center; align-items:center; text-align:center; font-size:14px; overflow-wrap:anywhere; }
.cps4-cover-placeholder small { color:#bbb; font-size:11px; }
.cps4-collection-name { position:absolute; inset:auto 0 0; padding:40px 12px 13px; background:linear-gradient(transparent,#000c); color:#fff; font-size:clamp(14px,1.2vw,19px); font-weight:750; line-height:1.15; }
.cps4-rank { position:absolute; bottom:0; left:5px; font-size:clamp(56px,6vw,105px); font-weight:950; line-height:.95; color:#111; -webkit-text-stroke:1.5px #fff; paint-order:stroke fill; text-shadow:0 2px 8px #000; pointer-events:none; }
.cps4-cover:hover { outline:2px solid #e5e5e5; outline-offset:1px; }
.cps4-rail-arrow { position:absolute; z-index:2; top:50%; transform:translateY(-50%); background:#111d; color:white; border:1px solid #777; border-radius:5px; width:36px; height:56px; font-size:30px; cursor:pointer; }
.cps4-prev { left:4px; } .cps4-next { right:4px; }
.cps4-empty { padding:24px var(--rail-gutter); color:#ccc; }
@media(max-width:780px) {
 .cps4-home { --rail-gutter:16px; --rail-gap:10px; padding-bottom:20px; }
 .cps4-hero-slide { min-height:max(320px,calc(90vh - 112px - env(safe-area-inset-bottom,0px))); min-height:max(320px,calc(90svh - 112px - env(safe-area-inset-bottom,0px))); }
 .cps4-hero-media img { object-position:center top; }
 .cps4-hero-slide::after { background:linear-gradient(0deg,#0c0c0e 0%,rgba(12,12,14,.94) 12%,rgba(12,12,14,.55) 28%,transparent 65%); }
 .cps4-hero-copy { width:100%; padding:100px var(--rail-gutter) 64px; }
 .cps4-hero-copy h2 { font-size:clamp(26px,8vw,39px); max-width:18ch; }
 .cps4-hero-description { font-size:13px; line-height:1.4; max-width:38ch; margin-bottom:14px; }
 .cps4-kicker { font-size:10px; margin-bottom:7px; }
 .cps4-home .cps4-hero-cta { min-height:42px; font-size:13px; padding:9px 15px; }
 .cps4-hero-controls { bottom:8px; }
 .cps4-rail-head { margin-bottom:6px; }
 .cps4-rail-head h2 { font-size:17px; }
 .cps4-home .cps4-more { font-size:12px; }
 .cps4-rail { margin-bottom:20px; }
 .cps4-home .cps4-cover { flex-basis:43vw; }
 .cps4-rail-track { scrollbar-width:none; padding-bottom:5px; }
 .cps4-rail-track::-webkit-scrollbar { display:none; }
 .cps4-rail-arrow { display:none!important; }
 .cps4-rank { font-size:68px; }
}
@media(prefers-reduced-motion:reduce) { .cps4-home * { scroll-behavior:auto!important; } }

/* CPS alpha.2.1 — medios a sangre; carruseles sin barra visible. */
.cps4-rail-track::-webkit-scrollbar { display:none; width:0; height:0; }
.cps4-hero-media video { object-fit:cover; position:absolute; inset:0; max-width:none; max-height:none; border-radius:0; }
.cps4-hero-controls .cps4-hero-toggle { font-size:16px; width:34px; }
@media(max-width:780px) { .cps4-hero-media video { object-position:center; } }

/* CPS alpha.2.2 — Hero inmersivo y separación de la primera fila. */
.cps4-hero { margin-bottom:16px; }
@media(max-width:780px) { .cps4-hero { margin-bottom:12px; } }
