/* Páginas de sección (inc/secciones.php): /retro/, /mundial-2026/, /cantantes/, /camisetas-2026/. Móvil primero. */

/* ---------- Héroe ---------- */
.sx-hero { position: relative; overflow: hidden; padding: clamp(18px, 3vw, 28px) 0 clamp(20px, 3vw, 28px); } /* compacta: ~300 px en escritorio */
.sx-hero-in { display: grid; gap: 20px; align-items: center; }
.sx-hero-copy { display: grid; gap: 10px; justify-items: start; }
.sx-hero-copy h1 { font-size: clamp(2rem, 8vw, 3rem); line-height: 1; letter-spacing: -.03em; }
.sx-hero-copy .sub { margin: 0; max-width: 52ch; text-wrap: pretty; }
.sx-hero-copy .eyebrow { margin: 0; }
.sx-hero-copy .crumbs { padding: 0; }
.sx-hero-crests { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.sx-hero-crests li { width: clamp(56px, 7vw, 76px); aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--bg), 0 10px 24px rgba(0, 0, 0, .18); overflow: hidden; display: grid; place-items: center; }
.sx-hero-crests .crest { width: 78%; height: 78%; object-fit: contain; }
.sx-hero-crests .crest.is-retro { width: 100%; height: 100%; } /* los logos antiguos ya vienen recortados a su círculo */
.sx-hero-crests .crest-fallback { width: 100%; height: 100%; font-size: 1rem; }
.crest-photo { display: block; overflow: hidden; border-radius: 50%; background: #fff; }
.crest-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transform: scale(1.45); }
.sx-hero-crests .crest-photo { width: 100%; height: 100%; }
.sx-hero-dark .sx-hero-crests li { box-shadow: 0 0 0 3px var(--dark), 0 10px 24px rgba(0, 0, 0, .4); }
.sx-hero-dark { background: var(--dark); color: #fff; }
.sx-hero-dark .eyebrow { color: #8fc3ff; }
.sx-hero-dark .sub { color: rgba(255, 255, 255, .78); }
.sx-hero-dark .btn-ghost { color: #fff; }
.sx-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: grayscale(1) contrast(1.1); mask-image: linear-gradient(to bottom, #000 30%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent); pointer-events: none; }
.sx-hero-dark::before { content: ""; position: absolute; inset: auto -20% -40% -20%; height: 70%; background: radial-gradient(closest-side, rgba(10, 132, 255, .55), transparent); pointer-events: none; }
.sx-hero-light { background: linear-gradient(180deg, var(--bg-3), var(--bg) 70%); }
.sx-hero:has(.sx-credit) { padding-bottom: calc(clamp(20px, 3vw, 28px) + 16px); } /* que el crédito no pise los escudos */
.sx-credit { position: absolute; right: var(--gutter); bottom: 10px; margin: 0; font-size: .7rem; opacity: .6; }
.sx-credit a { color: inherit; }

/* Pila de camisetas (retro / cantantes): tres tarjetas en abanico */
.sx-hero-stack { position: relative; list-style: none; margin: 0 auto; padding: 0; width: min(100%, 220px); aspect-ratio: 1; }
.sx-hero-stack li { position: absolute; inset: 8% 14%; border-radius: var(--r-m); overflow: hidden; background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); transform: rotate(var(--r, 0)) translate(var(--x, 0), var(--y, 0)); }
.sx-hero-stack li:nth-child(1) { --r: -7deg; --x: -10%; z-index: 1; }
.sx-hero-stack li:nth-child(2) { --r: 2deg; --y: -4%; z-index: 3; }
.sx-hero-stack li:nth-child(3) { --r: 9deg; --x: 10%; z-index: 2; }
.sx-hero-stack img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sx-hero-stack-right { display: none; }

/* Mosaico (2026) */
.sx-hero-mosaic { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 480px; }
.sx-hero-mosaic li { aspect-ratio: 1; border-radius: var(--r-s); overflow: hidden; background: #fff; box-shadow: 0 8px 24px rgba(10, 132, 255, .12); transform: translateY(calc(var(--i, 0) * 8px)); }
.sx-hero-mosaic li:nth-child(2) { --i: 2; } .sx-hero-mosaic li:nth-child(3) { --i: -1; } .sx-hero-mosaic li:nth-child(4) { --i: 1; }
.sx-hero-mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Destacadas del Mundial (la campeona) */
.sx-feat { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 340px; }
.sx-feat a { display: grid; gap: 10px; color: inherit; }
.sx-feat img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-m); background: #fff; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); transition: transform .5s var(--ease); }
.sx-feat a:hover img { transform: translateY(-4px) scale(1.02); }
.sx-feat a > span { display: grid; gap: 2px; }
.sx-feat small { font: 650 .68rem/1.2 var(--font-b); letter-spacing: .1em; text-transform: uppercase; color: #ffd166; }
.sx-feat b { font-size: .95rem; line-height: 1.25; }
.sx-feat em { font-style: normal; color: rgba(255, 255, 255, .75); font-size: .9rem; }
.sx-feat .price del { opacity: .6; }
.sx-feat .price-now { color: #fff; }

/* Vídeo del héroe (cantantes) */
.sx-hero-vid { width: min(100%, 130px); margin: 0 auto; transform: rotate(-1.5deg); }
.sx-hero-vid .vid { width: 100%; aspect-ratio: 9 / 16; border-radius: var(--r-l); overflow: hidden; background: var(--dark); position: relative; box-shadow: 0 30px 70px rgba(10, 132, 255, .22); }
.sx-hero-video { background: linear-gradient(180deg, var(--bg-3), var(--bg) 60%); }
.sx-hero-vid .vcard-play { align-items: start; padding-top: 38%; } /* el play arriba, la leyenda abajo sin pisarse */
.sx-hero-vid .vcard-play span { width: 48px; height: 48px; }
.sx-hero-vid .vid-meta b { font-size: .72rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sx-hero-vid .vid-meta small { font-size: .62rem; }

/* ---------- Filtros ---------- */
.sx-hero + .wrap { padding-top: 24px; } /* aire entre el héroe y los filtros */
.sx-filters { display: grid; gap: 10px; padding-inline: var(--gutter); }
.sx-lbl { align-self: center; flex: none; font: 650 .72rem/1 var(--font-b); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.chip[hidden] { display: none; }
.chip-toggle { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.sx-filters-row { display: flex; gap: 10px; align-items: center; }
.sx-filters-end { justify-content: flex-end; }
.sx-filters-row .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.sx-filters-row .chips::-webkit-scrollbar { display: none; }
.sx-search { position: relative; flex: 1; display: flex; align-items: center; min-width: 0; }
.sx-search svg { position: absolute; left: 14px; color: var(--ink-3); pointer-events: none; }
.sx-search input { width: 100%; min-height: 44px; padding: 0 14px 0 40px; border: 0; border-radius: var(--pill); background: var(--bg-2); font: inherit; font-size: 1rem; color: var(--ink); }
.sx-search input:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.sx-sort select { min-height: 44px; padding: 0 36px 0 16px; border: 0; border-radius: var(--pill); background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; font: inherit; font-size: .9rem; font-weight: 550; color: var(--ink); appearance: none; -webkit-appearance: none; }
.sx-rail { margin-inline: calc(-1 * var(--gutter)); }
.sx-rail .rail-track { gap: 8px; padding-block: 2px; }
.sx-rail .chip { white-space: nowrap; }
/* Móvil: cada grupo de chips es un carril horizontal (main.css .chips los envolvía y el bloque pegajoso medía 750 px: tapaba toda la rejilla en /retro/).
   Además el bloque de filtros no se pega en móvil (ocupaba un tercio de pantalla); en escritorio ya era estático (ux.css). */
.sx-rail .chips { flex-wrap: nowrap; }
.sx-filters { position: static; }
.chip { border: 0; cursor: pointer; font-family: inherit; color: var(--ink); }
.chip small { margin-left: 6px; opacity: .6; font-weight: 500; }
.chip.is-on small { opacity: .85; }
.chip-crest { padding-left: 8px; gap: 8px; }
.chip-ico { width: 24px; height: 24px; object-fit: contain; flex: none; }
.chip-ico.is-retro { width: 28px; height: 28px; margin-block: -2px; border-radius: 50%; background: #fff; }
.chip-ico.crest-fallback { font-size: .6rem; }
.chip-ico.crest-flag { border-radius: 50%; object-fit: cover; }
.chip-crest:not(:has(.chip-ico)) { padding-left: 14px; }
.chip-size { min-width: 44px; justify-content: center; padding: 0 12px; font-weight: 650; }
.chip-stock { gap: 8px; white-space: nowrap; }
.chip-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #30b455; }
.chip-stock.is-on::before { background: #fff; }
.sx-count { display: flex; align-items: center; gap: 14px; margin: 18px 0 14px; color: var(--ink-2); font-size: .95rem; }
.sx-count b { color: var(--ink); font-size: 1.1rem; }
.sx-clear { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--brand-600); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.sx-grid { list-style: none; margin: 0 0 56px; padding: 0; }
.sx-grid > li { position: relative; }
.sx-grid > li[hidden] { display: none; }
.card-ghost { aspect-ratio: 1 / 1.45; border-radius: var(--r-m); background: linear-gradient(180deg, var(--bg-2) 0 68%, transparent 68%); }
.sx-more { display: flex; flex-direction: column; align-items: center; gap: 18px; margin: 8px 0 64px; }
.sx-more[hidden], .sx-more [hidden] { display: none !important; }

.sx-more-btn { gap: .3em; min-width: min(100%, 340px); justify-content: center; height: 52px; border-radius: 999px; background: var(--brand-600); color: #fff; font-weight: 700; font-size: 1rem; letter-spacing: .01em; box-shadow: 0 8px 22px -10px rgba(0, 113, 227, .5); transition: transform .15s, box-shadow .15s; }
.sx-more-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(0, 113, 227, .55); }
.sx-more-btn:active { transform: scale(.98); }
.sx-prog { margin: 0; display: grid; justify-items: center; gap: 10px; width: min(100%, 340px); color: var(--ink-2); font-size: .92rem; }
.sx-prog b { color: var(--ink); font-variant-numeric: tabular-nums; }
.sx-bar { display: block; width: 100%; height: 4px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.sx-bar i { display: block; height: 100%; border-radius: 4px; background: var(--brand-600); transition: width .35s ease; }
.sx-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.sx-pg { min-width: 40px; height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line, #e5e5ea); color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none; font-variant-numeric: tabular-nums; transition: background .15s, border-color .15s; }
.sx-pg:hover { border-color: var(--ink-3); }
.sx-pg.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.sx-pg-nav { font-size: 1.3rem; line-height: 1; }
.sx-gap { min-width: 22px; text-align: center; color: var(--ink-3); align-self: center; }
.sx-top { color: var(--brand-600); font-weight: 650; font-size: .92rem; text-decoration: none; }
.sx-top:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 520px) { .sx-pg { min-width: 32px; height: 38px; padding: 0 5px; border-radius: 10px; } .sx-pages { gap: 4px; flex-wrap: nowrap; } .sx-gap { min-width: 14px; } } /* ‹ 1 2 3 4 … 22 23 › en una sola línea a 390 px */
.sx-grid-big { gap: 28px 14px; }
.sx-club { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .8rem; color: var(--ink-3); }
.sx-club-ico { width: 18px; height: 18px; object-fit: contain; }
.sx-club-ico.crest-fallback { font-size: .5rem; }
.sx-vid-badge { position: absolute; z-index: 3; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 10px 0 8px; border: 0; border-radius: var(--pill); background: rgba(11, 13, 18, .82); color: #fff; font: 650 .75rem/1 var(--font-b); cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform .3s var(--ease), background-color .25s; }
.sx-vid-badge:hover { background: var(--brand-600); transform: translateY(-1px); }

/* Pastillas de liga con escudo (2026) */
.sx-leagues { margin-top: 4px; margin-bottom: 14px; }
.sx-leagues .rail-track { list-style: none; margin: 0; gap: 10px; }
.lg-pill { display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; min-height: 60px; padding: 8px 16px 8px 10px; border: 0; border-radius: 18px; background: var(--bg-2); color: var(--ink); font: inherit; text-align: left; cursor: pointer; white-space: nowrap; box-shadow: inset 0 0 0 1px transparent; transition: background-color .25s, box-shadow .25s, transform .3s var(--ease); }
.lg-pill:hover { background: var(--bg-3); }
.lg-pill:active { transform: scale(.97); }
.lg-pill.is-on { background: #fff; box-shadow: inset 0 0 0 2px var(--brand), 0 10px 26px rgba(10, 132, 255, .18); }
.lg-pill-ico, .lg-pill-all { grid-row: 1 / 3; width: 36px; height: 36px; object-fit: contain; }
.lg-pill-ico.crest-fallback { font-size: .75rem; }
.lg-pill-all { display: grid; place-items: center; border-radius: 50%; background: var(--brand-600); color: #fff; font-size: 1rem; }
.lg-pill span:not(.lg-pill-all) { font-weight: 650; font-size: .92rem; }
.lg-pill small { color: var(--ink-3); font-size: .75rem; }

/* ---------- Cuadro del Mundial ---------- */
.bracket { display: grid; gap: 22px; }
.bracket-col h3 { font-size: .8rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.bracket-col { display: grid; gap: 10px; align-content: start; }
.match { display: grid; gap: 4px; padding: 10px; border-radius: var(--r-m); background: var(--bg-2); }
.match.is-tbd { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); border-style: dashed; }
.match-when, .match-note { color: var(--ink-3); font-size: .75rem; padding: 0 6px; }
.match-note { margin-top: 2px; }
.match-team { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px 0 8px; border: 0; border-radius: var(--r-s); background: #fff; color: var(--ink); font: inherit; font-weight: 550; text-align: left; cursor: pointer; transition: background-color .2s, box-shadow .2s, transform .3s var(--ease); }
.match-team:hover { box-shadow: inset 0 0 0 1.5px var(--brand); }
.match-team:active { transform: scale(.98); }
.match-team.is-on { background: var(--brand-600); color: #fff; }
.match-team.is-win { font-weight: 750; }
.match-team.is-win b { color: var(--brand-600); }
.match-team.is-on b { color: #fff; }
.match-team b { font-variant-numeric: tabular-nums; min-width: 1.2em; text-align: right; }
.match-team.is-tbd { background: transparent; color: var(--ink-3); cursor: default; font-weight: 500; }
.match-flag { width: 28px; height: 28px; }
.match-flag.crest-fallback { font-size: .7rem; }
.crest-empty { display: block; background: var(--line); border-radius: 50%; }
.bracket-final .match { background: var(--dark); color: #fff; }
.bracket-final .match-when, .bracket-final .match-note { color: rgba(255, 255, 255, .7); }
.bracket-final .match-team:not(.is-on) { background: rgba(255, 255, 255, .08); color: #fff; }
.bracket-final .match-team.is-win b { color: #ffd166; }
.sx-camino { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; margin-top: 16px; padding: 16px; border-radius: var(--r-m); background: var(--bg-3); }
.sx-camino[hidden] { display: none; }
.sx-camino .crest { width: 48px; height: 48px; }
.sx-camino b { font-size: 1.05rem; }
.sx-camino p { margin: 4px 0 0; color: var(--ink-2); font-size: .95rem; }
.sx-grid li.is-feat .card-media { box-shadow: 0 0 0 2px #ffd166; }

/* ---------- Escritorio ---------- */
@media (min-width: 768px) {
	.sx-hero-in { grid-template-columns: 1.2fr 1fr; gap: 32px; }
	.sx-hero-stack { width: min(100%, 240px); margin: 0 0 0 auto; }
	.sx-hero-mosaic { gap: 10px; margin-left: auto; }
	.sx-feat { gap: 16px; margin-left: auto; }
	.sx-hero-vid { width: min(100%, 130px); margin: 0 0 0 auto; }
	.sx-hero-stack-right { display: block; width: 100%; }
	.sx-filters { grid-template-columns: 1fr; }
	.sx-filters-row { gap: 14px; }
	.sx-search { max-width: 360px; }
	.sx-hero + .wrap { padding-top: 32px; }
	.sx-rail:has(.chips-wrap) { margin-inline: 0; }
	.chips-wrap { flex-wrap: wrap; padding-inline: 0; }
	.sx-grid { grid-template-columns: repeat(3, 1fr); gap: 32px 20px; }
	.sx-grid-big { grid-template-columns: repeat(3, 1fr); }
	.bracket { grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: center; }
	.bracket-cuartos { order: 1; } .bracket-semis { order: 2; } .bracket-final { order: 3; } .bracket-tercero { order: 4; }
	.bracket-semis { gap: 40px; }
	.bracket-final .match { padding: 14px; }
}
@media (min-width: 1040px) {
	.sx-grid { grid-template-columns: repeat(4, 1fr); }
	.sx-grid-big { grid-template-columns: repeat(3, 1fr); gap: 36px 24px; }
	.sx-hero-copy h1 { font-size: clamp(2.4rem, 3.2vw, 3rem); }
}
@media (prefers-reduced-motion: reduce) {
	.sx-hero-vid, .sx-hero-mosaic li, .sx-hero-stack li { transform: none; }
	.sx-feat img, .lg-pill, .match-team, .sx-vid-badge, .chip { transition: none; }
}

