/* CARGA DE FUENTES PROPIAS - TODAS ACTIVAS */
@font-face {
    font-family: 'AlfaqixServo Semibold';
    src: url('../assets/fonts/alfaqixServo-semibold.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Batolah';
    src: url('../assets/fonts/batolah.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* VARIABLES GENERALES */
:root {
    --color-principal: #9c78b5;
    --color-fondo-pagina: #9c78b5;
    --color-claro: #FFFFFF;
    --color-gris-fondo: #F8F9FA;
    --color-texto: #222222;
    --color-texto-fixture: #000000;
    --color-texto-titulo-claro: #FFFFFF;
    --color-texto-titulo-oscuro: #000000;
    --color-texto-claro: #D1D0E6;
    --color-resaltado: #FFC107;
    --sombra-suave: 0 2px 8px rgba(0, 0, 0, 0.08);
    --sombra-media: 0 4px 16px rgba(0, 0, 0, 0.12);
    --sombra-intensa: 0 8px 24px rgba(0, 0, 0, 0.18);
    --transicion: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    --borde-redondo: 14px;
    --espacio-tarjetas: 2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Batolah', sans-serif;
    color: var(--color-texto);
    line-height: 1.65;
    overflow-x: hidden;
    background-color: var(--color-fondo-pagina);
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 92%;
    max-width: 1280px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transicion);
}

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

/* -------------------------- */
/* ENCABEZADO */
/* -------------------------- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--color-principal);
    z-index: 1000;
    padding: 1.4rem 0;
    transition: var(--transicion);
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    height: 90px;
}

#main-header.reducido {
    padding: 0.7rem 0;
    height: 70px;
    box-shadow: var(--sombra-suave);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 60px;
    transition: var(--transicion);
}

#main-header.reducido .logo img {
    height: 42px;
}

/* Botón hamburguesa */
.menu-hamburguesa {
    background: transparent;
    border: none;
    color: var(--color-claro);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    transition: var(--transicion);
    display: none;
    font-family: 'Futuralistic', sans-serif;
    z-index: 1002;
}

.menu-hamburguesa:hover {
    background: rgba(255,255,255,0.08);
}

/* -------------------------- */
/* MENÚ HAMBURGUESA - CUBRE TODO MENOS ENCABEZADO */
/* -------------------------- */
.menu {
    position: fixed;
    top: 90px;
    right: 0;
    width: 350px;
    height: calc(100vh - 90px);
    background: var(--color-principal);
    box-shadow: -4px 0 15px rgba(0,0,0,0.25);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transicion);
    z-index: 1001;
    overflow-y: auto;
}

#main-header.reducido ~ .menu {
    top: 70px;
    height: calc(100vh - 70px);
}

.menu.activo {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.menu ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 2rem 0;
    list-style: none;
}

.menu ul li a {
    display: block;
    padding: 1.4rem 2.2rem;
    border-left: 3px solid transparent;
    font-size: 1.2rem;
    font-family: 'AlfaqixServo Semibold', sans-serif;
    color: var(--color-claro);
    transition: var(--transicion);
}

.menu ul li a:hover {
    background: rgba(255,255,255,0.08);
    border-left-color: var(--color-resaltado);
    color: var(--color-resaltado);
    padding-left: 2.8rem;
}

@media (min-width: 769px) {
    .menu {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        overflow: visible;
    }

    .menu ul {
        flex-direction: row;
        gap: 2rem;
        padding: 0;
    }

    .menu ul li a {
        padding: 0.5rem 0;
        border-left: none;
        font-size: 1rem;
    }

    .menu ul li a:hover {
        background: transparent;
        padding-left: 0;
        border-bottom: 2px solid var(--color-resaltado);
        color: var(--color-resaltado);
    }
}

/* -------------------------- */
/* IMAGEN DE PORTADA */
/* -------------------------- */
.portada {
    margin-top: 90px;
    width: 100%;
    height: 65vh;
    overflow: hidden;
    position: relative;
    background-color: var(--color-fondo-pagina);
    transition: var(--transicion);
}

#main-header.reducido ~ .portada {
    margin-top: 70px;
}

