/*
Proyecto: Al Aro
Archivo: assets/css/app.css
Path: /assets/css/app.css
Descripción: UI consolidada v1.4.0 / mobile-first / desktop estable / dark-light / portal deportivo.
Versión: v1.4.0
*/

/* =========================================================
   1. VARIABLES
   ========================================================= */

:root {
    --bg: #05070d;
    --bg-soft: #0a1020;
    --surface: #101827;
    --surface-2: #151f33;
    --surface-3: rgba(255,255,255,.055);

    --text: #f8fafc;
    --soft: #cbd5e1;
    --muted: #7f8da3;

    --line: rgba(255,255,255,.12);
    --line-soft: rgba(255,255,255,.075);

    --orange: #ff6b00;
    --amber: #ffbf3d;
    --red: #ef4444;
    --green: #22c55e;
    --cyan: #25d7ff;
    --purple: #9146ff;

    --shadow: 0 24px 90px rgba(0,0,0,.42);
    --shadow-soft: 0 18px 55px rgba(0,0,0,.26);

    --radius-xl: 32px;
    --radius-lg: 26px;
    --radius-md: 18px;
    --radius-sm: 14px;

    --max: 1240px;
    --bottom-nav-height: 86px;
}

html[data-theme="light"] {
    --bg: #f3f4f6;
    --bg-soft: #ffffff;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --surface-3: rgba(15,23,42,.045);

    --text: #0f172a;
    --soft: #334155;
    --muted: #64748b;

    --line: rgba(15,23,42,.12);
    --line-soft: rgba(15,23,42,.075);

    --shadow: 0 24px 70px rgba(15,23,42,.12);
    --shadow-soft: 0 18px 45px rgba(15,23,42,.10);
}

/* =========================================================
   2. RESET / BASE
   ========================================================= */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
    background: var(--bg);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 0%, rgba(255,107,0,.22), transparent 34%),
        radial-gradient(circle at 82% 8%, rgba(37,215,255,.14), transparent 30%),
        linear-gradient(180deg, #090d19 0%, var(--bg) 52%, #030407 100%);
}

html[data-theme="light"] body::before {
    background:
        radial-gradient(circle at 18% 0%, rgba(255,107,0,.10), transparent 34%),
        radial-gradient(circle at 82% 8%, rgba(37,215,255,.08), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%);
}

.site-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    opacity: .13;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

html[data-theme="light"] .site-bg { opacity: .10; }

a { color: inherit; }

img, iframe { max-width: 100%; }

button, input, textarea, select { font: inherit; }

/* =========================================================
   3. LAYOUT GLOBAL
   ========================================================= */

.app-shell {
    width: min(var(--max), calc(100% - 30px));
    margin: 18px auto 96px;
}

.section {
    margin-top: 18px;
}

.grid {
    display: grid;
    gap: 18px;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin: 8px 0 18px;
}

.section-head > div { min-width: 0; }

.section-head span {
    display: block;
    color: var(--orange);
    font-size: .74rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .14em;
}

.section-head h1,
.section-head h2 {
    margin: 4px 0 0;
    color: var(--text);
    font-family: Oswald, Impact, sans-serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: .95;
    text-transform: uppercase;
    letter-spacing: -.03em;
}

.section-head a {
    color: var(--soft);
    text-decoration: none;
    font-weight: 900;
    border: 1px solid var(--line);
    padding: 10px 13px;
    border-radius: 999px;
    background: var(--surface-3);
}

/* =========================================================
   4. HEADER / BRANDING
   ========================================================= */

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px max(14px, calc((100vw - var(--max)) / 2));
    border-bottom: 1px solid var(--line-soft);
    background: rgba(5,7,13,.88);
    backdrop-filter: blur(22px);
}

html[data-theme="light"] .topbar { background: rgba(255,255,255,.92); }

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
}

.brand-mark {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    color: #111;
    font-size: 1.65rem;
    box-shadow: 0 12px 38px rgba(255,107,0,.34);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    min-width: 0;
}

.brand-title {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-family: Oswald, Impact, sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: .9;
    text-transform: uppercase;
    letter-spacing: -.04em;
}

