:root {
    --red-alzira: #D92121;
    --header-bg: rgba(180, 176, 176, 0.98); /* El color que te gusta */
}

#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--header-bg);
    
    /* ALTURA PERFECTA: Ni muy alta ni muy pequeña */
    height: 55px; 
    padding: 0 40px; 
    
    display: flex;
    align-items: center; /* Centra todo verticalmente para que no se corte */
    border-bottom: 2px solid var(--red-alzira);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.nav-container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO: Ajustado para que no toque los bordes */
.main-logo {
    height: 40px; /* Tamaño ideal para un header de 55px */
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
}

/* MENÚ: Texto un poco más pequeño para que se vea elegante */
.nav-links {
    display: flex;
    list-style: none;
    gap: 25px; /* Espacio entre enlaces */
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #1a1a1a; /* Texto oscuro para que se lea bien sobre el gris */
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 12px; /* Tamaño "finito" y elegante */
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--red-alzira);
}

/* BOTÓN CONTACTO: Más compacto para que quepa bien */
.contact-btn a {
    background-color: var(--red-alzira);
    color: white !important;
    padding: 6px 18px; /* Padding reducido para ser fino */
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid var(--red-alzira);
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-btn a:hover {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    transform: translateY(-1px);
}

/* Ajuste para que el contenido de la web empiece justo debajo */
body {
    margin-top: 55px;
}
/* 3. HERO SLIDER (SISTEMA DE CAPAS) */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1; /* Fondo */
}

/* Esto asegura el efecto de fundido cruzado */
.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0; /* Todas ocultas */
    transition: opacity 1.5s ease-in-out; /* Velocidad del fundido */
    z-index: 1;
}

.slide.active {
    opacity: 1; /* Solo la activa se ve */
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2; /* Encima de fotos, debajo de texto */
    background: linear-gradient(to bottom, 
                rgba(0,0,0,0.7) 0%, 
                rgba(0,0,0,0.2) 50%, 
                rgba(0,0,0,1) 100%);
}

.hero-content {
    position: relative;
    z-index: 3; /* Encima de todo */
    text-align: center;
    width: 90%;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 8.5rem);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -4px;
    text-transform: uppercase;
    transform: skewX(-5deg);
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.accent-text {
    color: var(--red-alzira);
}

/* 4. MATCH CENTER */
.match-center {
    position: relative;
    z-index: 10;
    margin-top: -80px;
    padding: 0 20px;
}

.match-card {
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.match-header {
    text-align: center;
    margin-bottom: 30px;
}

.competition {
    background: var(--red-alzira);
    padding: 6px 20px;
    font-weight: 900;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.match-body {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 40px;
}

.match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 33%;
}

.match-team img { height: 110px; object-fit: contain; }

.team-name { font-weight: 900; font-size: 1.4rem; text-align: center; }

.match-vs {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--red-alzira);
    font-style: italic;
}

.match-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.match-info p { font-weight: 700; font-size: 1.1rem; }
.match-stadium { color: #aaa; font-size: 0.9rem; margin-top: 5px; }

.glass-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.8rem;
    transition: 0.3s;
    text-transform: uppercase;
}

.glass-button:hover {
    background: var(--white);
    color: var(--black);
}

/* 5. NOTICIAS */
/* =========================================
   SECCIÓN NOTICIAS - DARK PREMIUM
   ========================================= */

/* 1. Contenedor Principal */
.news-portal {
    background-color: #000000; /* Fondo negro puro */
    background-image: radial-gradient(circle at top right, #111111 0%, #000000 70%); /* Degradado muy sutil */
    padding: 100px 60px;
    max-width: 100%;
    margin: 0 auto;
}

/* 2. Título de Sección con línea roja corporativa */
.section-label {
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 800; /* ExtraBold */
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    text-transform: uppercase;
    margin-bottom: 60px;
    border-left: 8px solid #E30613; /* Línea roja potente */
    padding-left: 25px;
    line-height: 1;
}

/* 3. Grid de Noticias */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
}

/* 4. La Tarjeta Premium (News Item) */
.news-item {
    background-color: #111111; /* Gris Carbón Mate */
    border: 1px solid #333333; /* Borde sutil */
    border-radius: 8px;
    overflow: hidden; /* Para contener el zoom de imagen */
    cursor: pointer;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Transición suave de élite */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

/* 5. Contenedor de Imagen y Zoom */
.news-img-wrap {
    height: 280px;
    width: 100%;
    overflow: hidden;
}

.news-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease; /* Zoom suave */
}

