/* =====================================================================
   COPA EDAM — Theme
   Paleta: negro profundo, azul oscuro, dorado metálico, blanco, verde césped.
   Glassmorphism + bordes luminosos + sombras suaves.
   ===================================================================== */

:root {
    --edam-black: #05070b;
    --edam-navy: #0d1b2a;
    --edam-navy-light: #16273f;
    --edam-navy-lighter: #1f3350;
    --edam-gold: #d4af37;
    --edam-gold-light: #f0c14b;
    --edam-gold-pale: #f5d47a;
    --edam-white: #ffffff;
    --edam-grass: #2e7d32;
    --edam-grass-light: #4caf50;
    --edam-text-muted: #9aa7bb;

    --glass-bg: rgba(15, 26, 42, 0.55);
    --glass-bg-strong: rgba(10, 16, 28, 0.78);
    --glass-border: rgba(212, 175, 55, 0.28);

    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 10px;

    --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.38);
    --shadow-gold-glow: 0 0 0 1px rgba(212, 175, 55, 0.35), 0 10px 26px rgba(212, 175, 55, 0.12);

    --font-display: 'Poppins', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { max-width: 100%; overflow-x: hidden; }

body {
    background: radial-gradient(ellipse at top, #0b1524 0%, var(--edam-black) 60%);
    color: var(--edam-white);
    font-family: var(--font-body);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, .font-display {
    font-family: var(--font-display);
    letter-spacing: 0.02em;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; }

/* Foco de teclado con la identidad de marca en vez del outline azul por defecto */
:focus-visible {
    outline: 2px solid var(--edam-gold);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection { background: rgba(212, 175, 55, 0.35); color: #fff; }

/* Scrollbar acorde al tema oscuro (Chromium/Edge/Safari) */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--edam-black); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--edam-gold-light), #8a6a1a);
    border-radius: 10px;
    border: 2px solid var(--edam-black);
}
::-webkit-scrollbar-thumb:hover { background: var(--edam-gold-pale); }
/* Firefox */
html { scrollbar-color: var(--edam-gold) var(--edam-black); scrollbar-width: thin; }

.container-edam {
    max-width: 1600px;
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 48px);
}

/* Skip link (accesibilidad) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--edam-gold);
    color: var(--edam-black);
    padding: 10px 18px;
    z-index: 2000;
    border-radius: 0 0 8px 0;
    font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------------
   Utilidades: glass / bordes luminosos
   --------------------------------------------------------------------- */

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.text-gold { color: var(--edam-gold-light); }
.text-muted-edam { color: var(--edam-text-muted); }

.badge-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--edam-grass-light);
    text-transform: uppercase;
}
.badge-live::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--edam-grass-light);
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.25);
    animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.25); }
    50% { box-shadow: 0 0 0 8px rgba(76, 175, 80, 0.08); }
}

/* Botones */
.btn-gold {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--edam-gold-pale), var(--edam-gold));
    color: var(--edam-black);
    font-weight: 700;
    border: none;
    border-radius: 999px;
    padding: 12px 28px;
    white-space: nowrap;
    box-shadow: var(--shadow-gold-glow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-gold:hover, .btn-gold:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(212, 175, 55, 0.3);
    color: var(--edam-black);
}
/* Barrido de brillo al pasar el cursor, efecto de botón premium. */
.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}
.btn-gold:hover::before { left: 125%; }

.btn-outline-edam {
    background: transparent;
    color: var(--edam-white);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 12px 28px;
    font-weight: 600;
    white-space: nowrap;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.btn-outline-edam:hover, .btn-outline-edam:focus-visible {
    border-color: var(--edam-gold);
    background: rgba(212, 175, 55, 0.08);
    color: var(--edam-white);
}

/* ---------------------------------------------------------------------
   HEADER
   --------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    padding-block: 14px;
}
.site-header.is-scrolled {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom-color: var(--glass-border);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    padding-block: 8px;
}

.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-lockup .logo-svg { flex-shrink: 0; }
.brand-name { font-family: var(--font-display); font-weight: 800; line-height: 1; font-size: 1.15rem; }
.brand-name small { display: block; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.18em; color: var(--edam-gold-light); }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
    padding: 8px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    position: relative;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--edam-white); background: rgba(255, 255, 255, 0.06); }
.main-nav a.active { color: var(--edam-gold-light); }
.main-nav a.active::after {
    content: '';
    position: absolute;
    left: 14px; right: 14px; bottom: 2px;
    height: 2px;
    background: var(--edam-gold);
    border-radius: 2px;
}

.header-search {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
}
/* El input suprime su outline nativo porque el foco se indica en el
   contenedor (más visible sobre la píldora que un anillo recortado). */
.header-search:focus-within {
    border-color: var(--edam-gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.5);
}
.header-search input {
    background: transparent;
    border: none;
    color: var(--edam-white);
    outline: none;
    font-size: 0.85rem;
    width: 100%;
}
.header-search input::placeholder { color: var(--edam-text-muted); }

/* Variante compacta de .btn-gold solo para el header: el header ya compite
   por espacio horizontal con 9 enlaces de navegación + buscador, así que
   necesita menos padding que un botón de llamada a la acción normal. */
.btn-header-admin { padding: 10px 18px; font-size: 0.85rem; }

.btn-icon-header {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--edam-white); display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.95rem; transition: background 0.2s ease, border-color 0.2s ease;
}
.btn-icon-header:hover { background: rgba(212, 175, 55, 0.15); border-color: var(--edam-gold); }