.brand-title span:first-child { color: var(--text); }
.brand-title span:last-child { color: var(--amber); }

.brand-text small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: .56rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 190px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-btn,
.menu-btn {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.08);
    color: var(--text);
    cursor: pointer;
}

.menu-btn { display: grid; }

.menu-btn.is-active,
.theme-btn:hover,
.menu-btn:hover {
    color: #111;
    background: linear-gradient(135deg, var(--orange), var(--amber));
}

.nav {
    display: none;
    position: absolute;
    right: 14px;
    top: 68px;
    width: min(250px, calc(100vw - 28px));
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(10,16,32,.98);
    box-shadow: var(--shadow);
}

html[data-theme="light"] .nav { background: rgba(255,255,255,.98); }

.nav.is-open,
.nav.open { display: flex; }

.nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--soft);
    font-size: .86rem;
    font-weight: 850;
    padding: 12px 13px;
    border-radius: 15px;
    transition: .2s;
}

.nav a:hover {
    background: var(--surface-3);
    color: var(--text);
}

.nav-admin {
    background: linear-gradient(135deg, rgba(255,107,0,.24), rgba(255,191,61,.16));
    border: 1px solid rgba(255,191,61,.22);
}

.nav-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.nav-social a,
.footer-social a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 999px;
    border: 1px solid var(--line-soft);
    background: var(--surface-3);
    color: var(--text);
    text-decoration: none;
    transition: .2s;
}

.nav-social a:hover,
.footer-social a:hover {
    transform: translateY(-2px);
    color: var(--amber);
    border-color: rgba(255,191,61,.28);
}

/* =========================================================
   5. BOTONES / CARDS BASE
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 12px 17px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    color: #111;
    text-decoration: none;
    font-weight: 950;
    box-shadow: 0 14px 34px rgba(255,107,0,.22);
}

.btn.ghost,
.btn.secondary {
    background: var(--surface-3);
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: none;
}

.card,
.news-card,
.match-card,
.team-card,
.ad-slot,
.stat-card,
.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 0% 0%, rgba(255,107,0,.10), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.035));
    box-shadow: var(--shadow-soft);
}

.notice {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    margin-bottom: 18px;
    border: 1px solid rgba(255,191,61,.28);
    border-radius: 18px;
    background: rgba(255,191,61,.1);
    color: var(--text);
}

.notice small { color: var(--muted); }

/* =========================================================
   PUBLICIDAD RESPONSIVE
   ========================================================= */

.ad-zone {
    display: grid;
    gap: 14px;
    width: 100%;
    margin: 22px 0;
}

.ad-banner {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.ad-banner__media {
    display: block;
    overflow: hidden;
    background: var(--surface-2);
}

.ad-zone--wide .ad-banner__media {
    aspect-ratio: 728 / 100;
}

.ad-zone--square {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ad-zone--square .ad-banner__media {
    aspect-ratio: 1;
}

.ad-banner__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.ad-banner:hover .ad-banner__media img {
    transform: scale(1.015);
}

.ad-banner__title {
    margin: 0;
    padding: 10px 14px 12px;
    color: var(--text);
    font-size: .82rem;
    font-weight: 850;
    line-height: 1.35;
}

.rail > .ad-zone {
    margin: 0;
}

.rail .ad-zone--square {
    grid-template-columns: 1fr;
}

@media (max-width: 560px) {
    .ad-zone--square {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   6. BREAKING / TICKER
   ========================================================= */

.breaking {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface-3);
    overflow: hidden;
}

.breaking-label {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border-radius: 999px;
    color: #111;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    font-size: .74rem;
    font-weight: 950;
    text-transform: uppercase;
}

.pulse {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #111;
}

.ticker {
    overflow: hidden;
    white-space: nowrap;
    color: var(--soft);
    font-weight: 700;
}

.ticker span {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 22s linear infinite;
}

@keyframes ticker { to { transform: translateX(-100%); } }

/* =========================================================
   7. HOME HERO
   ========================================================= */

.hero-pro {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 18px;
}

.hero-stage {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 300px;
    padding: 24px;
    gap: 16px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at 88% 14%, rgba(255,107,0,.25), transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
    box-shadow: var(--shadow);
}

.hero-media-image {
    width: 100%;
    border-radius: calc(var(--radius-xl) - 8px);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: rgba(0, 0, 0, .16);
}

.hero-media-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: none;
}

.eyebrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 14px;
}

.eyebrow span {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255,107,0,.16);
    border: 1px solid rgba(255,107,0,.28);
    color: var(--amber);
    font-size: .72rem;
    font-weight: 950;
    text-transform: uppercase;
}

