/* =================================================================== */
/*             HOJA DE ESTILOS DEFINITIVA Y UNIFICADA                  */
/* =================================================================== */
/* Autor: Futsal Pinto (Versión Fusionada y Optimizada)                */
/* Descripción: Este archivo combina todos los estilos del sitio en   */
/* una única fuente, eliminando redundancias y corrigiendo errores.    */
/* =================================================================== */

/* ======== 1. CONFIGURACIÓN GLOBAL Y VARIABLES ======== */
:root {
    /* Paleta de Colores Principal */
    --primary-color: #0d0d0d;
    --secondary-color: #1c1c1c;
    --accent-color: #f8fc03;
    --brand-blue: #0056b3;
    
    /* Colores de Texto */
    --text-color: #f4f4f4;
    --text-muted: #a0a0a0;
    --white-color: #ffffff;
    --dark-text: #333;

    /* Colores para Tarjetas Modernas */
    --card-bg: #1e1e2f;
    --card-border-color: #3a3a5a;
    --card-text-light: #c0c0e0;

    /* Colores de Estado y Admin */
    --color-success: #4CAF50;
    --color-danger: #e53935;
    --admin-bg: #f4f7f6;
    
    /* Bordes y Fondos Claros */
    --border-color-light: #dddddd;
    --border-color-dark: rgba(255, 255, 255, 0.1);
    
    /* Fuentes y Medidas */
    --font-family: 'Poppins', sans-serif;
    --nav-height: 70px;
}

/* ======== 2. ESTILOS BASE Y TIPOGRAFÍA ======== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-family);
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main { flex-grow: 1; padding-top: var(--nav-height); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--white-color); }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; margin-bottom: 1rem; }
h1 { font-size: 2.8rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; color: var(--accent-color); }
h3 { font-size: 1.8rem; }

/* ======== 3. LAYOUT: HEADER Y NAVEGACIÓN ======== */
header { width: 100%; position: fixed; top: 0; left: 0; z-index: 100; background-color: rgba(13, 13, 13, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color-dark); }
header nav.container { height: var(--nav-height); display: flex; align-items: center; gap: 2rem; }
.logo img { height: 50px; width: auto; display: block;border-radius:25px; }

.nav-links { list-style: none; display: flex; align-items: center; gap: 2rem; margin: 0 0 0 auto; padding: 0; }
.nav-links li a { color: var(--white-color); font-weight: 600; padding: 5px 0; position: relative; }
.nav-links li a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--accent-color); transition: width 0.3s ease; }
.nav-links li a:hover, .nav-links li a.active { color: var(--accent-color); }
.nav-links li a:hover::after, .nav-links li a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; }
.nav-social-desktop { display: flex; gap: 1rem; }
.nav-social-desktop a { color: var(--white-color); font-size: 1.5rem; transition: all 0.3s ease; }
.nav-social-desktop a:hover { color: var(--accent-color); transform: scale(1.1); }


/* ============================================= */
/*          CSS PARA EL MENÚ HAMBURGUESA           */
/* ============================================= */

/* Por defecto, en escritorio, la hamburguesa está oculta */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--white-color, #fff); /* Añadido color por si no existe la variable */
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1001; /* Debe estar por encima del menú */
    padding: 0; /* Para evitar espacios extra */
}