/* 6. Contenido de la Tarjeta */
.news-data {
    padding: 30px; /* Padding generoso */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* 7. Categoría (Estilo Neon Sport) */
.news-cat {
    color: #E30613;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px; /* Espaciado elegante */
    margin-bottom: 15px;
    display: block;
}

/* 8. Título de Noticia */
.news-data h3 {
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.3;
    margin: 0;
    transition: none; /* No cambia de color en hover */
}

/* =========================================
   INTERACCIONES (HOVER EFFECTS)
   ========================================= */

.news-item:hover {
    transform: translateY(-10px); /* Elevación */
    background-color: #161616; /* Aclara un poco el carbón */
    border-bottom: 3px solid #E30613; /* Iluminación roja inferior */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8); /* Sombra más intensa */
}

/* Zoom de imagen al pasar el mouse por la tarjeta */
.news-item:hover .news-img-wrap img {
    transform: scale(1.08);
}

/* Ajuste responsive para móviles */
@media (max-width: 768px) {
    .news-portal {
        padding: 60px 20px;
    }
    
    .news-grid {
        grid-template-columns: 1fr; /* Una sola columna en móvil */
    }
    
    .section-label {
        font-size: 2.2rem;
    }
}
/* 6. RESPONSIVE */
@media (max-width: 1024px) {
    .match-body { gap: 10px; }
    .team-name { font-size: 1rem; }
}

@media (max-width: 768px) {
    #main-header { padding: 20px; }
    .nav-links { display: none; }
    .hero-title { font-size: 3.5rem; }
    .match-body { flex-direction: column; gap: 30px; }
    .match-team { width: 100%; }
    .match-footer { flex-direction: column; gap: 20px; text-align: center; }
}

/* CONTENEDOR PRINCIPAL */
.match-center-premium {
    padding: 60px 20px;
    background-color: #000; /* Fondo exterior negro */
    display: flex;
    justify-content: center;
}

.match-card {
    width: 100%;
    max-width: 1000px;
    background-color: #0a0a0a; /* Negro Carbón */
    border-top: 4px solid #E30613; /* Línea Roja Alzira */
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    position: relative;
    overflow: hidden;
}

/* ETIQUETA SUPERIOR */
.competition-badge {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #E30613;
    margin-bottom: 30px;
    text-transform: uppercase;
}

/* LAYOUT PRINCIPAL (EQUIPOS + INFO) */
.match-main-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* BLOQUE DE EQUIPO (LOCAL Y VISITANTE) */
.team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.shield-wrapper {
    height: 120px; /* Contenedor de escudo controlado */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.shield-wrapper img {
    max-height: 100px; /* SOLUCIÓN: Imágenes ya no son gigantes */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
}

.team-name {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
}

/* BLOQUE CENTRAL (FECHA Y VS) */
.info-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 150px;
}

.date-box {
    font-size: 1.1rem;
    font-weight: 700;
    color: #888;
}

.vs-box {
    font-size: 3.5rem;
    font-weight: 900;
    color: #E30613;
    font-style: italic;
    line-height: 1;
    margin: 5px 0;
}

.time-box {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    background-color: #1a1a1a;
    padding: 5px 15px;
    border-radius: 4px;
}

/* INFO DEL ESTADIO */
.stadium-info {
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #666;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-top: 1px solid #1a1a1a;
    padding-top: 20px;
}

.icon-pin {
    width: 18px;
    height: 18px;
    stroke: #E30613;
}

/* RESPONSIVIDAD (MÓVIL) */
@media (max-width: 768px) {
    .match-main-content {
        flex-direction: column; /* Apilado vertical en móviles */
        gap: 40px;
    }

    .vs-box {
        font-size: 2.5rem;
        margin: 10px 0;
    }

    .shield-wrapper {
        height: 100px;
    }

    .team-name {
        font-size: 1.2rem;
    }

    .match-card {
        padding: 30px 20px;
    }
}


/* =========================================
   FOOTER INSTITUCIONAL - ESTILO PREMIUM
   ========================================= */

.footer-premium {
    background-color: #050505; /* Negro profundo para diferenciar del body */
    padding: 80px 20px 30px;
    border-top: 1px solid #1a1a1a;
    margin-top: 100px;
}

.footer-top {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr; /* El logo ocupa más espacio */
    gap: 50px;
}

/* Columna del Logo */
.footer-logo-box img {
    height: 80px; /* Tamaño controlado del logo */
    width: auto;
    margin-bottom: 20px;
}

.footer-logo-box p {
    color: #888;
    font-size: 0.9rem;
    font-weight: 400;
    max-width: 250px;
}

/* Columnas de Navegación */
.footer-nav h4, 
.footer-social h4 {
    color: var(--red-alzira);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

/* Esto asegura que los enlaces del footer SIEMPRE sean blancos o grises claros */
.footer-nav a {
    display: block;
    color: #ffffff !important; /* Forzamos blanco puro */
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: 0.3s;
}

/* Estado al pasar el ratón: se pone rojo Alzira */
.footer-nav a:hover {
    color: var(--red-alzira) !important;
    padding-left: 5px;
}

/* Esto evita que al hacer click o después de haberlos visitado se pongan negros */
.footer-nav a:visited, 
.footer-nav a:active, 
.footer-nav a:focus {
    color: #ffffff !important;
    text-decoration: none;
}
/* Iconos Sociales */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons span {
    background: #ffffff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.7rem;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid #333;
}

.social-icons span:hover {
    background: var(--red-alzira);
    color: white;
    transform: translateY(-5px);
}

/* Créditos Finales */
.footer-bottom {
    max-width: 1400px;
    margin: 60px auto 0;
    padding-top: 30px;
    border-top: 1px solid #ffffff;
    text-align: center;
}

.footer-bottom p {
    color: #444;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* RESPONSIVO PARA MÓVILES */
@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr 1fr; /* 2 columnas en tablets */
    }
}

@media (max-width: 600px) {
    .footer-top {
        grid-template-columns: 1fr; /* 1 columna en móvil */
        text-align: center;
    }
    
    .footer-logo-box, .footer-social {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-logo-box p {
        max-width: 100%;
    }

    .social-icons {
        justify-content: center;
    }
}


/* CONFIGURACIÓN DEL HERO BANNER */
.hero-banner {
    position: relative;
    width: 100%;
    height: 100vh; /* Alto total de la pantalla garantizado */
    background-color: #000; /* Fondo de seguridad */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CONTENEDOR DE SLIDES */
.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* COMPORTAMIENTO DE CADA SLIDE */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover; /* La imagen cubre todo el espacio */
    background-position: center; /* Imagen siempre centrada */
    background-repeat: no-repeat;
    opacity: 0; /* Oculta por defecto */
    transition: opacity 1.5s ease-in-out; /* EFECTO CROSSFADE PROFESIONAL */
    z-index: 1;
}

/* ESTADO ACTIVO (Imagen visible) */
.slide.active {
    opacity: 1;
    z-index: 2;
}

/* CAPA DE OVERLAY (LEGIBILIDAD) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Degradado de negro abajo a transparente arriba */
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.5) 100%);
    z-index: 3;
    pointer-events: none; /* No interfiere con clicks */
}