.eyebrow em {
    color: var(--muted);
    font-style: normal;
    font-size: .86rem;
    font-weight: 800;
}

.hero-content h1 {
    margin: 0;
    max-width: 820px;
    color: var(--text);
    font-family: Oswald, Impact, sans-serif;
    font-size: clamp(2rem, 7vw, 3rem);
    line-height: .98;
    letter-spacing: -.03em;
    text-transform: uppercase;
}

.hero-content p {
    max-width: 720px;
    margin: 16px 0 0;
    color: var(--soft);
    font-size: .98rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-aside {
    display: grid;
    gap: 14px;
}

.panel { overflow: hidden; }

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 0;
}

.panel-head span {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.panel-head h2 {
    margin: 4px 0 0;
    color: var(--text);
    font-family: Oswald, Impact, sans-serif;
    font-size: 1.7rem;
    text-transform: uppercase;
}

.fixture-list {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.fixture-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid var(--line-soft);
    background: rgba(0,0,0,.14);
}

html[data-theme="light"] .fixture-item { background: rgba(15,23,42,.035); }

.fixture-date {
    display: grid;
    place-items: center;
    padding: 9px 0;
    border-radius: 15px;
    background: linear-gradient(180deg, rgba(255,107,0,.24), rgba(255,191,61,.11));
    border: 1px solid rgba(255,191,61,.18);
}

.fixture-date strong {
    font-family: Oswald, Impact, sans-serif;
    font-size: 1.55rem;
    line-height: 1;
}

.fixture-date span {
    color: var(--amber);
    font-size: .68rem;
    font-weight: 900;
}

.fixture-item h3 {
    margin: 0;
    color: var(--text);
    font-size: .94rem;
    line-height: 1.2;
}

.fixture-item h3 span { color: var(--red); }

.fixture-item p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: .8rem;
}

.quick-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px;
}

.stat {
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--line-soft);
    background: var(--surface-3);
}

.stat strong {
    display: block;
    color: var(--text);
    font-family: Oswald, Impact, sans-serif;
    font-size: 1.8rem;
}

.stat span {
    color: var(--muted);
    font-size: .74rem;
    font-weight: 850;
    text-transform: uppercase;
}

/* =========================================================
   8. SCOREBOARD
   ========================================================= */

.scoreboard {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(245px, 82%);
    gap: 12px;
    margin: 22px 0;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}

.score-card {
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    min-height: 130px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
    box-shadow: var(--shadow-soft);
}

.score-meta,
.team-score {
    position: relative;
    z-index: 2;
}

.score-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.status-live {
    color: #fff;
    background: rgba(34,197,94,.18);
    border: 1px solid rgba(34,197,94,.3);
    padding: 5px 8px;
    border-radius: 999px;
}

.team-score {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    margin: 6px 0;
}

.team-score strong { color: var(--text); font-weight: 950; }
.team-score b { font-family: Oswald, Impact, sans-serif; font-size: 1.45rem; }
.venue { position: relative; z-index: 2; color: var(--muted); font-size: .8rem; margin-top: 8px; }

/* =========================================================
   9. PUBLICIDAD
   ========================================================= */

.ad-premium {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: column;
    gap: 16px;
    margin: 22px 0;
    padding: 22px;
    border-radius: 26px;
    border: 1px solid rgba(255,191,61,.22);
    background: linear-gradient(110deg, rgba(255,107,0,.16), rgba(37,215,255,.08), rgba(255,255,255,.045));
    box-shadow: var(--shadow-soft);
}