.portada-pc {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portada-movil {
    display: none;
}

/* -------------------------- */
/* SECCIONES GENERALES */
/* -------------------------- */
.seccion-noticias {
    position: relative;
    margin-top: -100px;
    padding: 2rem 0 5rem;
    z-index: 2;
    background-color: var(--color-fondo-pagina);
}

.titulo-seccion {
    font-family: 'AlfaqixServo Semibold', 'AlfaqixServo', sans-serif;
    font-size: 2.3rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    letter-spacing: 0.5px;
}

.seccion-noticias .titulo-seccion,
.seccion-oscura .titulo-seccion {
    color: var(--color-texto-titulo-claro);
}

.seccion-clara .titulo-seccion {
    color: var(--color-texto-titulo-oscuro);
}

.titulo-seccion::after {
    content: '';
    width: 90px;
    height: 4px;
    background: var(--color-resaltado);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* -------------------------- */
/* CARRUSEL */
/* -------------------------- */
.carrusel-horizontal {
    position: relative;
    overflow: hidden;
    padding: 0 45px;
}

.carrusel-contenedor {
    display: flex;
    gap: var(--espacio-tarjetas);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-principal);
    color: var(--color-claro);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 3;
    transition: var(--transicion);
    box-shadow: var(--sombra-media);
    display: grid;
    place-items: center;
    font-family: 'Batolah', sans-serif;
}

.carrusel-btn:hover {
    background: var(--color-resaltado);
    color: var(--color-principal);
    transform: translateY(-50%) scale(1.08);
}

.carrusel-btn.prev {
    left: 0;
}

.carrusel-btn.next {
    right: 0;
}

/* -------------------------- */
/* TARJETAS DE NOTICIAS - SIN CAMBIOS */
/* -------------------------- */
.tarjeta-noticia {
    flex: 0 0 calc(33.333% - var(--espacio-tarjetas) * 0.666);
    background: var(--color-claro);
    border-radius: var(--borde-redondo);
    overflow: hidden;
    box-shadow: var(--sombra-media);
    transition: var(--transicion);
}

.tarjeta-noticia:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.tarjeta-noticia img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.tarjeta-noticia:hover img {
    transform: scale(1.06);
}

.tarjeta-noticia h3 {
    font-family: 'AlfaqixServo Semibold', sans-serif;
    font-size: 1.45rem;
    margin: 1.3rem 1.3rem 0.9rem;
    color: var(--color-principal);
    line-height: 1.3;
}

.tarjeta-noticia p {
    margin: 0 1.3rem 1.5rem;
    color: #555;
    line-height: 1.55;
    font-family: 'Batolah', sans-serif;
}

.boton {
    display: inline-block;
    margin: 0 1.3rem 1.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--color-principal);
    color: var(--color-claro);
    font-family: 'AlfaqixServo Semibold', sans-serif;
    font-size: 1rem;
    border-radius: 8px;
    transition: var(--transicion);
    border: none;
    cursor: pointer;
}

.boton:hover {
    background: #2A2959;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(22, 21, 52, 0.25);
}

.boton-blanco {
    background: var(--color-claro);
    color: var(--color-principal);
}

.boton-blanco:hover {
    background: var(--color-resaltado);
    color: var(--color-principal);
}

.boton-secundario {
    background: #333344;
}

.boton-secundario:hover {
    background: var(--color-principal);
}

/* -------------------------- */
/* TARJETAS DE PARTIDOS - MÁS ANCHAS, MISMA ALTURA */
/* -------------------------- */
.seccion {
    padding: 4.5rem 0;
}

.seccion-clara {
    background: var(--color-gris-fondo);
}

/* En PC: más ancho, siguen siendo 3 por fila */
.tarjeta-partido {
    flex: 0 0 calc(36% - var(--espacio-tarjetas) * 0.666); /* Más ancho */
    min-width: 380px; /* Ancho mínimo mayor */
    min-height: 320px; /* MISMA ALTURA DE SIEMPRE */
    background: var(--color-claro);
    border-radius: var(--borde-redondo);
    padding: 2rem;
    box-shadow: var(--sombra-suave);
    text-align: center;
    transition: var(--transicion);
    color: var(--color-texto-fixture);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tarjeta-partido:hover {
    transform: translateY(-6px);
    box-shadow: var(--sombra-intensa);
}

.nombre-torneo {
    font-family: 'AlfaqixServo Semibold', sans-serif;
    font-size: 1.25rem;
    color: var(--color-texto-fixture);
    margin-bottom: 1.8rem;
    font-weight: bold;
}

.equipos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 1.8rem;
    gap: 1.5rem; /* Más espacio entre equipos */
}

.equipo {
    text-align: center;
    color: var(--color-texto-fixture);
    flex: 1;
}