/* CONTENIDO DE TEXTO */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    font-size: clamp(3rem, 10vw, 7rem); /* Tamaño masivo responsivo */
    font-weight: 900;
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: -2px;
    transform: skewX(-5deg); /* Toque agresivo deportivo */
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.highlight {
    color: #E30613; /* ROJO ALZIRA */
    display: block;
}


/* CONTENEDOR PRINCIPAL */
.hero-content {
    position: relative;
    z-index: 20; /* Valor alto para estar por encima de TODO */
    text-align: center;
    color: #ffffff;
    padding: 0 20px;
    animation: premiumFadeIn 1.5s ease-out; /* Entrada suave */
}

/* SUBTÍTULO SUPERIOR */
.hero-subtitle {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 7px; /* Espaciado elegante */
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
}

/* TÍTULO IMPACTANTE */
.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(3.5rem, 12vw, 8.5rem); /* Se adapta al tamaño de pantalla */
    font-weight: 900;
    line-height: 0.82;
    text-transform: uppercase;
    letter-spacing: -4px; /* Estilo compacto tipo cartel de Nike */
    transform: skewX(-6deg); /* Inclinación agresiva deportiva */
    margin: 0;
    /* Sombra sutil para legibilidad extrema */
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); 
}

/* EL TEXTO ROJO */
.highlight {
    display: block;
    color: #E30613;
    filter: drop-shadow(0 0 15px rgba(227, 6, 19, 0.3)); /* Brillo sutil */
}

/* LÍNEA DECORATIVA */
.hero-divider {
    width: 80px;
    height: 6px;
    background-color: #E30613;
    margin: 35px auto 0;
    border-radius: 3px;
}

/* ANIMACIÓN DE ENTRADA */
@keyframes premiumFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================================
   AVISO DE COOKIES (PREMIUM DARK)
   ========================================= */
/* CONTENEDOR FLOTANTE */
.cookie-premium {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 380px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-premium.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* EFECTO CRISTAL (GLASSMORPHISM) */
.cookie-inner {
    position: relative;
    background: rgba(15, 15, 15, 0.85); /* Negro premium translúcido */
    backdrop-filter: blur(20px); /* Desenfoque de fondo pro */
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #E30613; /* Línea roja distintiva */
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* TIPOGRAFÍA Y TEXTOS */
.cookie-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.cookie-dot {
    width: 8px;
    height: 8px;
    background-color: #E30613;
    border-radius: 50%;
    box-shadow: 0 0 10px #E30613;
}

.cookie-title {
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 3px;
    font-family: 'Inter', sans-serif;
}

.cookie-body p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 25px;
    font-family: 'Inter', sans-serif;
}

.cookie-body a {
    color: #E30613;
    text-decoration: none;
    font-weight: 600;
}

/* BOTONES PREMIUM */
.cookie-actions {
    display: flex;
    gap: 12px;
}

.btn-premium-accept {
    background: #E30613;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    flex: 2;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-premium-accept:hover {
    background: #ffffff;
    color: #E30613;
    transform: scale(1.02);
}

.btn-premium-settings {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    flex: 1;
    transition: 0.3s;
}

.btn-premium-settings:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* RESPONSIVE MÓVIL */
@media (max-width: 480px) {
    .cookie-premium {
        left: 15px;
        right: 15px;
        width: auto;
        bottom: 15px;
    }
}
.cookie-banner {
    /* ... otros estilos ... */
    bottom: 0 !important; /* Cambia -100% por 0 y añade !important */
    display: block !important;
}