.ad-premium span {
    display: block;
    color: var(--amber);
    font-size: .70rem;
    font-weight: 950;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ad-premium strong {
    display: block;
    margin-top: 4px;
    color: var(--text);
    font-family: Oswald, Impact, sans-serif;
    font-size: 1.7rem;
    line-height: 1;
    text-transform: uppercase;
}

.ad-premium p { margin: 6px 0 0; color: var(--muted); }

/* =========================================================
   10. HOME NEWS / MOSAIC / TWITCH / RANKING
   ========================================================= */

.layout-pro {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.news-mosaic {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.story {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
    box-shadow: var(--shadow-soft);
}

.story-media {
    position: absolute;
    inset: 0;
    opacity: .65;
    pointer-events: none;
}

.story-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(5,7,13,.95), transparent 58%);
    pointer-events: none;
}

.story-body {
    position: absolute;
    inset: auto 0 0;
    z-index: 3;
    padding: 20px;
}

.story-hit {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: block;
    text-indent: -9999px;
    overflow: hidden;
}

.tag {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255,107,0,.18);
    border: 1px solid rgba(255,107,0,.3);
    color: #ffd6bd;
    font-size: .7rem;
    font-weight: 950;
    text-transform: uppercase;
}

.story h3 {
    margin: 12px 0 8px;
    color: #fff;
    font-family: Oswald, Impact, sans-serif;
    font-size: 1.35rem;
    line-height: 1.05;
    text-transform: uppercase;
}

.story p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.45;
}

.story-link {
    display: inline-flex;
    margin-top: 12px;
    color: var(--amber);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    position: relative;
    z-index: 5;
}

.rail {
    display: grid;
    gap: 18px;
    align-content: start;
}

.live-panel { padding: 0; }

.live-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
}

.live-top strong {
    color: var(--text);
    font-family: Oswald, Impact, sans-serif;
    font-size: 1.45rem;
    text-transform: uppercase;
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: .72rem;
    font-weight: 950;
    text-transform: uppercase;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 0 7px rgba(34,197,94,.13);
}

.twitch-card { overflow: hidden; background: #000; border-bottom: 1px solid var(--line-soft); }
#twitch-embed { width: 100%; min-height: 260px; background: #000; }
#twitch-embed iframe { width: 100% !important; min-height: 260px; display: block; }
.twitch-link { margin: 15px; width: calc(100% - 30px); }

.ranking { padding: 18px; }

.rank-row {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
}

.rank-row:last-child { border-bottom: 0; }
.rank-row span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 10px; background: var(--surface-3); font-weight: 950; }
.rank-row strong { color: var(--text); font-size: .95rem; }
.rank-row em { color: var(--amber); font-style: normal; font-weight: 950; }

/* =========================================================
   11. CLUBES HOME
   ========================================================= */

.club-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    cursor: grab;
}

.club-track.is-dragging { cursor: grabbing; user-select: none; }

.club-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.035));
    box-shadow: var(--shadow-soft);
}

.club-logo {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    color: #111;
    font-family: Oswald, Impact, sans-serif;
    font-size: 1.45rem;
    font-weight: 950;
}

.club-card h3 { margin: 44px 0 6px; color: var(--text); font-family: Oswald, Impact, sans-serif; text-transform: uppercase; font-size: 1.35rem; }
.club-card p { margin: 0; color: var(--muted); font-weight: 800; }

/* =========================================================
   12. EVENTOS
   ========================================================= */

.event-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.event-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
    box-shadow: var(--shadow-soft);
}

.event-date {
    display: grid;
    place-items: center;
    padding: 12px;
    border-radius: 20px;
    background: rgba(37,215,255,.1);
    border: 1px solid rgba(37,215,255,.18);
}

.event-date strong { font-family: Oswald, Impact, sans-serif; font-size: 1.9rem; }
.event-date span { color: var(--cyan); font-size: .7rem; font-weight: 950; }
.event-card h3 { margin: 0 0 5px; color: var(--text); font-size: 1rem; }
.event-card p { margin: 0; color: var(--muted); }

/* =========================================================
   13. NOTICIAS LISTADO / ARTÍCULO
   ========================================================= */

.news-card {
    padding: 18px;
}