/* --- Responsive para Móviles (punto de ruptura 992px) --- */
@media (max-width: 992px) {
    
    /* 1. Ocultamos los enlaces del header de escritorio */
    .header-actions {
        display: none;
    }
    
    /* 2. Mostramos el botón de la hamburguesa */
    .hamburger {
        display: block;
        margin-left: auto; /* Lo empuja a la derecha */
    }

    /* 3. Estilos del menú de navegación móvil (el <ul> con clase .nav-links) */
    .nav-links {
        /* Posicionamiento y dimensiones */
        position: fixed;
        top: 0;
        right: -100%; /* Inicia fuera de la pantalla a la derecha */
        width: 80%; /* Ocupa el 80% del ancho */
        max-width: 320px; /* Pero nunca más de 320px */
        height: 100vh; /* Ocupa toda la altura */
        
        /* Estilos visuales */
        background-color: #111; /* Un fondo oscuro */
        display: flex; /* Usamos flex para centrar contenido */
        flex-direction: column;
        justify-content: center; /* Centrado vertical */
        align-items: center; /* Centrado horizontal */
        padding-top: 5rem;
        gap: 2rem;
        
        /* Transición suave para la aparición */
        transition: right 0.4s ease-in-out;
        z-index: 1000; /* Por debajo del botón hamburguesa pero por encima del resto */
        overflow-y: auto; /* Por si hay muchos enlaces */
    }
    
    /* 4. ¡LA REGLA MÁGICA! Cuando .nav-links tiene la clase .active, se muestra */
    .nav-links.active {
        right: 0; /* Lo trae a la vista desde la derecha */
    }
    
    /* 5. (Opcional) Animación del icono de hamburguesa a una 'X' */
    .hamburger i {
        transition: transform 0.3s ease;
    }
    .hamburger.active i {
        transform: rotate(90deg); /* O puedes cambiar la clase del icono a fa-times */
    }
}