.equipo img {
    width: 85px; /* Logo un poco más grande */
    height: 85px;
    margin: 0 auto 0.8rem;
    object-fit: contain;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.equipo span {
    display: block;
    font-family: 'AlfaqixServo Semibold', sans-serif;
    font-size: 1.05rem;
    color: var(--color-texto-fixture);
    font-weight: 600;
}

.goles {
    font-size: 1.9rem;
    margin-top: 0.8rem;
    color: var(--color-texto-fixture);
    font-weight: bold;
    font-family: 'Batolah', sans-serif;
}

.separador {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--color-texto-fixture);
    margin: 0 0.5rem;
    font-family: 'AlfaqixServo Semibold', sans-serif;
}

.datos-partido {
    text-align: center;
    margin-top: auto;
    font-family: 'Batolah', sans-serif;
    color: var(--color-texto-fixture);
    font-size: 1rem;
    line-height: 1.6;
}

/* -------------------------- */
/* SECCIÓN ENTRADAS */
/* -------------------------- */
.seccion-oscura {
    background: var(--color-principal);
    color: var(--color-claro);
}

.contenido-entradas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    margin-bottom: 3rem;
}

.texto-promocion h2 {
    font-family: 'AlfaqixServo Semibold', 'Cyber Copix', sans-serif;
    font-size: 2.1rem;
    margin-bottom: 1.4rem;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.texto-promocion p {
    margin-bottom: 2rem;
    color: var(--color-texto-claro);
    font-size: 1.1rem;
    line-height: 1.7;
    font-family: 'Batolah', sans-serif;
}

.texto-promocion h3 {
    font-family: 'AlfaqixServo Semibold', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 1.8rem;
}

.imagen-ticket img {
    border-radius: var(--borde-redondo);
    box-shadow: 0 0 25px rgba(255,255,255,0.18);
    transition: var(--transicion);
}

.imagen-ticket:hover img {
    transform: scale(1.04);
}

.imagen-adicional {
    width: 100%;
    height: 380px;
    overflow: hidden;
    border-radius: var(--borde-redondo) var(--borde-redondo) 0 0;
}

.imagen-adicional img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.imagen-adicional:hover img {
    transform: scale(1.06);
}

/* -------------------------- */
/* PIE DE PÁGINA */
/* -------------------------- */
#main-footer {
    background: var(--color-principal);
    color: var(--color-claro);
    padding: 3rem 0 1.5rem;
}

.footer-contenido {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.2rem;
    padding-bottom: 1.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.logo-mono {
    height: 60px;
    opacity: 0.92;
}

.redes-sociales {
    display: flex;
    gap: 1.8rem;
}

.redes-sociales a {
    color: var(--color-claro);
    transition: var(--transicion);
}

.redes-sociales a:hover {
    color: var(--color-resaltado);
}

.redes-sociales svg {
    width: 32px;
    height: 32px;
    transition: var(--transicion);
}

.redes-sociales a:hover svg {
    transform: scale(1.22);
    filter: drop-shadow(0 0 6px var(--color-resaltado));
}

.copyright {
    text-align: center;
    font-family: 'AlfaqixServo Semibold', sans-serif;
    font-size: 0.98rem;
    color: var(--color-texto-claro);
}

.copyright a:hover {
    color: var(--color-resaltado);
}

/* -------------------------- */
/* MÓVIL / ANDROID */
/* -------------------------- */
@media (max-width: 768px) {
    .menu-hamburguesa {
        display: block;
    }

    .portada-pc {
        display: none;
    }

    .portada-movil {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .portada {
        height: 55vh;
    }

    .contenido-entradas {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .titulo-seccion {
        font-size: 1.9rem;
        margin-bottom: 2.5rem;
    }

    .seccion-noticias {
        margin-top: -50px;
    }

    .carrusel-horizontal {
        padding: 0 35px;
    }

    .tarjeta-noticia {
        flex: 0 0 calc(100% - var(--espacio-tarjetas));
    }

    /* En móvil: también más anchas */
    .tarjeta-partido {
        flex: 0 0 calc(100% - var(--espacio-tarjetas));
        min-width: unset;
        min-height: 320px; /* MISMA ALTURA */
        padding: 1.8rem;
    }

    .equipo img {
        width: 80px; /* Buen tamaño también en Android */
        height: 80px;
    }

    .footer-contenido {
        flex-direction: column;
        gap: 2rem;
    }

    .imagen-adicional {
        height: 240px;
    }
}