.news-card h3 {
    margin: 12px 0 8px;
    color: var(--text);
    font-family: Oswald, Impact, sans-serif;
    font-size: 1.45rem;
    line-height: 1.05;
    text-transform: uppercase;
}

.meta,
.news-card .meta {
    color: var(--muted);
    line-height: 1.5;
}

.article-view {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.article-view h1 {
    margin: 12px 0;
    color: var(--text);
    font-family: Oswald, Impact, sans-serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: .95;
    text-transform: uppercase;
}

.lead { color: var(--soft); font-size: 1.08rem; line-height: 1.6; }

.article-featured-image {
    display: block;
    width: 100%;
    max-height: min(70vh, 760px);
    object-fit: contain;
    margin: 16px 0 20px;
    border-radius: 16px;
    background: var(--surface-3);
}

.article-content {
    color: var(--soft);
    font-size: 1rem;
    line-height: 1.75;
}

.article-content p { margin: 0 0 16px; }

.article-content img,
.article-content .article-inline-image {
    display: block;
    width: auto;
    max-width: min(100%, 760px);
    height: auto;
    margin: 16px auto;
    border-radius: 12px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
}

.article-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 18px;
    background: var(--surface-3);
}

.article-table th {
    padding: 12px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    color: #111;
    font-size: .78rem;
    font-weight: 950;
    text-align: left;
    text-transform: uppercase;
}

.article-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--soft);
    font-weight: 700;
}

.article-table tbody tr:hover { background: rgba(255,255,255,.045); }
.standings-table td:first-child { color: var(--amber); font-weight: 950; }
.standings-table td:nth-child(2) { color: var(--text); font-weight: 950; }

/* =========================================================
   14. PARTIDOS PAGE
   ========================================================= */

.matches-page { margin-top: 12px; }
.matches-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }

.match-card-pro,
.compact-match-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 10px;
    min-height: auto;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at 0% 0%, rgba(255,107,0,.18), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.035));
    box-shadow: var(--shadow-soft);
}

.match-line { position: relative; z-index: 2; width: 100%; }

.match-date-line {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,191,61,.10);
    border: 1px solid rgba(255,191,61,.18);
    color: var(--amber);
    font-size: .74rem;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.match-main-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px;
    color: var(--text);
    font-size: .94rem;
    line-height: 1.35;
}

.match-main-line strong { color: var(--text); font-weight: 950; }
.match-main-line small { color: var(--muted); font-size: .82rem; font-weight: 800; }

.match-main-line span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(239,68,68,.13);
    border: 1px solid rgba(239,68,68,.24);
    color: var(--red);
    font-size: .66rem;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.match-extra-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.35;
}

.match-extra-line strong,
.match-extra-line em {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--surface-3);
    border: 1px solid var(--line-soft);
    font-style: normal;
    font-weight: 850;
}

.match-extra-line strong { color: var(--soft); }
.match-extra-line em { color: var(--muted); }

/* =========================================================
   15. EQUIPOS PAGE
   ========================================================= */

.teams-page { margin-top: 12px; }

.teams-visual-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.team-visual-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 14px;
    align-items: center;
    min-height: 126px;
    padding: 15px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at 0% 0%, rgba(255,107,0,.18), transparent 36%),
        linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
    box-shadow: var(--shadow-soft);
}

.team-visual-logo {
    position: relative;
    z-index: 2;
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 16px 36px rgba(255,107,0,.24);
}

.team-visual-logo img { width: 72%; height: 72%; object-fit: contain; }
.alaro-ball { font-size: 2rem; line-height: 1; }

.team-visual-body { position: relative; z-index: 2; min-width: 0; }

.team-short {
    display: inline-flex;
    margin-bottom: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--surface-3);
    border: 1px solid var(--line-soft);
    color: var(--amber);
    font-size: .68rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.team-visual-body h3 {
    margin: 0;
    color: var(--text);
    font-family: Oswald, Impact, sans-serif;
    font-size: 1.35rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
}

.team-city { margin: 8px 0 0; color: var(--soft); font-size: .85rem; font-weight: 850; }
.team-description { margin: 6px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.35; }