.btn-drawer-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    width: 44px; height: 44px;
    color: var(--edam-white);
    font-size: 1.1rem;
}

/* Drawer móvil */
.mobile-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 84vw);
    height: 100vh;
    background: var(--edam-navy);
    border-left: 1px solid var(--glass-border);
    transform: translateX(100%);
    transition: transform 0.32s ease;
    z-index: 1100;
    padding: 24px;
    overflow-y: auto;
}
.mobile-drawer.is-open { transform: translateX(0); }
.drawer-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,0.55);
    opacity: 0; pointer-events: none; transition: opacity 0.32s ease; z-index: 1090;
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.mobile-drawer nav a {
    display: block;
    padding: 14px 6px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 1.05rem;
}
.drawer-close { background: none; border: none; color: var(--edam-white); font-size: 1.5rem; }

/* ---------------------------------------------------------------------
   HERO
   --------------------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(48px, 8vw, 96px) clamp(56px, 9vw, 110px);
    isolation: isolate;
}
.hero::before {
    content: '';
    position: absolute;
    inset: -10%;
    z-index: -2;
    background:
        radial-gradient(38% 45% at 15% 12%, rgba(212, 175, 55, 0.16), transparent 70%),
        radial-gradient(45% 55% at 85% 8%, rgba(240, 193, 75, 0.14), transparent 70%),
        radial-gradient(60% 70% at 50% 100%, rgba(46, 125, 50, 0.16), transparent 70%),
        /* Se atenúa de nuevo hacia el negro del body en el 100% (en vez de
           quedar en el navy más claro) para que el hero funda sin costura
           visible con el resto de la página. */
        linear-gradient(180deg, #060a12 0%, #0b1524 42%, #101d30 68%, var(--edam-black) 100%);
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 46px),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0 1px, transparent 1px 90px);
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
    opacity: 0.6;
}

.stadium-lights {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
}
.stadium-lights span {
    position: absolute;
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(255,255,255,0.55), transparent 70%);
    border-radius: 50%;
    filter: blur(6px);
    opacity: 0.35;
    animation: flicker 5s ease-in-out infinite;
}
.stadium-lights span:nth-child(1) { top: -60px; left: 6%; animation-delay: 0s; }
.stadium-lights span:nth-child(2) { top: -80px; left: 46%; animation-delay: 1.2s; }
.stadium-lights span:nth-child(3) { top: -60px; right: 4%; animation-delay: 2.4s; }
@keyframes flicker { 0%, 100% { opacity: 0.28; } 50% { opacity: 0.42; } }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
}