/* ======== 4. LAYOUT: FOOTER ======== */
footer { background-color: var(--secondary-color); color: var(--text-muted); padding: 60px 20px 20px; margin-top: auto; border-top: 1px solid var(--border-color-dark); text-align: center; }
.footer-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; }
.footer-column { flex: 1 1 250px; max-width: 350px; }
.footer-column h3 { color: var(--white-color); font-size: 1.2rem; position: relative; padding-bottom: 10px; margin-bottom: 15px; }
.footer-column h3::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 50px; height: 2px; background-color: var(--accent-color); }
.footer-column ul { list-style: none; padding: 0; }
.footer-column ul li { margin-bottom: 10px; }
.sponsor-list { list-style: none; display: flex; flex-wrap: wrap; gap: 15px; align-items: center; justify-content: center; padding: 0; }
.sponsor-list li { width: 120px; height: 60px; }
.sponsor-list li a { display: flex; align-items: center; justify-content: center; background-color: var(--white-color); border-radius: 8px; padding: 5px; width: 100%; height: 100%; transition: all 0.3s ease; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.sponsor-list li a:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(0,0,0,0.2); }
.sponsor-list img { max-width: 100%; max-height: 100%; object-fit: contain; }
.footer-bottom { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 20px; padding-top: 30px; border-top: 1px solid #444; margin-top: 40px; font-size: 0.9em; }

/* ======== 5. COMPONENTES REUTILIZABLES ======== */
.cta-buttons { display: flex; justify-content: center; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.cta-button { display: inline-block; background-color: var(--accent-color); color: #111; border: 2px solid var(--accent-color); border-radius: 40px; padding: 12px 30px; font-size: 1rem; font-weight: 700; text-transform: uppercase; text-decoration: none; text-align: center; cursor: pointer; transition: all 0.3s ease-in-out; }
.cta-button:hover { background-color: transparent; color: var(--accent-color); transform: translateY(-3px); }
.cta-button.secondary { background-color: transparent; color: var(--accent-color); }
.cta-button.secondary:hover { background-color: var(--accent-color); color: #111; }
.cta-button.logout-btn { background-color: var(--color-danger); color: var(--white-color) !important; border-color: var(--color-danger); }
.cta-button.logout-btn:hover { background-color: #c9302c; border-color: #c9302c; }

.swiper { width: 100%; padding-bottom: 50px; overflow: hidden; }
.swiper-slide { height: auto; display: flex; align-items: stretch; }
.swiper-slide .card-partido-pro, .swiper-slide .news-card-pro { width: 100%; height: 100%; }
.swiper-button-prev, .swiper-button-next { display:none; }
.swiper-pagination-bullet { background-color: var(--text-muted); opacity: 0.7; }
.swiper-pagination-bullet-active { background-color: var(--accent-color); opacity: 1; }
@media (max-width: 768px) { .swiper-button-next, .swiper-button-prev { display: none !important; } }

.alert { padding: 15px; margin-bottom: 20px; border-radius: 5px; font-weight: 600; border: 1px solid transparent; }
.alert-success { background-color: #d4edda; color: #155724; border-color: #c3e6cb; }
.alert-danger { background-color: #f8d7da; color: #721c24; border-color: #f5c6cb; }

#cookie-consent-banner { position: fixed; bottom: 0; left: 0; width: 100%; background-color: rgba(18, 18, 18, 0.95); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); color: #f0f0f0; z-index: 1000; padding: 20px; box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3); display: none; align-items: center; justify-content: center; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.7); display: none; justify-content: center; align-items: center; z-index: 1002; animation: fadeInModal .3s ease; }
.modal-content { background: var(--card-bg); padding: 30px; border-radius: 8px; width: 90%; max-width: 700px; max-height: 80vh; overflow-y: auto; position: relative; color: var(--text-color); border: 1px solid var(--accent-color); }
.modal-close { position: absolute; top: 10px; right: 20px; font-size: 2rem; color: #fff; cursor: pointer; line-height: 1; }
@keyframes fadeInModal { from { opacity: 0; } to { opacity: 1; } }

/* =================================================================== */
/*                 SECCIONES ESPECÍFICAS DE PÁGINAS                    */
/* =================================================================== */

/* ======== 6. SECCIÓN: HERO BANNER (Página de Inicio) ======== */
.hero { position: relative; height: 95vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; color: var(--white-color); margin-top: calc(-1 * var(--nav-height)); background-color: #000; }
.hero-background-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero-background-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-mobile { display: none; }
.hero-img-desktop { display: block; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); z-index: 2; }
.hero-content { position: relative; z-index: 3; padding: 20px; }
.hero-content h1 { font-size: 4rem; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }
.hero-content p { font-size: 1.5rem; margin-bottom: 2rem; }
@media (max-width: 767px) {
    .hero { height: 90vh; }
    .hero-img-mobile { display: block; object-fit: contain; }
    .hero-img-desktop { display: none; }
    .hero-content h1 { font-size: 2.5rem; text-shadow: 1px 1px 8px rgba(0,0,0,0.8); margin-bottom: 110px; }
    .hero-content p { font-size: 1.3rem; margin-bottom: 1.5rem; }
    .hero .cta-buttons { flex-direction: column; gap: 12px; align-items: center; }
    .hero .cta-button { width: 100%; max-width: 300px; text-align: center; padding: 12px 20px; font-size: 1rem; }
}

/* ======== 7. SECCIÓN: QUINTETO DE LA SEMANA (Página de Inicio) ======== */
/* --- Estilos para el indicador de swipe --- */

/* Por defecto, el indicador está oculto en pantallas grandes (desktop-first) */
.swipe-indicator {
    display: none; 
}

/* Media Query para dispositivos móviles y tablets */

    /* Cuando la pantalla sea de 768px o menos, mostramos el indicador */
    .swipe-indicator {
        display: flex; /* Usamos flex para alinear el icono y el texto fácilmente */
        align-items: center;
        justify-content: center;
        gap: 8px; /* Espacio entre el icono y el texto */
        color: white; /* Un color sutil */
        font-size: 0.9em;
        font-style: italic;
        margin-top: -10px; /* Ajuste para que esté más cerca del título */
        margin-bottom: 20px;
    }

    .swipe-indicator svg {
        width: 20px; /* Tamaño del icono */
        height: 20px;
        color: white;
    }

.quinteto-carousel { padding-bottom: 50px; margin-top: 2rem; }
.quinteto-carousel .swiper-slide { display: flex; justify-content: center; align-items: center; 

  width: auto; /* Permite que las tarjetas no ocupen el 100% */
}
.quinteto-card { width: 90%; max-width: 800px; margin-right: 20px; }
.quinteto-header { margin-bottom: 1rem; }
.quinteto-temporada { background-color: var(--accent-color); color: #111; padding: 5px 15px; border-radius: 20px; font-weight: 600; }
.quinteto-nav { color: var(--accent-color); }
.quinteto-pag .swiper-pagination-bullet {
   display: none;
}
.quinteto-section { padding: 60px 20px; background-color: var(--primary-color); text-align: center; }
.quinteto-display { position: relative; max-width: 800px; margin: 2rem auto 0; aspect-ratio: 16 / 10; background-image: linear-gradient(rgba(0,0,0,.5),rgba(0,0,0,.7)),url(/uploads/images/quinteto_bg.jpg); background-size: cover; background-position: center; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.4); overflow: hidden; }
.player-card-quinteto { position: absolute; width: 100px; text-align: center; color: #fff; transition: transform .3s ease; }
.player-card-quinteto:hover { transform: scale(2.1); z-index: 10; }
.player-position-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; color: var(--accent-color); margin-bottom: 5px; text-shadow: 1px 1px 2px rgba(0,0,0,.7); }
.player-card-quinteto img, .player-card-quinteto .player-photo-placeholder-q { width: 65px; height: 65px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; margin: 0 auto 8px; background-color: var(--card-bg); box-shadow: 0 4px 10px rgba(0,0,0,.5); }
.player-photo-placeholder-q { display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; }
.player-info-q strong { display: block; font-size: .8rem; font-weight: 600; text-shadow: 1px 1px 3px #000; }
.player-info-q span { font-size: .7rem; color: #ccc; text-shadow: 1px 1px 3px #000; }
.pos-portero {bottom: 5%; left: 42%;} 
.pos-cierre {top: 45%; left: 15%;} 
.pos-ala1 {top: 35%; left: 40%;} 
.pos-ala2 {top: 45%; right: 15%;} 
.pos-pivot {top: 5%; left: 42%;}
.quinteto-description { max-width: 800px; margin: 1.5rem auto 0; padding: 1rem; background-color: rgba(0,0,0,.2); border-radius: 8px; font-style: italic; color: #ddd; }
@media (max-width: 768px) {
    .quinteto-display { aspect-ratio: 9 / 13; max-width: 90%; }
    .pos-portero {  bottom: 0%; left: 46%; }
    .pos-cierre {bottom: 3%; left: 15%; }
    .pos-ala1 {  top: 15%; left: -4%; }
    .pos-ala2 {  top: 24%; left: 68%; }
    .pos-pivot {  top: 10%; left: 40%; }
}

/* ======== 8. PÁGINAS DE CONTENIDO (Noticias, Equipos, Club, etc.) ======== */
.partidos-section, .news-section, .club-page-section, .contact-section { padding: 60px 20px; }
.see-all-link { text-align: center; margin-top: 40px; }
.no-data-message { text-align: center; color: var(--text-muted); padding: 2rem; }

/* --- Tarjetas de Partidos y Noticias (Estilo Moderno "Pro") --- */
.card-partido.pro,
.news-card-pro {
    height: 100%; /* Sigue siendo útil para los swiper-slides */
    display: flex; /* Asegura que la tarjeta use flexbox para su contenido interno */
    flex-direction: column; /* Organiza los elementos internos en columna */
    /* Removemos min-height y max-height de aquí para que la altura sea dinámica */
    /* justify-content: space-between; -- También lo removemos, ya que ahora queremos que el contenido fluya */
}

/* --- ESTILOS PARA TARJETAS DE PARTIDO (CORREGIDOS Y SIMPLIFICADOS) --- */
.card-partido.pro {
    background: #1e1e2f;
    border: 1px solid #3a3a5a;
    border-radius: 16px;
    padding: 16px; /* He reducido un poco el padding para dar más espacio */
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    transition: transform .3s ease, border-color .3s ease;
    text-align: center;
    width: 100%; /* Asegura que ocupe todo el ancho disponible en el slide */
}

.card-partido.pro:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.card-partido.pro .card-partido-categoria {
    align-self: center;
    background-color: var(--accent-color);
    color: black;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.card-partido.pro .card-partido-equipos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1; /* ¡IMPORTANTE! Permite que esta sección ocupe el espacio flexible */
    gap: 10px;
}

.card-partido.pro .equipo-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    gap: 8px;
    min-width: 0;
}

.card-partido.pro .team-logo {
    height: 60px;
    width: 60px;
    object-fit: cover;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
    border: 2px solid #3a3a5a;
    flex-shrink: 0;
}

.card-partido.pro .placeholder-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-muted);
    background-color: #2a2a3f;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.card-partido.pro .equipo-info h3 {
    font-size: 1rem;
    line-height: 1.3;
    color: var(--white-color);
    font-weight: 600;
    width: 100%;
    margin: 0;
    word-wrap: break-word;
    min-height: 2.6em; /* Mantiene espacio para 2 líneas */
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-partido.pro .marcador-central {
    flex: 0 0 auto;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-partido.pro .fecha-partido {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white-color);
    text-transform: uppercase;
}

.card-partido.pro .hora-partido {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white-color);
}

.card-partido.pro .vs-label {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 700;
}

.card-partido.pro .resultado-final {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white-color);
    white-space: nowrap;
}

.card-partido.pro .card-partido-bottom-info {
    margin-top: auto; /* ¡IMPORTANTE! Esto empuja el footer al final de la tarjeta */
    padding-top: 12px;
    border-top: 1px solid #3a3a5a;
}

.card-partido.pro .card-partido-info {
    font-size: .85rem;
    color: var(--accent-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.card-partido.pro .card-partido-info p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-partido.pro .card-partido-countdown {
    margin-top: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
}

.card-partido.pro .card-partido-countdown.finalizado {
    font-size: .9rem;
    color: var(--text-muted);
}

/* --- ESTILOS PARA GOLEADORES (MODIFICADOS) --- */
.card-partido-goleadores {
    font-size: 0.8rem;
    color: #ccc;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #444;
    text-align: left;
    /* QUITAMOS max-height y overflow-y: auto de aquí */
}

.card-partido-goleadores ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap; /* Permite que los elementos salten a la siguiente línea */
    gap: 5px 15px;   /* Espacio entre las filas y columnas de goleadores */
}

.card-partido-goleadores li {
    /* Quitamos white-space: nowrap y text-overflow: ellipsis si queremos que ocupe todo el ancho y no se corte */
    /* Si el nombre de un goleador es muy largo y quieres que ocupe su propia "línea" si es necesario, 
       podrías darle un max-width o usar flex-basis. Pero por defecto, con flex-wrap, ya se ajustará. */
    flex-basis: calc(50% - 7.5px); /* Intenta que cada goleador ocupe la mitad del ancho, menos el gap */
    box-sizing: border-box; /* Asegura que padding/border se incluyan en el ancho */
    white-space: nowrap; /* Mantiene el nombre en una sola línea si es posible */
    overflow: hidden; /* Oculta el excedente si el nombre es muy largo */
    text-overflow: ellipsis; /* Añade puntos suspensivos si se corta */
}

.card-partido-goleadores i {
    color: var(--accent-color);
    margin-right: 8px;
    font-size: 0.7rem;
}

/* --- ESTILOS PARA TARJETAS DE NOTICIAS (YA ESTABAN BIEN) --- */
.noticias-carousel .swiper-slide {
    height: auto; /* Permite que el slide crezca con su contenido */
}

/* Contenedor principal de la tarjeta de noticia */
.news-card-pro {
    display: flex; /* ¡IMPORTANTE! Convierte la tarjeta en un contenedor flex */
    flex-direction: column; /* Apila los elementos (imagen, contenido) verticalmente */
    width: 100%;
    height: 100%; /* ¡IMPORTANTE! Fuerza a la tarjeta a ocupar toda la altura del slide */
    background: var(--secondary-color); /* Usando tu variable */
    border: 1px solid var(--border-color-dark);
    border-radius: 16px;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card-pro:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Contenedor de la imagen */
.news-card-pro .news-card-image {
    position: relative;
    width: 100%;
    height: 250px; /* Altura fija para la imagen */
    background-color: #111;
    flex-shrink: 0; /* Evita que la imagen se encoja */
}
.news-card-pro .news-card-image img, 
.news-card-pro .news-card-image video, 
.news-card-pro .news-card-image iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}
.news-card-pro .news-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

/* Contenedor del contenido (título, resumen, pie) */
.news-card-pro .news-card-content {
    padding: 16px;
    display: flex; /* Lo convertimos también en flex */
    flex-direction: column; /* Apilamos sus hijos verticalmente */
    flex-grow: 1; /* ¡IMPORTANTE! Hace que este contenedor ocupe todo el espacio sobrante */
}
.news-card-pro .news-card-title {
    font-size: 1.15rem;
    color: var(--white-color);
    margin: 0 0 0.75rem 0; /* Añadido margen inferior */
    line-height: 1.4;
}
.news-card-pro .news-card-summary {
    font-size: 0.9rem;
    color: var(--text-muted); /* Usando tu variable */
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1; /* ¡CLAVE! El resumen ocupa todo el espacio flexible disponible */
}

/* Contenedor del pie de la tarjeta (fecha y "Leer más") */
.news-card-pro .news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color-dark); /* Usando tu variable */
    margin-top: auto; /* ¡CLAVE! Empuja el pie siempre hacia abajo */
}
.news-card-pro .news-card-date { font-size: .8rem; color: var(--accent-color); display: flex; align-items: center; gap: 6px; }
.news-card-pro .news-card-readmore { color: var(--accent-color); font-weight: 600; font-size: .9rem; }

/* --- Páginas Específicas: Noticia, Equipos, Club, Contacto --- */
.article-full .container { max-width: 800px; }
.article-image { width: 100%; max-height: 450px; object-fit: cover; border-radius: 15px; margin-bottom: 2rem; }
.article-meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border-color-dark); padding-bottom: 1rem; }
.article-content p { font-size: 1.1rem; margin-bottom: 1.5rem; line-height: 1.8; }
.back-link { display: inline-block; margin-top: 2rem; font-weight: 600; }



.tabla-wrapper-responsive { overflow-x: auto; padding: 1.5rem; }
.tabla-clasificacion-responsive { width: 100%; border-collapse: collapse; color: var(--text-muted); }
.tabla-clasificacion-responsive th, .tabla-clasificacion-responsive td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--border-color-dark); }
.tabla-clasificacion-responsive thead th { background-color: rgba(255, 255, 255, 0.05); color: var(--white-color); font-weight: 600; text-transform: uppercase; font-size: 0.8rem; }
.tabla-clasificacion-responsive tbody tr:hover { background-color: rgba(255, 255, 255, 0.08); }
.tabla-clasificacion-responsive tbody tr.resaltada { background-color: rgba(255, 195, 0, 0.1); font-weight: bold; color: var(--white-color); }
.tabla-clasificacion-responsive tbody tr.resaltada td:first-child { border-left: 3px solid var(--accent-color); }
@media screen and (max-width: 768px) {
    .tabla-clasificacion-responsive thead { display: none; }
    .tabla-clasificacion-responsive tr { display: flex; justify-content: space-between; align-items: center; padding: 12px 10px; }
    .tabla-clasificacion-responsive td { display: none; border: none; padding: 0; }
    .tabla-clasificacion-responsive td[data-label="Pos"], .tabla-clasificacion-responsive td[data-label="Equipo"], .tabla-clasificacion-responsive td[data-label="Pts"] { display: block; }
    .tabla-clasificacion-responsive td[data-label="Pos"] { flex: 0 0 30px; text-align: left; }
    .tabla-clasificacion-responsive td[data-label="Equipo"] { flex: 1 1 auto; padding: 0 1rem; font-weight: bold; color: var(--white-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tabla-clasificacion-responsive tr.resaltada td[data-label="Equipo"] { color: var(--accent-color); }
    .tabla-clasificacion-responsive td[data-label="Pts"] { flex: 0 0 35px; text-align: right; font-weight: bold; }
}

.player-grid-container { padding: 20px 5px; }
.player-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; }
.player-card { background-color: var(--secondary-color); border-radius: 8px; text-align: center; padding: 15px; transition: all 0.3s ease; border: 1px solid var(--border-color-dark); }
.player-card:hover { transform: translateY(-5px); box-shadow: 0 6px 12px rgba(0,0,0,0.2); }
.player-card img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin-bottom: 15px; border: 3px solid var(--accent-color); }
.player-card .player-info { display: flex; flex-direction: column; }
.player-card strong { font-size: 1rem; color: var(--white-color); }
.player-card .player-dorsal { font-size: 0.9rem; font-weight: 700; color: var(--accent-color); margin: 5px 0; }
.player-card .player-position { font-size: 0.85rem; color: var(--text-muted); }

.history-card { display: flex; background-color: var(--secondary-color); border-radius: 15px; overflow: hidden; margin-bottom: 2rem; box-shadow: 0 10px 25px rgba(0,0,0,0.3); }
.history-card-image { flex: 0 0 40%; }
.history-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.history-card-content { padding: 2.5rem; flex: 1; }
.history-card-content h2 { text-align: left; }
.history-card-content p { color: var(--white-color); line-height: 1.7; }
@media (max-width: 768px) {
    .history-card { flex-direction: column; }
    .history-card-image { max-height: 250px; }
    .history-card-content { padding: 2rem; }
}

.card-horario { background-color: #222; border-radius: 8px; padding: 1.5rem; height: 100%; border-left: 4px solid var(--accent-color); }
.card-horario h4 { color: var(--white-color); margin-bottom: 1.5rem; font-size: 1.3rem; }
.card-horario ul { list-style: none; padding: 0; }
.card-horario li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--text-muted); }
.card-horario li i { color: var(--accent-color); width: 20px; }
.card-instalacion { background-color: var(--secondary-color); border-radius: 15px; overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.card-instalacion img { width: 100%; height: 200px; object-fit: cover; }
.card-instalacion-body { padding: 1.5rem; }
.card-instalacion-body h4 { color: var(--white-color); font-size: 1.3rem; }
.card-instalacion-body p { color: var(--text-muted); display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.card-instalacion-body i { color: var(--accent-color); width: 20px; }

.contact-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; max-width: 1200px; margin: 0 auto; background-color: var(--secondary-color); padding: 40px; border-radius: 10px; }
.contact-info h3, .contact-form-container h3 { color: var(--accent-color); }
.info-list { list-style: none; padding: 0; }
.info-list li { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.info-list li i { color: var(--accent-color); width: 20px; text-align: center; }
.social-icons-contact { margin-top: 40px; border-top: 1px solid var(--border-color-dark); padding-top: 30px; display: flex; justify-content: center; gap: 15px; }
@media (max-width: 768px) { .contact-wrapper { grid-template-columns: 1fr; } }

/* =================================================================== */
/*                     SECCIÓN 9: PANEL DE ADMINISTRACIÓN              */
/* =================================================================== */
body.admin-page { background-color: var(--admin-bg); color: var(--dark-text); }
.admin-panel { background-color: var(--white-color); padding: 2rem; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.admin-panel-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-color-light); }
.admin-panel-title { color: var(--dark-text); font-size: 1.8rem; margin: 0; }
.admin-form { max-width: 700px; margin: 1rem auto; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--dark-text); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px; border: 1px solid var(--border-color-light); border-radius: 5px; font-size: 1rem; font-family: var(--font-family); background: var(--white-color); color: var(--dark-text); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.2); }
.tabla-wrapper { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 1rem;}
.admin-table th, .admin-table td { padding: 15px; border-bottom: 1px solid var(--border-color-light); text-align: left; vertical-align: middle; color: var(--dark-text); }
.admin-table thead th { background-color: var(--dark-text); font-weight: 600; color: var(--white-color); }
.admin-table tbody tr:hover { background-color: var(--light-bg); }
.admin-table img { max-width: 100px; height: auto; display: block; border-radius: 6px; }
.admin-actions { text-align: right; white-space: nowrap; }
.admin-actions a { text-decoration: none; font-size: 1.2rem; margin: 0 8px; transition: all 0.2s ease; }
.admin-actions a:hover { transform: scale(1.2); }
.admin-actions .edit { color: var(--brand-blue); }
.admin-actions .delete { color: var(--color-danger); }