/* =========================================================
   16. FORMS / TABLES ADMIN COMPAT
   ========================================================= */

.form-control,
input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-3);
    color: var(--text);
    padding: 12px 14px;
}

label { display: block; margin: 12px 0 6px; color: var(--soft); font-weight: 800; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 13px; border-bottom: 1px solid var(--line); text-align: left; }
.table th { color: var(--amber); font-size: .78rem; text-transform: uppercase; }

/* =========================================================
   17. FOOTER / BOTTOM NAV
   ========================================================= */

.footer {
    width: min(var(--max), calc(100% - 30px));
    margin: 0 auto 30px;
    padding: 30px 18px calc(30px + var(--bottom-nav-height));
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
}

.footer-brand strong {
    display: block;
    color: var(--text);
    font-family: Oswald, Impact, sans-serif;
    font-size: 1.8rem;
    text-transform: uppercase;
}

.footer-brand span { display: block; margin-top: 6px; }
.footer-social { display: flex; justify-content: center; gap: 12px; margin: 18px 0; }
.footer small { display: block; margin-top: 5px; }
.footer-tech { display: none !important; }

.bottom-nav {
    position: fixed;
    z-index: 900;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--line-soft);
    border-radius: 24px;
    background: rgba(5,7,13,.92);
    backdrop-filter: blur(22px);
    box-shadow: 0 18px 60px rgba(0,0,0,.50);
}

html[data-theme="light"] .bottom-nav { background: rgba(255,255,255,.92); }

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 58px;
    color: var(--muted);
    text-decoration: none;
    font-size: .62rem;
    font-weight: 800;
    border-radius: 16px;
}

.bottom-nav a i { font-size: 1.15rem; line-height: 1; }
.bottom-nav a span { margin: 0; font-size: .62rem; line-height: 1; }

.bottom-nav a:hover,
.bottom-nav a.active {
    color: var(--text);
    background: linear-gradient(135deg, rgba(255,107,0,.22), rgba(255,191,61,.10));
    border: 1px solid rgba(255,191,61,.18);
}

.bottom-nav a.active i { color: var(--amber); }
.bottom-nav a:active { transform: scale(.96); }

/* =========================================================
   18. DESKTOP / TABLET
   ========================================================= */