.hero-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 18px 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    margin-bottom: 20px;
}
.hero-status-pill-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    color: var(--edam-gold-light);
    text-transform: uppercase;
}
.hero-eyebrow::before {
    content: '';
    width: 30px;
    height: 2px;
    flex-shrink: 0;
    background: linear-gradient(90deg, var(--edam-gold), transparent);
}
.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.02;
    font-size: clamp(2.6rem, 6vw, 5rem);
    margin-block: 6px 0;
    text-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.hero-title .accent {
    background: linear-gradient(135deg, var(--edam-gold-pale), var(--edam-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-slogan {
    font-weight: 600;
    letter-spacing: 0.28em;
    color: rgba(255,255,255,0.75);
    font-size: clamp(0.85rem, 1.4vw, 1.1rem);
    margin-top: 10px;
}
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-block: 26px;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}
.hero-meta span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-trophy-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
/* Halo dorado detrás del trofeo, como si un reflector lo iluminara. */
.hero-trophy-wrap::before {
    content: '';
    position: absolute;
    width: min(70%, 320px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.28), transparent 72%);
    filter: blur(6px);
    z-index: -1;
}
/* Sombra elíptica de base, para anclar visualmente el trofeo al suelo. */
.hero-trophy-wrap::after {
    content: '';
    position: absolute;
    bottom: 6%;
    width: 46%;
    aspect-ratio: 4 / 1;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.55), transparent 75%);
    z-index: -1;
}
.hero-trophy-wrap .trofeo-svg {
    filter: drop-shadow(0 30px 40px rgba(212, 175, 55, 0.25));
    animation: float-trophy 5s ease-in-out infinite;
}
@keyframes float-trophy {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

.hero-scroll-cue {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}
.hero-scroll-cue span {
    width: 4px;
    height: 8px;
    border-radius: 2px;
    background: var(--edam-gold-light);
    animation: scroll-cue-bounce 1.8s ease-in-out infinite;
}
@keyframes scroll-cue-bounce {
    0% { opacity: 1; transform: translateY(0); }
    70% { opacity: 0; transform: translateY(14px); }
    100% { opacity: 0; transform: translateY(0); }
}

/* ---------------------------------------------------------------------
   LAYOUT PRINCIPAL: sidebar izq / contenido / sidebar der
   --------------------------------------------------------------------- */

.main-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) 320px;
    gap: 24px;
    padding-block: 28px;
}

.sidebar-panel { padding: 26px; text-align: center; }
.sidebar-panel .logo-svg { margin-inline: auto; }
.sidebar-panel .brand-name { font-size: 1.4rem; margin-top: 10px; }
.sidebar-status {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 18px;
}
.sidebar-tournament-name { font-size: 1.5rem; font-weight: 800; margin-top: 6px; }
.sidebar-tournament-category { color: var(--edam-gold-light); font-weight: 700; letter-spacing: 0.05em; margin-bottom: 14px; }
.sidebar-info-row {
    display: flex; align-items: center; gap: 10px;
    text-align: left;
    padding: 10px 4px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
}
.sidebar-info-row:first-of-type { border-top: none; }
.sidebar-info-row .icon-chip { color: var(--edam-gold-light); width: 18px; text-align: center; }

.mascota-svg { margin-block: 8px 4px; }

.social-row { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.social-row a {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.social-row a:hover { background: rgba(212,175,55,0.15); border-color: var(--edam-gold); transform: translateY(-2px); }

/* Próximos partidos (sidebar derecha) */
.panel-title {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 22px 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.panel-title a { font-size: 0.75rem; color: var(--edam-gold-light); font-weight: 600; text-transform: none; letter-spacing: normal; }

.match-card {
    margin: 0 16px 14px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}
.match-card:last-of-type { margin-bottom: 20px; }
.match-meta {
    font-size: 0.72rem;
    color: var(--edam-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}
.match-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; text-align: center; }
.match-team { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; min-width: 0; }
.match-team span { max-width: 100%; overflow-wrap: break-word; }
.match-vs {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(212,175,55,0.12); border: 1px solid var(--glass-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 800; color: var(--edam-gold-light);
}
.match-footer {
    display: flex; justify-content: space-between;
    margin-top: 12px; padding-top: 10px;
    border-top: 1px dashed rgba(255,255,255,0.1);
    font-size: 0.75rem; color: var(--edam-text-muted);
}

/* ---------------------------------------------------------------------
   STAT CARDS
   --------------------------------------------------------------------- */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 26px;
}
.stat-card {
    padding: 20px 14px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-gold-glow); }
.stat-icon {
    width: 46px; height: 46px;
    margin-inline: auto 8px auto;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--edam-gold-pale), var(--edam-gold));
    color: var(--edam-black);
    font-size: 1.15rem;
}
.stat-value { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; margin-top: 8px; }
.stat-label { font-size: 0.72rem; color: var(--edam-text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }

/* ---------------------------------------------------------------------
   CONTENIDO: tabla, noticias, goleadores
   --------------------------------------------------------------------- */

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 20px;
}

.card-block { padding: 0; overflow: hidden; }
.card-block-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.card-block-header h2 {
    font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; margin: 0;
}
.card-block-header a { font-size: 0.78rem; color: var(--edam-gold-light); font-weight: 600; }
.card-block-body { padding: 16px 20px 20px; }

