/* ==========================================================================
   LFPP Liga — estilos del sitio
   Medidas y proporciones calcadas del sitio de Liga2. Colores y tipografía
   salen de Liga › Ajustes del sitio (variables en :root).
   ========================================================================== */

:root {
	--c-primary: #F91018;
	--c-accent: #FDC700;
	--c-dark: #171717;
	--c-header: #171717;
	--c-header-2: #293642;
	--c-title: #2C1810;
	--c-text: #121212;
	--c-soft: #FAF8F6;
	--c-gray: #EDEFF4;
	--c-card: #FFFDFA;
	--c-muted: #64748B;
	--font: "Montserrat", system-ui, sans-serif;
	--header-h: 100px;
	--menu-grad: linear-gradient(90deg, var(--c-header) 0%, var(--c-header-2) 100%);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body { margin: 0; font-family: var(--font); background: #fff; color: var(--c-text); line-height: normal; -webkit-font-smoothing: antialiased; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin-top: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 16px; border-radius: 999px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

/* Aparición suave de las secciones al hacer scroll. */
html.js-reveal main section.section { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
html.js-reveal main section.section.is-visible,
html.js-reveal main section.section--posiciones,
html.js-reveal main section.docs-section { opacity: 1; transform: none; }

/* ---------- Botones ---------- */
.btn {
	display: inline-block; background: var(--c-primary); color: #fff; border: 0; border-radius: 999px;
	padding: 13px 30px; font-size: 14px; font-weight: 500; line-height: normal; white-space: nowrap;
	transition: transform .22s ease, box-shadow .22s ease, filter .22s ease, background .22s ease; will-change: transform;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 24px color-mix(in srgb, var(--c-primary) 35%, transparent); filter: brightness(1.03); color: #fff; }
.btn:active { transform: translateY(-1px); }
.galeria-cta-btn, .noticias-cta-btn { text-transform: uppercase; letter-spacing: .04em; font-size: 16px; padding: .85rem 2rem; }
.section-cta, .galeria-cta, .noticias-cta { display: flex; justify-content: center; margin-top: 2.25rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }
.site-header.has-topbar { top: -40px; } /* La barra superior se va al bajar y el menú queda fijo. */
.topbar { height: 40px; background: #fff; overflow: hidden; }
.topbar__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.topbar__leagues { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(28px, 5vw, 44px); min-width: 0; }
.topbar__leagues a { display: flex; align-items: center; font-size: 12px; font-weight: 800; color: #9aa0a6; }
.topbar__leagues img { height: 24px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .45; transition: filter .2s, opacity .2s; }
.topbar__leagues a:hover img, .topbar__leagues .is-current img { filter: none; opacity: 1; }
.topbar__leagues .is-current a { color: var(--c-text); }

.social { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 8px; }
.social a { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; transition: filter .2s ease, transform .2s ease, background .15s ease; }
.social--top a { width: 25px; height: 25px; background: #171717; color: #fff; }
.social--top .icon { width: 14px; height: 14px; }
.social--top a:hover { filter: brightness(1.12); }
.social--footer { justify-content: flex-end; gap: .75rem; }
.social--footer a, .social-btn { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #171717; display: inline-flex; align-items: center; justify-content: center; transition: transform .15s ease, background .15s ease; }
.social--footer a:hover, .social-btn:hover { transform: translateY(-2px); background: var(--c-accent); color: #171717; }
.social-btn--sm { width: 36px; height: 36px; background: var(--c-gray); }
.social--menu { justify-content: center; gap: 12px; }
.social--menu a { width: 40px; height: 40px; background: #fff; color: #171717; }

.navbar { height: 60px; background: var(--menu-grad); position: relative; z-index: 1; }
/* Logo | menú centrado | usuario. Las columnas laterales crecen si el logo es largo, así el menú nunca lo pisa. */
.navbar__inner { height: 60px; display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); align-items: center; column-gap: 32px; position: relative; }
.navbar__inner > .brand { justify-self: start; }
.navbar__inner > .user-icon, .navbar__inner > .menu-btn { justify-self: end; grid-column: 3; grid-row: 1; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand__logo { height: 32px; width: auto; max-width: 190px; object-fit: contain; object-position: left center; display: block; }
.brand__sponsor { height: 28px; width: auto; display: block; }
.brand__text { color: #fff; font-weight: 800; font-size: 20px; }
.main-nav { grid-column: 2; grid-row: 1; white-space: nowrap; }
.main-nav__leagues, .main-nav__bottom { display: none; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 28px; }
.menu li { position: relative; }
.menu a { color: #fff; font-size: 15px; font-weight: 500; transition: color .15s; }
.menu a:hover, .menu .is-active > a { color: var(--c-accent); }
.menu .sub-menu { display: none; position: absolute; top: 100%; left: -16px; min-width: 220px; list-style: none; margin: 0; padding: 10px 0; background: var(--c-header); border-radius: 0 0 12px 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.menu li:hover > .sub-menu, .menu li:focus-within > .sub-menu { display: block; }
.menu .sub-menu a { display: block; padding: 8px 16px; font-size: 14px; }
.user-icon { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
.user-icon svg { width: 24px; height: 24px; display: block; }
.menu-btn { display: none; border: 0; background: transparent; padding: 4px; margin-left: auto; }
.menu-btn span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }
.site-header.is-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .menu-btn span:nth-child(2) { opacity: 0; }
.site-header.is-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (slider) ---------- */
.hero { position: relative; min-height: calc(100vh - var(--header-h)); background: var(--c-dark); overflow: hidden; color: #fff; }
.hero--medio { min-height: min(640px, calc(100vh - var(--header-h))); }
.hero--bajo { min-height: 420px; }
.hero__track { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .5s ease, visibility .5s; display: flex; align-items: center; }
.hero__slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.hero__bg { position: absolute; inset: 0; margin: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
/* Encuadre elegido en el panel: qué lado de la imagen no se recorta. */
.hero__slide--arriba .hero__bg img { object-position: center top; }
.hero__slide--abajo .hero__bg img { object-position: center bottom; }
.hero__bg--empty { background: radial-gradient(circle at 75% 40%, color-mix(in srgb, var(--c-primary) 80%, #000) 0, #2a0a0b 45%, #0e0e0f 100%); }
.hero__slide--shade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,12,.8) 0%, rgba(10,10,12,.45) 45%, rgba(10,10,12,0) 75%); }
.hero__content { position: relative; z-index: 1; }
.hero__title { margin: 0 0 16px; font-size: clamp(32px, 4vw, 64px); line-height: 1.02; font-weight: 800; }
.hl { color: var(--c-accent); }
.hero__text { margin: 0 0 24px; max-width: 520px; font-size: 18px; color: #D7DEE7; }
.hero__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(23,23,23,.4); color: #fff; display: grid; place-items: center; transition: background .15s ease, transform .15s ease; }
.hero__arrow:hover { background: rgba(23,23,23,.55); transform: translateY(-50%) scale(1.03); }
.hero__arrow .icon { width: 14px; height: 14px; }
.hero__arrow--prev { left: 16px; }
.hero__arrow--next { right: 16px; }
.hero__dots { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.hero__dots button { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.6); border: 0; padding: 0; transition: width .25s, background .25s; }
.hero__dots .is-active { width: 18px; border-radius: 999px; background: var(--c-primary); }

/* ---------- Secciones ---------- */
.section { padding: 56px 0; position: relative; }
h2 { margin: 0 0 10px; font-size: clamp(28px, 3vw, 40px); }
.subtitle { margin: 0; color: var(--c-muted); font-size: 18px; }
.galeria-title, .noticias-title, .clubes-title, .news-all__title {
	margin: 0 0 1.75rem; font-size: clamp(1.65rem, 3.5vw, 2.25rem); font-weight: 800; color: var(--c-title); letter-spacing: .02em; text-align: left;
}
.noticias-title { margin-bottom: 2rem; }
.clubes-title, .news-all__title { color: #121212; }

/* ---------- Partidos / Fixture ---------- */
.section--partidos {
	background-color: #fff; background-image: var(--img-partidos, none);
	background-repeat: no-repeat; background-position: center; background-size: 100% auto;
	padding: clamp(48px, 8vw, 72px) 0;
}
.section--partidos .container { display: flex; flex-direction: column; align-items: center; }
.partidos-head { text-align: center; margin-bottom: 1.75rem; width: 100%; }
.partidos-head h2 { margin: 0 0 .5rem; color: var(--c-title); font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: .02em; }
.partidos-head .subtitle { color: var(--c-muted); }

.partidos-filters { margin-bottom: clamp(1.25rem, 3vw, 1.75rem); width: 100%; max-width: 640px; }
.partidos-filters__inner { display: flex; flex-direction: column; align-items: center; gap: .75rem; width: 100%; }
.partidos-filters__bar { display: flex; align-items: stretch; width: 100%; max-width: 640px; padding: .35rem .5rem .35rem .85rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 9999px; box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.partidos-filters__control { position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: center; }
.partidos-filters__control .icon { position: absolute; right: .15rem; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--c-muted); }
.partidos-filters__select { appearance: none; -webkit-appearance: none; width: 100%; margin: 0; padding: .45rem 1.65rem .45rem .35rem; border: 0; background: transparent; font-size: .9375rem; font-weight: 500; color: #0f172a; cursor: pointer; text-overflow: ellipsis; }
.partidos-filters__select:focus { outline: none; }
.partidos-filters__control:focus-within { outline: 2px solid #c9a227; outline-offset: 2px; border-radius: 8px; }
.partidos-filters__divider { flex-shrink: 0; width: 1px; align-self: stretch; min-height: 2.25rem; margin: .2rem .35rem; background: #e2e8f0; }
.partidos-filters__btn { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; margin-left: .15rem; padding: .5rem 1.15rem; border: 0; border-radius: 9999px; background: #ed283a; color: #fff; font-size: .875rem; font-weight: 600; white-space: nowrap; }
.partidos-filters__btn:hover { background: #4a242a; }
.partidos-filters__clear { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem 0; font-size: .875rem; color: #94a3b8; white-space: nowrap; }
.partidos-filters__clear:hover { color: var(--c-muted); }

.fixture-layout { display: flex; justify-content: center; width: 100%; }
.fixture-card { width: 100%; max-width: 640px; padding: clamp(1.15rem, 2.5vw, 1.75rem); background: var(--c-card); border: 1px solid rgba(44,24,16,.06); border-radius: 16px; box-shadow: 0 10px 36px rgba(44,24,16,.1); text-align: left; }
.fixture-card__header { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.35rem; }
.fixture-card__header img, .fixture-card__header .icon { display: block; width: 26px; height: 26px; object-fit: contain; color: var(--c-primary); }
.fixture-card__header h3 { margin: 0; font-size: 1rem; font-weight: 800; color: var(--c-title); }
.fixture-nav { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: 0 0 1rem; }
.fixture-nav__btn { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; padding: 0; border: 1px solid rgba(237,40,58,.28); border-radius: 999px; background: rgba(237,40,58,.08); color: #ed283a; }
.fixture-nav__btn:hover:not(:disabled) { background: #fff; border-color: #ed283a; }
.fixture-nav__btn:disabled { opacity: .35; cursor: default; }
.fixture-nav__label { margin: 0; flex: 1; min-width: 0; text-align: center; font-size: .9rem; font-weight: 800; color: var(--c-title); line-height: 1.25; }
.fixture-group + .fixture-group { margin-top: 1.15rem; padding-top: 1.15rem; border-top: 1px solid rgba(44,24,16,.12); }
.fixture-group__title { display: flex; align-items: center; gap: .45rem; margin: 0 0 .55rem; font-size: .86rem; font-weight: 800; color: var(--c-title); }
.fixture-group__title img { display: block; width: 18px; height: 18px; object-fit: contain; }
.fixture-group__matches { display: grid; gap: .55rem; }
.fixture-match { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr) 2rem; align-items: center; gap: .75rem; border-radius: 8px; transition: background .15s; }
.fixture-match:hover { background: rgba(44,24,16,.03); }
.fixture-match__time { font-size: .82rem; font-weight: 800; color: var(--c-title); }
.fixture-match__time--pending { font-size: .68rem; line-height: 1.2; letter-spacing: .02em; text-transform: uppercase; color: #9a3412; }
.fixture-match__time--final { font-size: .68rem; letter-spacing: .02em; text-transform: uppercase; color: var(--c-muted); }
.fixture-match__time--live { font-size: .68rem; text-transform: uppercase; color: var(--c-primary); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.fixture-match__teams, .fixture-match__scores { display: grid; gap: .35rem; }
.fixture-club { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; min-width: 0; font-size: .82rem; font-weight: 700; color: var(--c-title); }
.fixture-club > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fixture-club__crest, img.fixture-club__crest { flex: 0 0 24px; width: 24px; height: 24px; max-width: 24px; object-fit: contain; }
.crest--placeholder { display: inline-grid; place-items: center; border-radius: 50%; background: rgba(44,24,16,.1); color: var(--c-title); font-weight: 800; font-size: 9px; }
.fixture-club__goals { flex-basis: 100%; padding-left: calc(24px + .45rem); font-size: .72rem; font-weight: 500; color: var(--c-muted); white-space: normal; }
.fixture-match__venue { font-size: .72rem; font-weight: 500; color: var(--c-muted); padding-left: calc(24px + .45rem); }
.fixture-match__scores { justify-items: end; font-size: .82rem; font-weight: 800; color: var(--c-title); align-self: start; padding-top: 4px; }
.fixture-match__pens { font-size: .62rem; font-weight: 700; color: var(--c-muted); white-space: nowrap; }
.fixture-match.is-live .fixture-match__scores { color: var(--c-primary); }
.fixture-empty { margin: 0; font-size: .95rem; color: var(--c-muted); }

/* ---------- Tabla de posiciones ---------- */
.section--posiciones { padding: clamp(48px, 7vw, 72px) 0; background: #fff; }
.posiciones-title { margin: 0 0 1.75rem; text-align: center; font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; color: var(--c-title); letter-spacing: .02em; }
.posiciones-card { background: var(--c-card); border-radius: 16px; box-shadow: 0 10px 36px rgba(44,24,16,.1); overflow: hidden; border: 1px solid rgba(44,24,16,.06); }
.standings-widget { padding: clamp(1rem, 2.5vw, 1.35rem); }
.standings-toolbar { margin-bottom: 1.25rem; }
.posiciones-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.posiciones-tab { font-weight: 600; font-size: .875rem; padding: .5rem 1.35rem; border-radius: 999px; border: none; background: #e8e0dc; color: var(--c-title); transition: background .15s ease, color .15s ease; }
.posiciones-tab:hover { background: color-mix(in srgb, var(--c-primary) 14%, #e8e0dc); }
.posiciones-tab.is-active { background: var(--c-primary); color: #fff; }
.posiciones-tab:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.standings-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.standings-table__meta { margin: 0 0 .85rem; font-size: .875rem; font-weight: 600; color: var(--c-muted); text-align: center; }
.standings-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: clamp(.78rem, 1.35vw, .92rem); }
.standings-table.is-compact { min-width: 0; }
.standings-table thead th { padding: .65rem .45rem; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--c-muted); border-bottom: 2px solid rgba(44,24,16,.1); white-space: nowrap; }
.standings-table tbody td { padding: .7rem .45rem; border-bottom: 1px solid rgba(44,24,16,.07); color: var(--c-title); vertical-align: middle; }
.standings-table tbody tr:last-child td { border-bottom: none; }
.standings-table tbody tr:nth-child(even) { background: rgba(44,24,16,.025); }
.standings-table__pos { width: 2.25rem; text-align: center; font-weight: 700; color: var(--c-muted); }
.standings-table tbody tr.has-zone td.standings-table__pos { box-shadow: inset 3px 0 0 var(--zone); }
.standings-table__club { min-width: 10rem; text-align: left; }
.standings-table__club-inner { display: flex; align-items: center; gap: .55rem; }
.standings-table__club-name { font-weight: 600; line-height: 1.25; }
a.standings-table__club-inner:hover .standings-table__club-name { color: var(--c-primary); }
.standings-table__stat { text-align: center; width: 2.5rem; }
.standings-table__pts { text-align: center; width: 2.75rem; font-weight: 800; color: var(--c-title); }
.standings-table tbody .standings-table__pts { font-size: 1.02em; }
.standings-table__pts-bonus { display: block; margin-top: .12rem; font-size: .68rem; font-weight: 700; line-height: 1; color: var(--c-primary); }
.standings-table__note { margin: .75rem 0 0; font-size: .78rem; font-weight: 600; color: var(--c-muted); text-align: center; }
.standings-zones { list-style: none; margin: .85rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1.25rem; font-size: .75rem; font-weight: 600; color: var(--c-muted); }
.standings-zones li { display: flex; align-items: center; gap: .4rem; }
.standings-zones span { width: 10px; height: 10px; border-radius: 3px; }
.standings-empty { margin: 0; padding: 1.5rem 0; text-align: center; color: var(--c-muted); font-size: .95rem; }
.section--standings-legend { background: #fff; padding: clamp(1rem, 3vw, 1.75rem) 0 clamp(48px, 7vw, 72px); }
.standings-legend { background: #171717; border-radius: 15px; padding: clamp(1rem, 2.5vw, 1.35rem) clamp(1.1rem, 3vw, 1.75rem); }
.standings-legend__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem clamp(.75rem, 2vw, 1.5rem); color: #fff; font-size: clamp(.8rem, 1.35vw, .95rem); font-weight: 500; line-height: 1.35; }
.standings-legend__abbr { font-weight: 700; }

/* ---------- Estadísticas (diseño de Estadísticas de Liga2) ---------- */
.section--estadisticas { background: #fff; }
.l1-stats { background: #fff; border: 1px solid rgba(31,41,55,.1); border-radius: 14px; padding: 24px; margin: 24px 0; color: #1f2937; box-shadow: 0 10px 30px rgba(15,23,42,.08); }
.l1-stats__tabs { display: inline-flex; flex-wrap: wrap; gap: .4rem; padding: 4px; margin: 0 0 1.1rem; background: rgba(15,23,42,.04); border-radius: 999px; max-width: 100%; }
.l1-stats__tab { border: 0; border-radius: 999px; padding: .5rem 1.05rem; font-size: .82rem; font-weight: 700; letter-spacing: .02em; color: var(--c-muted); background: transparent; transition: background .15s, color .15s, box-shadow .15s; }
.l1-stats__tab:hover { color: #1f2937; }
.l1-stats__tab.is-active { background: #fff; color: #1f2937; box-shadow: 0 1px 4px rgba(15,23,42,.1); }
.l1-stats__header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 1.15rem; }
.l1-stats__heading { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.l1-stats__badge { flex: none; display: block; width: 12px; height: 18px; margin-top: .35rem; border-radius: 2px; background: linear-gradient(180deg, #f5d76e 0%, #e6b422 55%, #c9970a 100%); box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.l1-stats__badge--rojas { background: linear-gradient(180deg, #f87171 0%, #dc2626 55%, #b91c1c 100%); }
.l1-stats__badge--goles, .l1-stats__badge--minutos, .l1-stats__badge--arcos_cero, .l1-stats__badge--todos { width: 18px; height: 18px; border-radius: 50%; margin-top: .25rem; box-shadow: none; background: var(--c-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm1 3.1 2.6 1.9-1 3.1h-3.2l-1-3.1L13 5.1Zm-7.4 4 2.7-.4 1 3.1-2.6 1.9-2-1.5a8 8 0 0 1 .9-3.1Zm2.7 9.2-.5-2.6 2.6-1.9 2.6 1.9-.5 2.6a8 8 0 0 1-4.2 0Zm9.2-3.3-2.6-1.9 1-3.1 2.7.4a8 8 0 0 1 .9 3.1l-2 1.5Z'/%3E%3C/svg%3E") center / 14px no-repeat; }
.l1-stats__badge--minutos { background-color: #1f2937; }
.l1-stats__badge--arcos_cero { background-color: #15803d; }
.l1-stats__subtitle { margin: 0; font-size: 1.3rem; font-weight: 800; color: #1f2937; }
.l1-stats__filters-row { display: flex; flex-wrap: wrap; gap: 12px; }
.l1-stats__filters { display: flex; flex-direction: column; gap: .35rem; }
.l1-stats__filter-label { font-size: 12px; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: .04em; }
.l1-stats__filter { appearance: none; -webkit-appearance: none; min-width: 240px; padding: .55rem 2rem .55rem .85rem; border: 1px solid rgba(31,41,55,.1); border-radius: 999px; background: #fffdfa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2364748b' stroke-width='1.6' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") right .85rem center no-repeat; font-size: .9rem; font-weight: 600; color: #1f2937; }
.l1-stats__filter--search { background-image: none; padding-right: .85rem; }
.l1-stats__filter--compact { min-width: 0; width: auto; }
.l1-stats__filter:focus { outline: 2px solid var(--c-primary); outline-offset: 1px; }
.l1-stats__table-wrap { border: 1px solid rgba(31,41,55,.1); border-radius: 10px; overflow: auto; }
.l1-stats__table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.l1-stats__table thead th { padding: .75rem .65rem; background: rgba(15,23,42,.03); font-size: .72rem; font-weight: 800; color: var(--c-muted); text-transform: uppercase; letter-spacing: .05em; text-align: left; border-bottom: 2px solid rgba(31,41,55,.1); white-space: nowrap; }
.l1-stats__table tbody td { padding: .7rem .65rem; border-bottom: 1px solid rgba(31,41,55,.1); color: var(--c-muted); font-weight: 700; }
.l1-stats__table tbody tr:last-child td { border-bottom: 0; }
.l1-stats__table tbody tr:nth-child(even) { background: rgba(15,23,42,.02); }
.l1-stats__table .l1-stats__col-pos { width: 40px; text-align: center; }
.l1-stats__table td.l1-stats__col-name { color: #1f2937; font-weight: 700; }
.l1-stats__table td.l1-stats__col-name small { display: block; font-size: .72rem; font-weight: 500; color: var(--c-muted); }
.l1-stats__table td.l1-stats__col-role { font-weight: 400; text-transform: uppercase; font-size: .82rem; }
.l1-stats__table td.l1-stats__col-club { color: #1f2937; font-weight: 600; }
.l1-stats__table .l1-stats__col-val, .l1-stats__table .l1-stats__col-num { text-align: center; }
.l1-stats__table td.l1-stats__col-num { color: #1f2937; font-weight: 600; }
.l1-stats__empty { text-align: center; }
.l1-stats__val { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-width: 44px; padding: .25rem .55rem; border-radius: 999px; font-weight: 800; background: rgba(31,41,55,.08); color: #1f2937; }
.l1-stats__val-icon { display: none; width: 9px; height: 13px; border-radius: 1.5px; box-shadow: 0 1px 1px rgba(0,0,0,.15); }
.l1-stats__val--amarillas { background: rgba(180,83,9,.14); color: #b45309; }
.l1-stats__val--amarillas .l1-stats__val-icon { display: block; background: linear-gradient(180deg, #f5d76e 0%, #e6b422 60%, #c9970a 100%); }
.l1-stats__val--rojas { background: rgba(185,28,28,.12); color: #b91c1c; }
.l1-stats__val--rojas .l1-stats__val-icon { display: block; background: linear-gradient(180deg, #f87171 0%, #dc2626 60%, #b91c1c 100%); }
.l1-stats__val--goles { background: color-mix(in srgb, var(--c-primary) 12%, transparent); color: var(--c-primary); }
.l1-stats__val--arcos_cero { background: rgba(21,128,61,.12); color: #15803d; }
.l1-stats__pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px; margin-top: .9rem; }
.l1-stats__pager-size { display: flex; align-items: center; gap: .5rem; }
.l1-stats__pager-info { margin: 0; font-size: .82rem; font-weight: 600; color: var(--c-muted); }
.l1-stats__pager-nav { display: flex; gap: .5rem; }
.l1-stats__pager-btn { padding: .45rem .85rem; border: 1px solid rgba(31,41,55,.1); border-radius: 999px; background: #fffdfa; font-size: .8rem; font-weight: 700; color: #1f2937; }
.l1-stats__pager-btn:hover:not(:disabled) { border-color: rgba(31,41,55,.3); }
.l1-stats__pager-btn:disabled { opacity: .45; cursor: default; }
.l1-stats__footnote { margin: .85rem 0 0; font-size: .78rem; color: var(--c-muted); }
.stats-torneo { display: flex; justify-content: center; margin-bottom: 1.25rem; }
.widget-block { margin-top: 2rem; }
.widget-block__title { font-size: 1.25rem; font-weight: 800; color: var(--c-title); margin: 0 0 .75rem; }
.embed iframe { width: 100%; border: 0; border-radius: 12px; display: block; }

/* ---------- Bloque promocional (LigaFan) ---------- */
.section--ligafan-promo { background: #fff; padding: clamp(40px, 6vw, 64px) 0; }
.ligafan-promo-card {
	position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 46%); align-items: end; gap: clamp(1rem, 3vw, 2rem);
	min-height: min(320px, 50vw); padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 3rem) 0; border-radius: 24px; overflow: hidden;
	background-color: #1b0b0d; background-image: var(--promo-img, linear-gradient(105deg, #121212 0%, #2a0d10 45%, color-mix(in srgb, var(--c-primary) 80%, #000) 100%));
	background-repeat: no-repeat; background-position: center; background-size: cover;
}
.ligafan-promo-card--solo { grid-template-columns: 1fr; }
.ligafan-promo-copy { position: relative; z-index: 1; align-self: center; max-width: 32rem; padding-bottom: clamp(1.5rem, 4vw, 2.75rem); }
.ligafan-promo-heading { margin: 0 0 1rem; font-size: clamp(1.35rem, 3.2vw, 2.25rem); font-weight: 800; line-height: 1.1; letter-spacing: .02em; text-transform: uppercase; }
.ligafan-promo-line { display: block; color: #fff; }
.ligafan-promo-line--accent { color: var(--c-accent); }
.ligafan-promo-text { margin: 0 0 1.25rem; font-size: clamp(.9rem, 1.6vw, 1.05rem); line-height: 1.5; color: rgba(255,255,255,.95); font-weight: 500; }
.ligafan-promo-figure { position: relative; z-index: 1; display: flex; justify-content: flex-end; align-items: flex-end; align-self: end; margin: 0; pointer-events: none; }
.ligafan-promo-figure img { display: block; width: min(100%, 572px); height: auto; max-height: min(374px, 46.2vw); object-fit: contain; object-position: bottom right; }

/* ---------- Banner publicitario ---------- */
.section--banner-caliente { background: var(--c-soft); padding: clamp(32px, 5vw, 48px) 0; }
.banner-caliente-link { display: block; border-radius: 14px; overflow: hidden; line-height: 0; border: 1px solid rgba(44,24,16,.08); box-shadow: 0 4px 20px rgba(44,24,16,.06); transition: box-shadow .2s ease, transform .2s ease; }
a.banner-caliente-link:hover { box-shadow: 0 10px 32px rgba(44,24,16,.12); transform: translateY(-2px); }
.banner-caliente-picture, .banner-caliente-img { width: 100%; display: block; }
.banner-caliente-img { height: auto; object-fit: cover; }
.ad-slot--page { width: min(1200px, calc(100% - 48px)); margin: 24px auto 0; }

/* ---------- Noticias (inicio) ---------- */
.section--noticias { background: #fff; padding: clamp(48px, 7vw, 72px) 0; }
.noticias-grid, .news-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 1.75rem); }
.noticia-card, .news-card { height: 100%; }
.noticia-card__link, .news-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; border-radius: 14px; overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.noticia-card__link { background: var(--c-soft); border: 1px solid rgba(44,24,16,.08); box-shadow: 0 4px 20px rgba(44,24,16,.06); }
.noticia-card__link:hover { box-shadow: 0 10px 32px rgba(44,24,16,.1); transform: translateY(-2px); }
.news-card__link { background: #fff; border: 1px solid #e5e5e5; }
.news-card__link:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(17,24,39,.12); }
.noticia-card__media, .news-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: #e8e4e0; }
.news-card__media { background: #e5e7eb; }
.noticia-card__media img, .news-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.noticia-card__body, .news-card__body { padding: 1.1rem 1.15rem 1.35rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.noticia-card__date, .news-card__date { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c-primary); }
.news-card__date { font-weight: 800; }
.noticia-card__title, .news-card__title { margin: 0; font-size: 1.05rem; font-weight: 800; line-height: 1.25; color: var(--c-title); }
.news-card__title { color: #111827; }
.noticia-card__excerpt, .news-card__excerpt { margin: 0; font-size: .9rem; line-height: 1.45; color: #4b5563; flex: 1; }

/* ---------- Noticias (página) ---------- */
.news-filter { background: var(--c-gray); padding: 18px 0; }
.news-filter__inner { display: flex; align-items: center; gap: 12px; }
.news-filter__label { font-size: 14px; font-weight: 600; color: #111827; }
.news-filter__select { min-width: 220px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(17,24,39,.18); background: #fff; font-size: 14px; font-weight: 600; }
.news-all { background: #fff; padding: clamp(28px, 5vw, 48px) 0 clamp(48px, 7vw, 72px); }
.news-empty { color: var(--c-muted); }
.news-pagination { margin-top: clamp(1.5rem, 4vw, 2.25rem); background: #fff; border-radius: 16px; padding: 14px 16px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.news-pagination__btn, .news-pagination__page { display: inline-flex; align-items: center; justify-content: center; height: 34px; min-width: 34px; padding: 0 10px; border-radius: 999px; border: 1px solid #cedbe5; color: #171717; font-weight: 800; font-size: 13px; letter-spacing: .06em; }
.news-pagination__page.is-active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.news-pagination__btn:hover, a.news-pagination__page:hover { background: rgba(23,23,23,.04); }
.news-pagination .dots { border: 0; }

/* ---------- Noticia ---------- */
.news-detail { background: #fff; padding: clamp(24px, 4vw, 36px) 0 clamp(48px, 7vw, 72px); }
.news-detail__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); align-items: start; }
.news-article { grid-column: span 8; min-width: 0; }
.news-article__hero { width: 100%; height: auto; border-radius: 18px; object-fit: cover; display: block; }
.news-article__date { display: block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--c-primary); text-transform: uppercase; letter-spacing: .06em; }
.news-article__title { margin: 10px 0 12px; font-size: 24px; font-weight: 600; color: #171717; line-height: 1.3; }
.news-article__content { font-size: 14px; line-height: 1.7; color: #171717; }
.news-article__content p { margin: 0 0 12px; }
.news-article__content h2, .news-article__content h3 { margin: 18px 0 10px; font-size: 24px; font-weight: 600; color: #171717; }
.news-article__content img { border-radius: 16px; display: block; }
.news-article__content a { color: var(--c-primary); text-decoration: underline; }
.news-article__content ul, .news-article__content ol { padding-left: 1.4em; margin: 0 0 12px; }
.news-article__content figure { margin: 18px 0; }
.news-article__content iframe { border-radius: 12px; }

/* Tablas dentro de la nota (programación de árbitros, resultados…). */
.news-article__content .wp-block-table { margin: 22px 0; overflow-x: auto; border: 1px solid #E6E1DC; border-radius: 14px; background: #fff; }
.news-article__content table { width: 100%; table-layout: auto; border-collapse: collapse; font-size: 13px; line-height: 1.4; }
.news-article__content th { background: var(--c-dark); color: #fff; font-weight: 700; text-align: left; padding: 11px 10px; vertical-align: bottom; }
.news-article__content td { padding: 11px 10px; border-top: 1px solid #EEE9E4; vertical-align: top; }
.news-article__content th:first-child, .news-article__content td:first-child { padding-left: 16px; }
.news-article__content th:last-child, .news-article__content td:last-child { padding-right: 16px; }
.news-article__content tbody tr:nth-child(even) td { background: var(--c-soft); }
.news-article__content figcaption { padding: 10px 14px; font-size: 12px; color: var(--c-muted); }

/* Archivo para descargar: tarjeta con el nombre y un botón. */
.news-article__content .wp-block-file { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 22px 0; padding: 16px 18px; border: 1px solid #E6E1DC; border-radius: 14px; background: var(--c-soft); }
.news-article__content .wp-block-file__embed { display: none; }
.news-article__content .wp-block-file > a:not(.wp-block-file__button) { display: flex; align-items: center; gap: 12px; color: var(--c-text); font-weight: 700; text-decoration: none; }
.news-article__content .wp-block-file > a:not(.wp-block-file__button)::before { content: "PDF"; flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--c-primary); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.news-article__content .wp-block-file > a:not(.wp-block-file__button):hover { text-decoration: underline; }
.news-article__content .wp-block-file__button { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--c-dark); color: #fff !important; font-size: 13px; font-weight: 700; text-decoration: none !important; white-space: nowrap; transition: background .15s; }
.news-article__content .wp-block-file__button:hover { background: var(--c-primary); }

@media (max-width: 700px) {
	/* En celular cada fila es una tarjeta: «Árbitro: Edwin Ordóñez» (usa el data-label de cada celda). */
	.news-article__content .wp-block-table:has(td[data-label]) { border: none; background: none; overflow: visible; }
	.news-article__content table:has(td[data-label]) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.news-article__content table:has(td[data-label]) tr { display: block; margin-bottom: 12px; border: 1px solid #E6E1DC; border-radius: 14px; overflow: hidden; background: #fff; }
	.news-article__content table:has(td[data-label]) td { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; background: #fff !important; text-align: right; }
	.news-article__content table:has(td[data-label]) td:first-child { border-top: none; background: var(--c-dark) !important; color: #fff; font-weight: 700; }
	.news-article__content table:has(td[data-label]) td::before { content: attr(data-label); font-weight: 700; color: var(--c-muted); text-align: left; }
	.news-article__content table:has(td[data-label]) td:first-child::before { color: rgba(255,255,255,.7); }
	.news-article__content .wp-block-file { flex-direction: column; align-items: stretch; }
	.news-article__content .wp-block-file__button { justify-content: center; }
}
.news-article__back { display: flex; justify-content: center; margin-top: 22px; }
.news-article__back-btn { padding-inline: 2.25rem; }
.news-related { grid-column: span 4; background: var(--c-gray); border-radius: 18px; padding: 18px; color: #171717; }
.news-related__title { margin: 0 0 14px; font-size: 20px; font-weight: 600; color: #171717; }
.news-related__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.news-related__item { display: grid; grid-template-columns: 80px 1fr; gap: 10px; align-items: center; }
.news-related__thumb { width: 80px; height: 56px; border-radius: 12px; object-fit: cover; display: block; background: #dfe3ea; }
.news-related__meta { min-width: 0; display: grid; gap: 2px; }
.news-related__date, .news-related__excerpt { font-size: 12px; font-weight: 400; color: #171717; }
.news-related__date { font-weight: 600; }
.news-related__item:hover .news-related__excerpt { color: var(--c-primary); }
.share { display: flex; align-items: center; gap: 8px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #e5e7eb; }
.share__label { font-size: 14px; font-weight: 600; margin-right: 6px; }

/* ---------- Galería ---------- */
.section--galeria { background: #fff; padding: clamp(48px, 7vw, 72px) 0; }
/* Filas de alto fijo: así las fotos verticales no estiran la fila. */
.galeria-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(180px, 20vw, 290px); gap: clamp(.75rem, 2vw, 1.25rem); }
.galeria-item { display: block; margin: 0; padding: 0; border: none; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: #e8e4e0; transition: transform .2s ease, box-shadow .2s ease; }
.galeria-item:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(44,24,16,.15); }
/* Encuadre hacia arriba: en fotos de fútbol (muchas verticales) las caras están en el tercio superior. */
.galeria-item img { display: block; width: 100%; height: 100%; min-height: 140px; object-fit: cover; object-position: center 22%; }
.galeria-item--c3 { grid-column: span 3; min-height: 160px; }
.galeria-item--c6 { grid-column: span 6; min-height: 200px; }
.galeria-item--c4 { grid-column: span 4; min-height: 180px; }
.galeria-item--c12 { grid-column: span 12; min-height: 260px; }
.lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: clamp(1rem, 4vw, 2.5rem); background: rgba(8,10,14,.92); }
.lightbox__img { max-width: min(96vw, 1400px); max-height: 90vh; width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; width: 48px; height: 48px; border: none; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 2rem; line-height: 1; display: flex; align-items: center; justify-content: center; }
.lightbox__close:hover { background: rgba(255,255,255,.22); }
body.lightbox-open, body.menu-open, body.docs-modal-open { overflow: hidden; }

/* ---------- En vivo (banner tipo Bicolor) ---------- */
.section--bicolor-yt { background: #fff; padding: clamp(48px, 8vw, 96px) 0; }
/* Banner ya diseñado por la plataforma (ej. L1MAX): la pieza tal cual. */
.live-banner { display: block; border-radius: 20px; overflow: hidden; box-shadow: 0 18px 40px -22px rgba(0,0,0,.45); transition: transform .2s ease, box-shadow .2s ease; }
a.live-banner:hover { transform: translateY(-2px); box-shadow: 0 24px 48px -22px rgba(0,0,0,.5); }
/* aspect-ratio auto: en celular se carga la versión vertical y debe usar su propia proporción, no la del escritorio. */
.live-banner__img { display: block; width: 100%; height: auto; aspect-ratio: auto; }
.bicolor-banner {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: clamp(1.5rem, 4vw, 2.5rem);
	padding: clamp(2.25rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem); border-radius: 20px; overflow: hidden;
	background-color: #1a0a0c; background-image: var(--live-img, linear-gradient(100deg, #120607 0%, #3a0a0f 55%, #6d0b12 100%));
	background-repeat: no-repeat; background-position: center; background-size: cover;
}
.bicolor-banner__left { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.bicolor-banner__title-wrap { margin-bottom: 1.35rem; width: 100%; display: flex; justify-content: center; }
.bicolor-banner__title { margin: 0; font-size: clamp(.75rem, 2.35vw, 1.85rem); font-weight: 800; line-height: 1.2; letter-spacing: .02em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.bicolor-banner__btn { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; padding: 1rem 2.3rem; margin: 0 auto; border-radius: 999px; background: var(--c-primary); color: #fff; font-weight: 700; font-size: 16px; letter-spacing: .06em; transition: filter .22s ease, transform .22s ease, box-shadow .22s ease; }
.bicolor-banner__btn:hover { transform: translateY(-3px); box-shadow: 0 10px 24px color-mix(in srgb, var(--c-primary) 35%, transparent); filter: brightness(1.06); color: #fff; }
.bicolor-banner__btn-text { text-transform: uppercase; }
.bicolor-banner__yt-mark { display: block; width: auto; height: 20px; max-width: 90px; object-fit: contain; }
.bicolor-banner__right { flex: 0 1 auto; display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.bicolor-banner__label { margin: 0; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; opacity: .95; }
.bicolor-banner__logo { display: block; max-width: min(340px, 52vw); width: auto; height: auto; object-fit: contain; }

/* ---------- Clubes ---------- */
.section--clubes { background: var(--c-gray); padding: clamp(48px, 7vw, 72px) 0; }
.clubes-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem); }
.clubes-item { padding: 0; border: 1px solid rgba(17,24,39,.06); border-radius: 18px; }
.clubes-link { display: grid; justify-items: center; gap: .75rem; padding: 1.25rem 1rem 1rem; border-radius: 18px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.clubes-link:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(17,24,39,.12); }
.clubes-crest { width: min(120px, 70%); height: 86px; object-fit: contain; display: block; }
.clubes-crest.crest--placeholder { width: 86px; font-size: 24px; }
.clubes-name { display: block; width: 100%; text-align: center; font-size: .85rem; font-weight: 600; color: #374151; word-break: break-word; }

/* ---------- Banner de páginas internas ---------- */
.page-banner { background-color: #293542; background-image: var(--img-banner, none); background-repeat: no-repeat; background-position: center; background-size: cover; padding: clamp(3rem, 8vw, 5.5rem) 0; text-align: center; }
.page-banner--left { text-align: left; }
.page-banner__title { margin: 0; color: #fff; font-size: 40px; font-weight: 700; line-height: 1.15; letter-spacing: .02em; }
.breadcrumb { background: var(--c-gray); padding: 12px 0; }
.breadcrumb__nav { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; font-size: .8rem; color: #374151; }
.breadcrumb__nav a { font-weight: 600; }
.breadcrumb__nav a:hover { text-decoration: underline; }
.breadcrumb__sep { opacity: .75; }
.breadcrumb__current { font-weight: 700; color: #111827; }

/* ---------- Ficha de club ---------- */
.club-single { background-color: #fff; background-image: var(--img-club, none); background-repeat: no-repeat; background-size: cover; background-position: center; padding: clamp(36px, 6vw, 56px) 0; }
.club-single__inner { width: min(880px, 100%); margin-inline: auto; text-align: center; }
.club-single__crest { width: 110px; height: 110px; object-fit: contain; display: inline-block; }
.club-single__crest.crest--placeholder { display: inline-grid; font-size: 30px; }
.club-single__title { margin: 18px 0 6px; font-size: 32px; font-weight: 800; color: #121212; letter-spacing: .02em; }
.club-single__foundation { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: #111827; }
.club-single__meta { margin: 0 0 12px; font-size: 13px; font-weight: 500; color: #4b5563; }
.club-single__desc { margin: 0 auto 22px; max-width: 72ch; font-size: 14px; line-height: 1.6; color: #4b5563; }
.club-single__desc p { margin: 0 0 .75em; }
.club-single__social { list-style: none; margin: 0 0 22px; padding: 0; display: flex; justify-content: center; align-items: center; gap: 8px; }
.club-single__web { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--c-gray); font-size: 13px; font-weight: 700; }
.club-single__photo { width: 100%; height: auto; border-radius: 18px; display: block; margin: 0 auto; object-fit: cover; }
.plantel-block { padding: clamp(24px, 4vw, 48px) 0; background: #fff; }
.plantel-block__surface { background-color: var(--c-gray); border-radius: 20px; padding: clamp(20px, 3.5vw, 36px); }
@media (min-width: 901px) {
	.plantel-block__surface { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 24px); row-gap: clamp(20px, 3vw, 28px); }
	.plantel-block__title-wrap { grid-column: 2 / span 10; }
	.plantel--in-block { grid-column: 1 / -1; }
}
.plantel-title__bar { display: flex; align-items: center; justify-content: flex-start; gap: clamp(12px, 2.5vw, 22px); background-color: #111827; background-image: var(--img-plantel, linear-gradient(100deg, #111827 0%, #1f2937 55%, color-mix(in srgb, var(--c-primary) 55%, #111827) 100%)); background-repeat: no-repeat; background-size: cover; background-position: center; border-radius: 14px; overflow: hidden; border: 1px solid rgba(224,229,240,.9); padding: 16px 14px; }
.plantel-title__mark { display: block; flex-shrink: 0; height: clamp(26px, 4vw, 34px); width: auto; object-fit: contain; }
.plantel-title__text { margin: 0; min-width: 0; color: #fff; font-size: 24px; font-weight: 600; }
.plantel-groups { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 40px); }
.plantel-group__title { margin: 0 0 1rem; font-size: clamp(1.15rem, 2.5vw, 1.35rem); font-weight: 800; color: var(--c-title); letter-spacing: .02em; }
.plantel-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px clamp(16px, 2vw, 24px); }
.plantel-empty { margin: 0; color: var(--c-muted); }
.jugador-card { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 12px; border: 2px solid #e0e5f0; border-radius: 14px; background: rgba(255,255,255,.92); }
.jugador-card__img { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; display: block; }
.jugador-card__img--empty { display: grid; place-items: end center; background: linear-gradient(180deg, #e9edf3, #d9dfe8); color: rgba(17,24,39,.22); overflow: hidden; }
.jugador-card__info { text-align: left; }
.jugador-card__name { margin: 0 0 6px; font-size: 14px; font-weight: 800; color: #111827; }
.jugador-card__dorsal { color: var(--c-primary); }
.jugador-card__meta { margin: 0; font-size: 14px; font-weight: 500; color: #374151; }

/* ---------- Ficha de partido ---------- */
.match-hero { background: var(--menu-grad); color: #fff; padding: 28px 0 44px; }
.match-hero .crumbs { display: flex; flex-wrap: wrap; gap: .35rem; font-size: .8rem; opacity: .85; }
.match-hero .crumbs a:hover { color: var(--c-accent); }
.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; margin-top: 24px; }
.scoreboard__team { display: grid; justify-items: center; gap: 12px; text-align: center; }
.scoreboard__team .crest--xl { width: 110px; height: 110px; object-fit: contain; }
.scoreboard__name { margin: 0; font-size: 20px; font-weight: 800; }
.scoreboard__center { display: grid; justify-items: center; gap: 10px; text-align: center; }
.scoreboard__score { display: flex; gap: 14px; font-size: 56px; font-weight: 800; line-height: 1; }
.scoreboard__sep { opacity: .5; }
.scoreboard__pens, .scoreboard__venue { font-size: 13px; opacity: .8; }
.scoreboard__when { font-weight: 700; }
.scoreboard__goals { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; margin-top: 24px; font-size: 14px; opacity: .9; }
.scoreboard__goals ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.scoreboard__goals ul:first-child { text-align: right; }
.scoreboard__tv { text-align: center; margin: 24px 0 0; opacity: .85; }
.scoreboard__tv a { text-decoration: underline; }
.badge { display: inline-block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 3px 9px; border-radius: 6px; background: rgba(255,255,255,.14); color: #fff; }
.badge--en_vivo { background: var(--c-primary); }
.crest--xl.crest--placeholder { font-size: 30px; }

/* ---------- Documentos ---------- */
.docs-section { padding-block: clamp(2rem, 5vw, 3rem); }
.docs-section__inner { max-width: min(1000px, 100%); margin-inline: auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.docs-tabs { display: flex; flex-wrap: nowrap; justify-content: center; align-items: stretch; gap: .65rem; margin-bottom: clamp(1.75rem, 4vw, 2.5rem); width: 100%; }
.docs-tab { appearance: none; border: none; font-size: 14px; font-weight: 600; line-height: 1.3; padding: .65rem .75rem; border-radius: 999px; background: #ebe8ea; color: #171717; transition: background .2s ease, color .2s ease; flex: 1 1 0; min-width: 0; text-align: center; white-space: normal; overflow-wrap: break-word; display: flex; align-items: center; justify-content: center; }
.docs-tab:hover { filter: brightness(.97); }
.docs-tab.is-active { background: var(--c-primary); color: #fff; }
.docs-panels, .docs-panel { width: 100%; }
.docs-panel__title { margin: 0 0 1.35rem; font-size: 32px; font-weight: 700; color: #171717; line-height: 1.2; }
.docs-panel__desc { color: var(--c-muted); margin: -.5rem 0 1.25rem; }
.docs-year { position: relative; display: inline-flex; align-items: center; margin-bottom: 1.75rem; }
.docs-year__select { appearance: none; -webkit-appearance: none; margin: 0; border: none; background: #171717; color: #fff; font-size: 14px; font-weight: 400; line-height: 1.3; padding: .7rem 2.65rem .7rem 1.35rem; border-radius: 999px; cursor: pointer; }
.docs-year__select:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.docs-year__chevron, .docs-year > .icon { position: absolute; right: 1.15rem; top: 50%; transform: translateY(-50%); pointer-events: none; color: #fff; display: flex; }
.docs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .85rem; width: 100%; }
.docs-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.15rem; border: 2px solid #e0e5f0; border-radius: 999px; background: #fff; text-align: left; }
.docs-item__icon { flex-shrink: 0; width: 40px; display: block; }
.docs-item__icon svg { display: block; width: 40px; height: auto; }
.docs-item__text { flex: 1; min-width: 0; font-size: 18px; font-weight: 400; color: #171717; line-height: 1.35; }
.docs-item__name { font-weight: 700; }
.docs-item__size { font-size: 14px; font-weight: 400; color: #9f9f9f; }
.docs-item__desc { display: block; font-size: 13px; color: var(--c-muted); }
.docs-item__actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.docs-action-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.65rem; height: 2.65rem; border-radius: 50%; border: none; background: var(--c-gray); color: #171717; transition: filter .2s ease; }
.docs-action-btn:hover { filter: brightness(.96); }
.docs-empty { color: var(--c-muted); }
.docs-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.docs-modal__backdrop { position: absolute; inset: 0; background: rgba(12,16,23,.72); }
.docs-modal__dialog { position: relative; z-index: 1; width: min(960px, 100%); max-height: min(90vh, 900px); background: #fff; border-radius: 12px; box-shadow: 0 18px 48px rgba(0,0,0,.28); display: flex; flex-direction: column; overflow: hidden; }
.docs-modal__header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border-bottom: 1px solid #e0e5f0; }
.docs-modal__title { margin: 0; font-size: 1.1rem; font-weight: 600; color: #171717; }
.docs-modal__close { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border: none; border-radius: 8px; background: var(--c-gray); color: #171717; }
.docs-modal__frame-wrap { flex: 1; min-height: min(70vh, 640px); background: #f4f5f8; }
.docs-modal__frame { width: 100%; height: 100%; min-height: min(70vh, 640px); border: 0; display: block; }

/* ---------- Texto libre / páginas ---------- */
.section--texto .container, .section--page-content .container { max-width: 800px; }
.prose { font-size: 16px; line-height: 1.7; color: #1f2937; }
.prose h2, .prose h3 { color: var(--c-title); margin: 1.5em 0 .5em; }
.prose a { color: var(--c-primary); text-decoration: underline; }
.prose img { border-radius: 12px; }
.page-extra { margin-top: 2.5rem; }
.empty { color: var(--c-muted); text-align: center; }

/* ---------- Sponsors y footer ---------- */
.sponsors { background: #171717; color: #fff; padding: 44px 0 24px; }
.sponsors__title { margin: 0 0 2.5rem; padding: .5rem 0; display: flex; align-items: center; justify-content: center; gap: .65rem; font-size: 24px; font-weight: 800; letter-spacing: .02em; }
.sponsors__mark { width: 28px; height: 28px; display: block; object-fit: contain; }
.sponsors__grid { list-style: none; margin: 0; padding: 0 0 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(10px, 1.4vw, 18px); align-items: center; }
.sponsors__item { flex: 1 1 calc(100% / var(--per-row, 6) - 18px); min-width: 120px; display: flex; align-items: center; justify-content: center; min-height: 44px; }
.sponsors__item img { max-width: 128px; width: min(100%, 128px); max-height: 34px; height: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: .95; transition: opacity .15s; }
.sponsors__item a:hover img { opacity: 1; }
.sponsors__name { font-weight: 800; letter-spacing: .04em; opacity: .85; }
.site-footer { background: #171717; color: #fff; }
.site-footer__rule { padding: 24px 0; }
.site-footer__rule hr { border: 0; height: 1px; margin: 0; background: rgba(255,255,255,.1); }
.site-footer > .container > .site-footer__rule:first-child { padding-top: 0; }
.site-footer__top { display: grid; grid-template-columns: 3fr 6fr 3fr; gap: clamp(1.25rem, 3vw, 2.5rem); padding: 2rem 0 2.25rem; align-items: start; }
.site-footer__logo img { display: block; width: 140px; height: auto; }
.site-footer__desc { margin: .75rem 0 0; max-width: 320px; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.85); }
.site-footer__heading { margin: 0 0 1rem; font-weight: 700; font-size: 1rem; color: #fff; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem 1.25rem; }
.footer-menu a { color: rgba(255,255,255,.9); font-size: .9375rem; }
.footer-menu a:hover { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__legal { margin: 0; padding: 0 0 2rem; text-align: center; color: #99a1af; font-size: .875rem; }

/* ---------- Fondos elegidos en el panel (pisan el predeterminado) ---------- */
.section.bg-blanco { background: #fff; }
.section.bg-suave { background: var(--c-soft); }
.section.bg-gris { background: var(--c-gray); }
.section.bg-oscuro { background: var(--c-dark); color: #fff; }
.section.bg-oscuro :is(.galeria-title, .noticias-title, .clubes-title, .posiciones-title, .partidos-head h2) { color: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1240px) {
	.navbar__inner { column-gap: 20px; }
	.menu { gap: 20px; }
	.menu a { font-size: 14px; }
}
@media (max-width: 1100px) {
	.menu { gap: 14px; }
	.menu a { font-size: 13px; }
	.brand__logo { max-width: 160px; }
	.clubes-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
	.partidos-filters__inner { flex-direction: row; justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 960px) {
	.news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.news-article, .news-related { grid-column: span 12; }
}

@media (max-width: 900px) {
	html { scroll-padding-top: 60px; }
	.site-header.has-topbar { top: 0; }
	.topbar { display: none; }
	.menu-btn { display: inline-block; }
	.user-icon { display: none; }
	.main-nav {
		position: fixed; left: 0; right: 0; top: 60px; bottom: 0; transform: translateY(-12px);
		display: grid; grid-template-rows: auto 1fr auto; align-items: start; gap: 0;
		background: var(--menu-grad); padding: 18px 24px 22px; opacity: 0; pointer-events: none;
		transition: .2s ease; overflow: auto; white-space: normal;
	}
	.site-header.is-open .main-nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
	body.admin-bar .main-nav { top: 106px; } /* Con la barra de WordPress visible (sesión iniciada). */
	.main-nav__leagues { display: flex; list-style: none; margin: 0; padding: 10px 0 16px; justify-content: center; align-items: center; gap: clamp(22px, 4.5vw, 36px); }
	.main-nav__leagues img { height: 22px; width: auto; object-fit: contain; opacity: .95; filter: brightness(0) invert(1); }
	.main-nav__leagues span { color: #fff; font-weight: 800; font-size: 13px; }
	.menu { display: grid; gap: 0; }
	.menu li { border-bottom: 1px solid #606870; }
	.menu > li:first-child { border-top: 1px solid #606870; }
	.menu a { display: block; width: 100%; padding: 18px 0; font-weight: 600; letter-spacing: .02em; }
	.menu .sub-menu { position: static; display: block; box-shadow: none; padding: 0 0 8px 16px; background: none; }
	.menu .sub-menu li { border: 0; }
	.menu .sub-menu a { padding: 8px 0; }
	.main-nav__bottom { display: grid; justify-items: center; gap: 12px; padding-top: 22px; }
	.main-nav__follow { margin: 0; color: rgba(255,255,255,.9); font-size: .95rem; font-weight: 600; }
	.main-nav__legal { margin: 0; text-align: center; color: #99a1af; font-size: .875rem; }
	.galeria-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
	.galeria-item { grid-column: span 1; aspect-ratio: 1 / 1; min-height: 0; }
	.galeria-item img { min-height: 0; }
	.galeria-grid > .galeria-item:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
	/* La primera ocupa la fila entera: con un total par, la última quedaría sola, así que también va entera. */
	.galeria-grid > .galeria-item:last-child:nth-child(even) { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
	.noticias-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
	.standings-legend__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-footer__top { grid-template-columns: 1fr; text-align: center; padding: 2rem 0; }
	.site-footer__logo { display: flex; justify-content: center; }
	.site-footer__desc { margin-inline: auto; }
	.footer-menu { grid-template-columns: 1fr; justify-items: center; max-width: 360px; margin-inline: auto; text-align: center; }
	.social--footer { justify-content: center; }
	.sponsors__item { flex-basis: calc(33.333% - 18px); min-width: 96px; }
	.sponsors__item img { max-width: 112px; max-height: 32px; }
	.sponsors__grid { padding-bottom: 24px; }
	.plantel-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
	.hero__slide { align-items: flex-start; padding-top: clamp(5.5rem, 12vh, 9rem); }
	.hero__content { text-align: center; display: flex; flex-direction: column; align-items: center; }
	.hero__title { font-size: 40px; line-height: 1.05; }
	.hero__text { margin-inline: auto; }
	.hero__arrow { width: 40px; height: 40px; }
	.hero__arrow--prev { left: 12px; }
	.hero__arrow--next { right: 12px; }
	.ligafan-promo-card { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: stretch; min-height: unset; text-align: center; padding-top: 2.25rem; }
	.ligafan-promo-copy { max-width: none; padding-bottom: 1.75rem; }
	.ligafan-promo-figure { justify-content: center; width: 100%; }
	.ligafan-promo-figure img { max-height: 270px; width: auto; max-width: 100%; object-position: center bottom; }
	.ligafan-promo-heading { margin-top: 1rem; font-size: 32px; }
}

@media (max-width: 767px) {
	.standings-table-wrap { overflow-x: hidden; }
	.standings-table { min-width: 0; width: 100%; table-layout: fixed; font-size: .82rem; }
	.standings-table thead th, .standings-table tbody td { padding: .55rem .2rem; }
	.standings-table__stat--hide-mobile { display: none; }
	.standings-table__pos { width: 1.6rem; padding-left: 0; }
	.standings-table__club { min-width: 0; width: auto; }
	.standings-table__club-inner { gap: .4rem; min-width: 0; }
	.standings-table__club-inner .fixture-club__crest { width: 20px; height: 20px; flex-basis: 20px; }
	.standings-table__club-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; }
	.standings-table__stat, .standings-table__pts { width: 2.15rem; }
	.standings-table__pts-bonus { display: none; }
	.l1-stats__hide-mobile, .l1-stats__col-role { display: none; }
}

@media (max-width: 720px) {
	.standings-widget { padding: .85rem .65rem 1rem; }
	.clubes-title { text-align: center; }
	.clubes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.club-single__inner { padding-inline: 16px; }
	.club-single__desc { text-align: justify; }
	.plantel-grid { grid-template-columns: 1fr; }
	.bicolor-banner { display: grid; justify-items: center; align-content: center; text-align: center; padding-top: 5rem; padding-bottom: 5rem; }
	.bicolor-banner__left { width: 100%; }
	.bicolor-banner__title { white-space: normal; font-size: 35px; }
	.bicolor-banner__btn { max-width: 340px; padding: .95rem 2rem; margin: 1rem auto; }
	.bicolor-banner__right { align-items: center; text-align: center; width: 100%; max-width: 340px; margin-inline: auto; }
	.bicolor-banner__logo { max-width: min(300px, 88vw); margin-inline: auto; }
	.docs-tabs { justify-content: flex-start; overflow-x: auto; padding-bottom: .35rem; gap: .5rem; }
	.docs-tab { flex: 0 0 auto; min-width: min(118px, 32vw); max-width: 150px; min-height: 3.25rem; }
	.docs-item { flex-wrap: wrap; border-radius: 1.25rem; padding: .9rem 1rem; }
	.docs-item__actions { width: 100%; justify-content: flex-end; margin-top: .25rem; }
	.l1-stats { padding: .9rem; }
	.l1-stats__filters-row, .l1-stats__filters { width: 100%; }
	.l1-stats__filter { width: 100%; min-width: 0; }
	.l1-stats__pager { flex-direction: column; align-items: stretch; }
	.l1-stats__pager-nav { width: 100%; }
	.l1-stats__pager-btn { flex: 1 1 0; }
	.scoreboard { gap: 10px; }
	.scoreboard__team .crest--xl { width: 64px; height: 64px; }
	.scoreboard__name { font-size: 14px; }
	.scoreboard__score { font-size: 38px; }
}

@media (max-width: 640px) {
	.partidos-filters__bar { flex-wrap: wrap; border-radius: 16px; padding: .45rem .65rem; }
	.partidos-filters__control { flex: 1 1 calc(50% - .5rem); }
	.partidos-filters__divider { display: none; }
	.partidos-filters__btn { flex: 1 1 100%; margin: .35rem 0 0; }
	.fixture-match { grid-template-columns: 3rem minmax(0, 1fr) 1.5rem; gap: .55rem; }
}

@media (max-width: 600px) {
	.page-banner__title { font-size: clamp(1.5rem, 6vw, 2.25rem); }
	.news-filter__inner { flex-direction: column; align-items: flex-start; }
	.news-filter__select { width: 100%; min-width: 0; }
	.news-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
	.standings-legend__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	html.js-reveal main section.section { opacity: 1; transform: none; transition: none; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   Legal: Libro de Reclamaciones, políticas, cookies, advertencia de apuestas
   ========================================================================== */
.legal-section { padding: clamp(32px, 5vw, 56px) 0 clamp(48px, 7vw, 72px); }
.legal-container { max-width: 880px; }
.legal-updated { margin: 0 0 1.25rem; font-size: .85rem; font-weight: 600; color: var(--c-muted); }
.legal-prose h2 { font-size: 1.25rem; font-weight: 800; color: var(--c-title); margin: 1.75em 0 .5em; }
.legal-prose p, .legal-prose li { font-size: 15px; line-height: 1.7; color: #1f2937; }

.lr-head { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: 20px 24px; margin-bottom: 24px; background: var(--c-gray); border-radius: 18px; }
.lr-head__logo { width: 150px; height: auto; border-radius: 10px; display: block; }
.lr-head__aviso { margin: 0 0 .5rem; font-weight: 700; color: #111827; }
.lr-head__provider, .lr-head__date { margin: 0 0 .25rem; font-size: .9rem; color: #374151; }
.lr-alert { padding: 12px 16px; border-radius: 12px; background: #FEE2E2; color: #991B1B; font-weight: 600; margin: 0 0 20px; }
.lr-form { display: grid; gap: 20px; }
.lr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lr-block { margin: 0; padding: 22px 24px 24px; border: 1px solid rgba(31,41,55,.1); border-radius: 14px; background: #fff; box-shadow: 0 10px 30px rgba(15,23,42,.06); }
.lr-block legend { padding: 6px 14px; border-radius: 999px; background: #171717; color: #fff; font-size: .85rem; font-weight: 700; }
.lr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-top: 8px; }
.lr-field { display: grid; gap: 6px; }
.lr-field--full { grid-column: 1 / -1; }
.lr-field > span { font-size: .78rem; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: .04em; }
.lr-field input, .lr-field select, .lr-field textarea { width: 100%; padding: .7rem .9rem; border: 1px solid rgba(31,41,55,.15); border-radius: 12px; background: #fffdfa; font-size: .95rem; color: #1f2937; }
.lr-field textarea { resize: vertical; }
.lr-field input:focus, .lr-field select:focus, .lr-field textarea:focus { outline: 2px solid var(--c-primary); outline-offset: 1px; }
.lr-guardian { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.lr-radios { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .95rem; }
.lr-radios--stack { flex-direction: column; }
.lr-radios label, .lr-check { display: flex; gap: .55rem; align-items: flex-start; font-size: .92rem; line-height: 1.45; color: #1f2937; }
.lr-radios input, .lr-check input { margin-top: .2rem; accent-color: var(--c-primary); width: 1rem; height: 1rem; flex: none; }
.lr-check a { color: var(--c-primary); text-decoration: underline; }
.lr-block--legal { display: grid; gap: 12px; }
.lr-note { margin: 0; font-size: .82rem; color: var(--c-muted); }
.lr-submit { justify-self: start; text-transform: uppercase; letter-spacing: .04em; font-size: 15px; padding: .85rem 2rem; }
.lr-done { display: grid; gap: 16px; }
.lr-done__title { font-size: 1.6rem; font-weight: 800; color: var(--c-title); margin: 0; }
.lr-sheet { overflow-x: auto; border-radius: 12px; }
.lr-done__actions { margin: 0; }

.ad-warning { display: flex; align-items: center; gap: .6rem; margin: .65rem 0 0; font-size: .78rem; font-weight: 600; color: #4b5563; line-height: 1.35; }
.ad-warning__age { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #b91c1c; color: #b91c1c; font-size: .72rem; font-weight: 800; }

.site-footer__compliance { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-bottom: 24px; }
.footer-libro { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 12px; background: #fff; color: #171717; font-size: .85rem; font-weight: 700; transition: transform .15s; }
.footer-libro:hover { transform: translateY(-2px); }
.footer-libro img { width: 64px; height: auto; border-radius: 8px; display: block; }
.footer-legal-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .85rem; }
.footer-legal-links a, .footer-cookie-btn { color: rgba(255,255,255,.85); background: none; border: 0; padding: 0; font-size: inherit; }
.footer-legal-links a:hover, .footer-cookie-btn:hover { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }

.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1500; max-width: 760px; margin-inline: auto; display: flex; align-items: center; gap: 16px 24px; padding: 18px 22px; border-radius: 16px; background: #171717; color: #fff; box-shadow: 0 18px 48px rgba(0,0,0,.35); }
.cookie-banner__text { margin: 0; font-size: .88rem; line-height: 1.5; color: rgba(255,255,255,.9); }
.cookie-banner__text a { color: var(--c-accent); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex: none; }
.cookie-banner__btn { border: 0; border-radius: 999px; padding: .65rem 1.3rem; background: var(--c-primary); color: #fff; font-size: .85rem; font-weight: 700; white-space: nowrap; }
.cookie-banner__btn--ghost { background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.cookie-banner__btn:hover { filter: brightness(1.08); }

@media (max-width: 720px) {
	.lr-head { grid-template-columns: 1fr; text-align: center; justify-items: center; }
	.lr-grid, .lr-guardian { grid-template-columns: 1fr; }
	.lr-block { padding: 18px 16px 20px; }
	.cookie-banner { flex-direction: column; align-items: stretch; }
	.cookie-banner__btn { flex: 1; }
	.site-footer__compliance { justify-content: center; text-align: center; }
	.footer-legal-links { justify-content: center; }
}

@media print {
	.site-header, .sponsors, .site-footer, .page-banner, .cookie-banner, .lr-done__actions, .ad-slot { display: none !important; }
	.legal-section { padding: 0; }
	html.js-reveal main section.section { opacity: 1; transform: none; }
}

/* ==========================================================================
   Ajustes de la auditoría de usabilidad y accesibilidad
   ========================================================================== */

/* Rojo de la marca oscurecido para TEXTO sobre fondos claros (contraste ≥ 4.5:1).
   Los botones y fondos siguen usando el rojo original de la marca. */
:root { --c-primary-text: color-mix(in srgb, var(--c-primary) 82%, #000); }
.noticia-card__date, .news-card__date, .news-article__date, .lr-check a, .legal-prose a, .news-article__content a, .prose a, .jugador-card__dorsal { color: var(--c-primary-text); }
.standings-table__pts-bonus { font-size: .72rem; color: var(--c-primary-text); }
.docs-item__size { color: #707070; }
.badge { font-size: 11px; }

/* Formulario del libro: un fieldset no se encoge por defecto y desbordaba en celular. */
.lr-block { min-width: 0; }
.lr-field input, .lr-field select, .lr-field textarea { min-width: 0; }

/* Áreas táctiles de al menos 44 px en celular. */
.hero__dots { gap: 0; bottom: 8px; }
.hero__dots button { width: 26px; height: 26px; border-radius: 0; background: transparent; display: grid; place-items: center; }
.hero__dots button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.6); transition: width .25s, background .25s; }
.hero__dots .is-active { width: 34px; background: transparent; }
.hero__dots .is-active::before { width: 18px; border-radius: 999px; background: var(--c-primary); }
.sponsors__item a { display: flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 4px 8px; }
.partidos-filters__clear { min-height: 40px; }
.l1-stats__pager-btn { min-height: 38px; }
@media (max-width: 900px) {
	.main-nav__leagues a { display: flex; align-items: center; min-height: 44px; padding: 0 6px; }
	.menu-btn { min-width: 44px; min-height: 44px; display: inline-grid; place-content: center; }
}
@media (max-width: 720px) {
	.match-hero .crumbs a { display: inline-block; padding: 8px 0; }
}

/* Foco visible y consistente al navegar con teclado. */
.btn:focus-visible, .posiciones-tab:focus-visible, .l1-stats__tab:focus-visible, .docs-tab:focus-visible, .fixture-nav__btn:focus-visible, .galeria-item:focus-visible, .clubes-link:focus-visible, .noticia-card__link:focus-visible, .news-card__link:focus-visible, .fixture-match:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }
.menu a:focus-visible, .footer-menu a:focus-visible, .footer-legal-links a:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 4px; border-radius: 4px; }

/* Libro: la grilla no debe ensancharse por textos largos; el botón puede partirse en 2 líneas. */
.lr-form { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 720px) { .lr-submit { white-space: normal; width: 100%; text-align: center; } }

/* Footer en celular: enlaces con área táctil cómoda (WCAG 2.2). */
@media (max-width: 900px) {
	.footer-menu a, .footer-legal-links a, .footer-cookie-btn { display: inline-block; padding: 12px 6px; }
	.footer-menu { gap: 0; }
	.footer-legal-links { gap: 0 10px; }
	.site-footer__logo { display: inline-flex; padding: 12px 0; }
}