@media (min-width: 760px) {
    .app-shell { margin-top: 24px; }
    .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .footer { padding-bottom: 30px; }
    .bottom-nav { display: none; }

    .club-track { grid-auto-columns: 190px; }
    .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quick-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1020px) {
    .menu-btn { display: none; }

    .nav {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        width: auto;
        padding: 0;
        gap: 6px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .nav a {
        padding: 10px 13px;
        border-radius: 999px;
        font-size: .86rem;
    }

    .nav-social {
        margin: 0 0 0 4px;
        padding: 0 0 0 8px;
        border-top: 0;
        border-left: 1px solid var(--line);
    }

    .nav-social a {
        width: 36px;
        height: 36px;
    }

    .hero-pro {
        grid-template-columns: minmax(0, 3fr) minmax(320px, 1.1fr);
        gap: 24px;
        align-items: stretch;
    }

    .hero-stage {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        padding: 28px;
        gap: 26px;
    }

    .hero-media-image {
        flex: 0 0 auto;
        max-width: 100%;
        aspect-ratio: 16 / 9;
    }

    .hero-content {
        width: 100%;
        padding: 0 8px 10px;
    }

    .hero-content h1 { font-size: clamp(2rem, 3vw, 3rem); }

    .scoreboard {
        grid-auto-columns: minmax(245px, 1fr);
    }

    .ad-premium {
        align-items: center;
        flex-direction: row;
        padding: 24px;
    }

    .layout-pro {
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 22px;
    }

    .news-mosaic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .story { min-height: 320px; }
    .story.big { grid-column: span 2; min-height: 360px; }
    .story.big h3 { font-size: 1.65rem; }

    #twitch-embed,
    #twitch-embed iframe { min-height: 378px; }

    .matches-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .match-card-pro,
    .compact-match-card {
        min-height: 150px;
        padding: 22px 24px;
        border-radius: 28px;
    }

    .match-main-line { font-size: 1.08rem; }
    .match-date-line { font-size: .78rem; padding: 7px 11px; }
    .match-extra-line { font-size: .84rem; gap: 8px; }

    .teams-visual-grid {
        grid-template-columns: repeat(3, minmax(280px, 1fr));
        gap: 24px;
        align-items: stretch;
    }

    .team-visual-card {
        grid-template-columns: 96px 1fr;
        gap: 20px;
        min-height: 170px;
        padding: 24px;
        border-radius: 30px;
    }

    .team-visual-logo {
        width: 88px;
        height: 88px;
        border-radius: 30px;
    }

    .alaro-ball { font-size: 2.45rem; }
    .team-visual-body h3 { font-size: 1.65rem; }
}

@media (min-width: 1180px) {
    .event-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Boton Pildora */
/* =========================================================
   STANDARD SITE BUTTONS v1.4.1
   ========================================================= */

.section-head a,
.site-btn,
.btn-standard {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 118px;
    height: 42px;
    padding: 0 16px;

    border-radius: 14px;
    border: 1px solid rgba(255,191,61,.28);

    background: linear-gradient(
        135deg,
        rgba(255,107,0,.22),
        rgba(255,191,61,.12)
    );

    color: #fff;
    text-decoration: none;

    font-size: clamp(.72rem, .8vw, .84rem);
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;

    transition: .22s ease;
}

.section-head a:hover,
.site-btn:hover,
.btn-standard:hover {
    transform: translateY(-2px);
    border-color: rgba(255,191,61,.45);
    background: linear-gradient(
        135deg,
        rgba(255,107,0,.34),
        rgba(255,191,61,.18)
    );
}

@media(max-width:760px) {
    .section-head a,
    .site-btn,
    .btn-standard {
        min-width: auto;
        height: 38px;
        padding: 0 14px;
        font-size: .72rem;
    }
}


/* =========================================================
   TRANSMISIONES / TWITCH PAGE v1.4.2
   ========================================================= */

.twitch-page .twitch-video-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
    align-items: stretch !important;
}

@media (min-width: 1280px) {
    .twitch-page .twitch-video-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

.twitch-page .twitch-video-card {
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at 0% 0%, rgba(145,70,255,.22), transparent 36%),
        linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
    box-shadow: var(--shadow);
}

.twitch-page .twitch-embed-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.twitch-page .twitch-embed-box iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    display: block;
}

.twitch-page .twitch-video-body {
    padding: 18px;
}

.twitch-page .twitch-video-body h2 {
    margin: 12px 0 8px;
    font-family: Oswald, Impact, sans-serif;
    font-size: 1.25rem;
    line-height: 1.05;
    text-transform: uppercase;
}

.twitch-page .twitch-video-body p {
    margin: 0;
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.45;
}

.twitch-more {
    width: min(var(--max), calc(100% - 30px));
    margin: 34px auto 0;
    display: flex;
    justify-content: center;
}

.twitch-channel-btn {
    min-width: 320px;
    min-height: 56px;
    padding: 0 32px;
    border-radius: 18px;
    font-size: .95rem;
    font-weight: 950;
}

@media (max-width: 760px) {
    .twitch-page .twitch-video-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .twitch-channel-btn {
        width: 100%;
        min-width: 0;
    }
}


/* =========================================================
   TYPOGRAPHY FINAL TUNING v1.3.0
   ========================================================= */

.section-head h1,
.section-head h2 {
    font-size: clamp(1.8rem, 2.4vw, 2.45rem);
    line-height: 1.05;
}

.hero-content h1 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1;
}

@media (max-width: 760px) {
    .hero-stage {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .hero-media-image {
        position: static !important;
        inset: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
        aspect-ratio: 16 / 9 !important;
    }

    .hero-media-image img {
        width: 100% !important;
        height: 100% !important;
        opacity: 1 !important;
    }

    .hero-content {
        max-width: none !important;
    }
}

.story h3,
.story.big h3,
.news-card h3,
.twitch-video-body h2,
.team-visual-body h3,
.event-card h3 {
    font-size: 1.05rem;
    line-height: 1.2;
    text-transform: none;
}

.team-visual-body h3 {
    font-size: 1.25rem;
}

.match-main-line {
    font-size: .95rem;
}

/* =========================================================
   LIGHT MODE - TRANSMISIONES FIX v1.3.8
   ========================================================= */

html[data-theme="light"] .twitch-video-card {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, .12) !important;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .10) !important;
}