.standings-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.standings-table th {
    text-align: center; font-size: 0.68rem; color: var(--edam-text-muted);
    text-transform: uppercase; letter-spacing: 0.03em; padding: 8px 6px; font-weight: 700;
}
.standings-table th:first-child, .standings-table td:first-child { text-align: left; }
.standings-table td { text-align: center; padding: 10px 6px; border-top: 1px solid rgba(255,255,255,0.06); }
.standings-table .team-cell { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.standings-table .pos-num { color: var(--edam-text-muted); width: 16px; display: inline-block; }
.standings-table td.pts { color: var(--edam-gold-light); font-weight: 800; }

.news-featured { display: block; border-radius: var(--radius-md); overflow: hidden; border: 1px solid rgba(255,255,255,0.08); margin-bottom: 14px; }
.news-featured-media { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--edam-navy-light), var(--edam-navy)); position: relative; display: flex; align-items: center; justify-content: center; }
.news-featured-media .badge-destacada {
    position: absolute; top: 12px; left: 12px;
    background: var(--edam-gold); color: var(--edam-black);
    font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em;
    padding: 4px 10px; border-radius: 999px; text-transform: uppercase;
}
.news-featured-body { padding: 14px 16px; }
.news-featured-body h3 { font-size: 1.05rem; font-weight: 700; margin: 4px 0 6px; }
.news-featured-body p { font-size: 0.85rem; color: var(--edam-text-muted); margin-bottom: 8px; }
.news-date { font-size: 0.72rem; color: var(--edam-gold-light); text-transform: uppercase; letter-spacing: 0.04em; }

.news-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.news-list-item { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); }
.news-list-media { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--edam-navy-light), var(--edam-navy)); }
.news-list-body { padding: 10px 12px; }
.news-list-body h4 { font-size: 0.82rem; font-weight: 700; margin: 0 0 4px; line-height: 1.25; }

.scorer-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.scorer-row:first-child { border-top: none; padding-top: 0; }
.scorer-rank {
    width: 26px; height: 26px; border-radius: 50%;
    background: rgba(212,175,55,0.14); color: var(--edam-gold-light);
    font-weight: 800; font-size: 0.78rem;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.scorer-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, var(--edam-navy-light), var(--edam-navy));
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.8rem; color: var(--edam-gold-light);
    border: 1px solid var(--glass-border);
    flex-shrink: 0;
}
.scorer-name { font-weight: 700; font-size: 0.88rem; }
.scorer-team { font-size: 0.74rem; color: var(--edam-text-muted); }
.scorer-goals { margin-left: auto; text-align: right; font-weight: 800; color: var(--edam-gold-light); font-size: 0.95rem; }
.scorer-goals small { display: block; font-weight: 500; color: var(--edam-text-muted); font-size: 0.62rem; text-transform: uppercase; }

/* ---------------------------------------------------------------------
   Franja de features
   --------------------------------------------------------------------- */

.feature-strip {
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-block: 22px;
    margin-top: 20px;
}
.feature-strip .row-features {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    text-align: center;
}
.feature-item { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 0.76rem; font-weight: 600; color: rgba(255,255,255,0.82); }
.feature-item i { color: var(--edam-gold-light); font-size: 1.2rem; }

/* ---------------------------------------------------------------------
   FOOTER
   --------------------------------------------------------------------- */

.site-footer {
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.35));
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-block: 40px 20px;
    margin-top: 30px;
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 30px; }
.footer-col h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; color: var(--edam-gold-light); }
.footer-col a { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.72); margin-bottom: 8px; }
.footer-col a:hover { color: var(--edam-white); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 30px; padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.78rem; color: var(--edam-text-muted);
    flex-wrap: wrap; gap: 10px;
}
.footer-tagline { text-align: center; padding-top: 18px; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.15em; color: rgba(255,255,255,0.3); font-size: 0.8rem; text-transform: uppercase; }

/* Página "en construcción" para rutas del menú aún no implementadas */
.pending-page { min-height: 50vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding-block: 80px; }
.pending-page i { font-size: 2.4rem; color: var(--edam-gold-light); }

/* ---------------------------------------------------------------------
   Páginas internas del sitio público (Torneos, Resultados, Equipos, etc.)
   --------------------------------------------------------------------- */

.page-banner {
    position: relative;
    padding-block: 40px;
    background:
        radial-gradient(50% 120% at 15% 0%, rgba(212, 175, 55, 0.14), transparent 70%),
        linear-gradient(180deg, #0b1524 0%, #05070b 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 32px;
}
.page-banner .breadcrumb-edam { font-size: 0.78rem; color: var(--edam-text-muted); margin-bottom: 8px; }
.page-banner .breadcrumb-edam a { color: var(--edam-gold-light); }
.page-banner h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }
.page-banner p { color: var(--edam-text-muted); margin: 8px 0 0; max-width: 620px; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 22px; }
.filter-bar .form-label { color: var(--edam-text-muted); font-size: 0.8rem; font-weight: 600; margin-bottom: 6px; }
.filter-bar select {
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff; border-radius: 10px; padding: 9px 14px; font-size: 0.88rem; min-width: 200px;
}
.filter-bar select:focus { outline: none; border-color: var(--edam-gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15); }