@media (max-width: 768px) {
    .admin-panel { padding: 1rem; }
    .admin-panel-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .admin-panel-title { font-size: 1.5rem; }
    .admin-table thead { display: none; }
    .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
    .admin-table tr { margin-bottom: 1.5rem; border: 1px solid var(--border-color-light); border-radius: 8px; overflow: hidden; }
    .admin-table td { display: flex; justify-content: space-between; align-items: center; padding: 12px; text-align: right; border-bottom: 1px solid #f0f0f0; }
    .admin-table tr:last-child td:last-child { border-bottom: none; }
    .admin-table td::before { content: attr(data-label); font-weight: 600; text-align: left; margin-right: 1rem; color: var(--dark-text); }
    .admin-table img { max-width: 80px; }
}
/* Contenedor para posicionar el botón de compartir */
/* --- ESTILOS PARA LA BARRA DE META DE LA NOTICIA --- */

/* 1. Convertimos el contenedor en un layout flex */
.news-card-meta {
    display: flex;
    align-items: center; /* Alinea verticalmente los items */
    margin-top: auto; /* Mantiene la barra pegada abajo */
}

/* 2. El nuevo botón de compartir */
.news-card-share {
    display: inline-flex; /* Para alinear el icono si decides añadir texto */
    align-items: center;
    cursor: pointer;
    color: #005a9e; /* Un color azul para indicar acción */
    margin-left: 15px; /* Espacio para separarlo de la fecha */
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.news-card-share:hover {
    color: white;
    background-color: #d41e1e; /* Color corporativo al pasar el ratón */
}

/* 3. ¡El truco! Empujamos "Leer más" hasta el final */
.news-card-readmore {
    margin-left: auto; /* Esto empuja el elemento todo a la derecha */
}


/* 4. Estilo para el mensaje de feedback "¡Copiado!" */
.news-card-meta {
    position: relative; /* Necesario para posicionar el feedback */
}

.copy-feedback {
    position: absolute;
    bottom: 100%; /* Lo posiciona justo encima de la barra meta */
    left: 50%;
    transform: translateX(-50%); /* Lo centra horizontalmente */
    background-color: #28a745; /* Verde de éxito */
    color: white;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 12px;
    margin-bottom: 5px; /* Pequeño espacio de separación */
    opacity: 0;
    transition: opacity 0.3s ease-in-out, bottom 0.3s ease-in-out;
    pointer-events: none;
}

.copy-feedback.show {
    opacity: 1;
    bottom: 110%; /* Lo anima hacia arriba */
}