html[data-theme="light"] .twitch-video-body .tag {
    background: rgba(145, 70, 255, .12) !important;
    border: 1px solid rgba(145, 70, 255, .28) !important;
    color: #5b21b6 !important;
}

html[data-theme="light"] .twitch-video-body h2 {
    color: #0f172a !important;
}

html[data-theme="light"] .twitch-video-body p {
    color: #475569 !important;
}

html[data-theme="light"] .twitch-channel-btn {
    background: linear-gradient(135deg, #ff6b00, #ffbf3d) !important;
    border-color: rgba(255, 107, 0, .35) !important;
    color: #111827 !important;
}


/* =========================================================
   FOOTER CREDIT BRANDING v1.3.1
   ========================================================= */

.footer-credit {
    margin-top: 10px;
}

.footer-credit small {
    color: var(--muted);
    font-weight: 700;
}

.footer-credit a {
    color: var(--amber);
    text-decoration: none;
    font-weight: 950;
}

.footer-credit a:hover {
    color: var(--orange);
}

.footer-version {
    margin-top: 6px;
}

html[data-theme="light"] .footer-credit small {
    color: #64748b;
}

html[data-theme="light"] .footer-credit a {
    color: #b94700;
}

/* =========================================================
   LIGHT MODE - EVENT DATES FIX v1.3.9
   ========================================================= */

html[data-theme="light"] .event-card {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, .12) !important;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .08) !important;
}

html[data-theme="light"] .event-date {
    background: rgba(255, 107, 0, .16) !important;
    border: 1px solid rgba(255, 107, 0, .32) !important;
}

html[data-theme="light"] .event-date strong {
    color: #9a3a00 !important;
}

html[data-theme="light"] .event-date span {
    color: #334155 !important;
}

html[data-theme="light"] .fixture-date strong,
html[data-theme="light"] .fixture-date span,
html[data-theme="light"] .match-date-line {
    color: #7c2d12 !important;
}

html[data-theme="light"] .section-head a,
html[data-theme="light"] .site-btn,
html[data-theme="light"] .btn-standard,
html[data-theme="light"] .btn:not(.ghost):not(.secondary) {
    color: #111827 !important;
}

html[data-theme="light"] .event-card h3 {
    color: #0f172a !important;
}

html[data-theme="light"] .event-card p {
    color: #475569 !important;
}

html[data-theme="light"] .tag,
html[data-theme="light"] .eyebrow span {
    background: rgba(255, 107, 0, .16) !important;
    border-color: rgba(255, 107, 0, .34) !important;
    color: #9a3a00 !important;
}

/* =========================================================
   PRESS CARDS v1.5.4
   ========================================================= */

.press-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.press-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(180deg, var(--surface), var(--surface-2));
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 12px;
}

.press-card__head {
    display: grid;
    gap: 8px;
}

.press-card__head .meta {
    margin: 0;
    font-size: .82rem;
    color: var(--muted);
}

.press-card h3 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.1;
}

.press-card__excerpt {
    margin: 0;
    color: var(--soft);
    line-height: 1.7;
}

.press-card__audio audio {
    width: 100%;
}

/* =========================================================
   LIGHT MODE - RANKING FIX v1.3.10
   ========================================================= */

html[data-theme="light"] .ranking .rank-row span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 34px;
    width: 34px;
    height: 34px;

    border-radius: 50%;

    background: rgba(255, 107, 0, .16) !important;
    border: 1px solid rgba(255, 107, 0, .30) !important;

    color: #9a3a00 !important;
    font-weight: 900 !important;
}

html[data-theme="light"] .ranking .rank-row strong {
    color: #0f172a !important;
}

html[data-theme="light"] .ranking .rank-row em {
    color: #9a3a00 !important;
    font-weight: 800;
}