.section-block { margin-bottom: 36px; }
.section-block-title {
    font-family: var(--font-display); font-weight: 700; font-size: 1rem;
    text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 16px;
    padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--edam-gold-light);
}

/* Grid de tarjetas: torneos, equipos, álbumes */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.entity-card {
    padding: 22px; text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.entity-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-gold-glow); border-color: rgba(212, 175, 55, 0.55); }
.entity-card .entity-media { margin-bottom: 14px; display: flex; justify-content: center; overflow: hidden; border-radius: var(--radius-md); }
.entity-card .entity-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-md); transition: transform 0.5s ease; }
.entity-card .entity-media img.trofeo-svg { width: auto; max-height: 120px; aspect-ratio: auto; object-fit: contain; border-radius: 0; padding-block: 8px; }
.entity-card:hover .entity-media img { transform: scale(1.08); }
.entity-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 6px; }
.entity-card .entity-meta { font-size: 0.78rem; color: var(--edam-text-muted); }

/* Fixture / resultados: agrupado por fecha o grupo */
.fixture-group { margin-bottom: 28px; }
.fixture-group-title { font-weight: 700; font-size: 0.92rem; color: var(--edam-gold-light); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.03em; }
.fixture-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.fixture-grid .match-card { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.fixture-grid .match-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-gold-glow); border-color: rgba(212, 175, 55, 0.55); }

/* Ficha de equipo / jugador en detalle */
.roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.roster-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; transition: transform 0.2s ease, border-color 0.2s ease; }
.roster-card:hover { transform: translateY(-2px); border-color: rgba(212, 175, 55, 0.45); }
.roster-card .roster-num { width: 32px; height: 32px; border-radius: 50%; background: rgba(212,175,55,0.14); color: var(--edam-gold-light); font-weight: 800; font-size: 0.82rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Galería: cuadrícula de fotos */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--glass-border); transition: transform 0.35s ease; }
.photo-grid img:hover { transform: scale(1.06); }

/* Documentos */
.doc-list-item {
    display: flex; align-items: center; gap: 14px; padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.doc-list-item:last-child { border-bottom: none; }
.doc-list-item i { font-size: 1.4rem; color: var(--edam-gold-light); }
.doc-list-item .doc-title { font-weight: 700; font-size: 0.92rem; }
.doc-list-item .doc-meta { font-size: 0.76rem; color: var(--edam-text-muted); }

/* Contacto */
.contact-info-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.contact-info-row:first-child { border-top: none; }
.contact-info-row i { width: 20px; text-align: center; color: var(--edam-gold-light); }

.btn-compact { padding: 8px 16px !important; font-size: 0.82rem; }

.empty-state { text-align: center; padding: 60px 24px; color: var(--edam-text-muted); font-size: 0.92rem; }
.empty-state i {
    width: 76px; height: 76px; margin: 0 auto 16px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.16), rgba(212, 175, 55, 0.02));
    border: 1px solid var(--glass-border);
    font-size: 1.7rem; color: var(--edam-gold-light);
}

/* ---------------------------------------------------------------------
   Animaciones de aparición al hacer scroll (progressive enhancement:
   solo se activan cuando JS agrega .js-reveal-ready al <html>, así el
   contenido siempre es visible sin JS o con prefers-reduced-motion).
   --------------------------------------------------------------------- */

.js-reveal-ready .card-grid > *,
.js-reveal-ready .fixture-grid > *,
.js-reveal-ready .roster-grid > * {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.js-reveal-ready .card-grid > *.is-visible,
.js-reveal-ready .fixture-grid > *.is-visible,
.js-reveal-ready .roster-grid > *.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------------------------------------------
   Botón flotante "volver arriba"
   --------------------------------------------------------------------- */

.btn-back-to-top {
    position: fixed; bottom: 24px; right: 24px; z-index: 500;
    width: 46px; height: 46px; border-radius: 50%; border: none;
    background: linear-gradient(135deg, var(--edam-gold-pale), var(--edam-gold));
    color: var(--edam-black); font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-gold-glow);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.btn-back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.btn-back-to-top:hover { transform: translateY(-3px); }

/* Estado de envío de formularios: evita doble-clic y da feedback visual */
button[type="submit"].is-loading { opacity: 0.7; cursor: wait; pointer-events: none; }
