/* ==========================================
   ABASTENSE ARGENTINO - ESTILOS GENERALES
========================================== */

:root {
    --azul: #101d35;
    --azul-claro: #1c3152;
    --azul-hover: #263e63;
    --dorado: #c6a45b;
    --dorado-claro: #e0c681;
    --blanco: #ffffff;
    --gris: #f3f4f6;
    --gris-texto: #687386;
    --negro: #172033;
    --borde: #e5e8ed;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--blanco);
    color: var(--negro);
    line-height: 1.6;
}

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

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

.contenedor {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
}


/* ==========================================
   BARRA SUPERIOR
========================================== */

.barra-superior {
    background: var(--azul);
    color: #d9dfeb;
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.barra-superior-contenido {
    min-height: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.redes-superiores {
    display: flex;
    gap: 20px;
}

.redes-superiores a:hover {
    color: var(--dorado-claro);
}


/* ==========================================
   ENCABEZADO
========================================== */

.encabezado {
    background: var(--blanco);
    border-bottom: 3px solid var(--dorado);
    position: relative;
    z-index: 100;
}

.encabezado-contenido {
    min-height: 105px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.identidad-club {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-shrink: 0;
}

.escudo {
    width: 85px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.escudo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.nombre-club {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.nombre-club strong {
    color: var(--azul);
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 1px;
}

.nombre-club span {
    color: var(--dorado);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 4px;
    margin-top: 5px;
}

.menu-principal {
    display: flex;
    align-items: center;
    gap: 22px;
}

.menu-principal a {
    color: var(--azul);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
    transition: .2s;
}

.menu-principal a:hover {
    color: var(--dorado);
}

.menu-principal .enlace-socios {
    background: var(--azul);
    color: var(--blanco);
    padding: 12px 18px;
    border-bottom: 3px solid var(--dorado);
}

.menu-principal .enlace-socios:hover {
    background: var(--azul-hover);
    color: var(--dorado-claro);
}

.boton-menu {
    display: none;
    background: var(--azul);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 24px;
    padding: 5px 12px;
    cursor: pointer;
}


/* ==========================================
   SECCIONES GENERALES
========================================== */

.seccion {
    padding: 65px 0;
}

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

.encabezado-seccion {
    margin-bottom: 30px;
}

.encabezado-seccion span {
    color: var(--dorado);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.encabezado-seccion h2 {
    color: var(--azul);
    font-size: 31px;
    font-weight: 900;
    line-height: 1.2;
    margin-top: 7px;
}

.encabezado-seccion p {
    color: var(--gris-texto);
    font-size: 14px;
    margin-top: 10px;
}

.boton {
    display: inline-block;
    background: var(--azul);
    color: var(--blanco);
    padding: 13px 23px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    border-bottom: 3px solid var(--dorado);
    transition: .2s;
}

.boton:hover {
    background: var(--azul-hover);
    transform: translateY(-2px);
}


/* ==========================================
   PORTADA PRINCIPAL
========================================== */

.portada {
    min-height: 480px;
    background:
        linear-gradient(90deg, rgba(9,20,39,.95), rgba(9,20,39,.48)),
        linear-gradient(135deg, #263e63, #101d35);
    display: flex;
    align-items: center;
    color: var(--blanco);
    position: relative;
    overflow: hidden;
}

.portada-fondos {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.portada-foto {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.portada-foto.activa {
    opacity: 1;
}

.portada::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(9, 20, 39, .93),
        rgba(9, 20, 39, .58),
        rgba(9, 20, 39, .25)
    );
    pointer-events: none;
}

.portada-contenido {
    position: relative;
    z-index: 2;
    padding: 90px 0;
    max-width: 1240px;
    width: 90%;
    margin: auto;
}

.portada-etiqueta {
    color: var(--dorado-claro);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.portada h1 {
    max-width: 720px;
    font-size: clamp(35px, 5vw, 62px);
    line-height: 1.08;
    font-weight: 900;
    margin-bottom: 22px;
}

.portada p {
    max-width: 570px;
    color: #dce3ef;
    font-size: 15px;
    margin-bottom: 30px;
}


/* ==========================================
   TARJETAS DE NOTICIAS
========================================== */

.grilla-noticias {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.tarjeta-noticia {
    background: var(--blanco);
    border: 1px solid var(--borde);
    transition: .25s;
    overflow: hidden;
}

.tarjeta-noticia:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(16,29,53,.10);
}

.imagen-noticia {
    height: 220px;
    background: linear-gradient(135deg, #dfe4eb, #aeb9c9);
    overflow: hidden;
}

.imagen-noticia img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contenido-noticia {
    padding: 22px;
}

.fecha-noticia {
    color: var(--dorado);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.contenido-noticia h3 {
    color: var(--azul);
    font-size: 17px;
    font-weight: 800;
    margin: 10px 0;
    line-height: 1.4;
}

.contenido-noticia p {
    color: var(--gris-texto);
    font-size: 13px;
}

.grilla-noticias {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.tarjeta-noticia {
    background: var(--blanco);
    border: 1px solid var(--borde);
    border-radius: 10px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.tarjeta-noticia:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(16, 29, 53, .14);
}

.imagen-noticia {
    height: 230px;
    background: #e8edf3;
    overflow: hidden;
}

.imagen-noticia img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

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

.contenido-noticia {
    padding: 23px;
}

.fecha-noticia {
    color: var(--dorado);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.contenido-noticia h3 {
    color: var(--azul);
    font-size: 18px;
    font-weight: 800;
    margin: 12px 0;
    line-height: 1.4;
}

.contenido-noticia p {
    color: var(--gris-texto);
    font-size: 14px;
    line-height: 1.6;
}
/* ==========================================
   PROXIMOS PARTIDOS
========================================== */

.grilla-partidos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.tarjeta-partido {
    background: var(--blanco);
    border: 1px solid var(--borde);
    border-left: 5px solid var(--dorado);
    border-radius: 10px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.tarjeta-partido:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(16, 29, 53, .12);
}

.partido-info span {
    color: var(--dorado);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.partido-info h3 {
    color: var(--azul);
    font-size: 18px;
    font-weight: 800;
    margin: 8px 0;
}

.partido-info p {
    color: var(--gris-texto);
    font-size: 13px;
    margin-top: 5px;
}

.partido-fecha {
    text-align: center;
    background: var(--azul);
    color: var(--blanco);
    min-width: 75px;
    padding: 15px 10px;
    border-radius: 8px;
}

.partido-fecha strong {
    display: block;
    font-size: 27px;
    line-height: 1.2;
}

.partido-fecha span {
    color: var(--dorado-claro);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
  


/* ==========================================
   ACTIVIDADES
========================================== */

.grilla-actividades {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tarjeta-actividad {
    background: var(--azul);
    color: var(--blanco);
    padding: 28px;
    border-bottom: 4px solid var(--dorado);
}
.imagen-actividad {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 20px;
}

.tarjeta-actividad h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.tarjeta-actividad p {
    color: #d2d9e4;
    font-size: 13px;
}


/* ==========================================
   SPONSORS
========================================== */

.grilla-sponsors {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 35px;
}

.tarjeta-sponsor {
    min-width: 140px;
    padding: 15px;
    text-align: center;
    color: var(--azul);
    font-size: 14px;
    font-weight: 800;
}

.tarjeta-sponsor img {
    max-width: 150px;
    max-height: 75px;
    margin: auto;
    object-fit: contain;
}


/* ==========================================
   PIE DE PAGINA
========================================== */

.pie-pagina {
    background: var(--azul);
    color: var(--blanco);
    margin-top: 30px;
}

.pie-contenido {
    padding: 55px 0;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 45px;
}

.pie-contenido h3 {
    color: var(--dorado-claro);
    font-size: 21px;
    font-weight: 900;
}

.pie-contenido h4 {
    color: var(--dorado-claro);
    font-size: 12px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.pie-contenido p,
.pie-contenido a {
    color: #d1d9e6;
    font-size: 12px;
    display: block;
    margin-bottom: 8px;
}

.pie-contenido a:hover {
    color: var(--dorado-claro);
}

.pie-inferior {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 18px 0;
    color: #aeb9c9;
    font-size: 10px;
}


/* ==========================================
   PAGINAS INTERIORES
========================================== */

.encabezado-pagina {
    background: var(--azul);
    color: var(--blanco);
    padding: 65px 0;
    border-bottom: 4px solid var(--dorado);
}

.encabezado-pagina h1 {
    font-size: 38px;
    font-weight: 900;
}

.encabezado-pagina p {
    color: #d1d9e6;
    font-size: 14px;
    margin-top: 10px;
}

.contenido-pagina {
    padding: 55px 0 75px;
    min-height: 300px;
}

.mensaje-vacio {
    background: var(--gris);
    border: 1px dashed #c8ced8;
    padding: 35px;
    color: var(--gris-texto);
    text-align: center;
}


/* ==========================================
   DISEÑO RESPONSIVE - TABLETS
========================================== */

@media (max-width: 1050px) {
    .menu-principal {
        gap: 12px;
    }

    .menu-principal a {
        font-size: 9px;
    }

    .nombre-club strong {
        font-size: 18px;
    }
}


/* ==========================================
   DISEÑO RESPONSIVE - CELULARES
========================================== */

@media (max-width: 768px) {

    .contenedor {
        width: 92%;
    }

    .barra-superior {
        font-size: 8px;
    }

    .encabezado-contenido {
        min-height: 85px;
    }

    .escudo {
        width: 52px;
        height: 61px;
        font-size: 14px;
    }

    .nombre-club strong {
        font-size: 16px;
    }

    .nombre-club span {
        font-size: 9px;
        letter-spacing: 3px;
    }

    .boton-menu {
        display: block;
    }

    .menu-principal {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--azul);
        padding: 15px 5%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,.2);
    }

    .menu-principal.activo {
        display: flex;
    }

    .menu-principal a {
        color: var(--blanco);
        padding: 14px 5px;
        border-bottom: 1px solid rgba(255,255,255,.1);
        font-size: 11px;
    }

    .menu-principal .enlace-socios {
        margin-top: 10px;
        text-align: center;
    }

    .portada {
        min-height: 390px;
    }

    .portada-contenido {
        padding: 65px 0;
    }

    .portada h1 {
        font-size: 37px;
    }

    .seccion {
        padding: 45px 0;
    }

    .encabezado-seccion h2 {
        font-size: 25px;
    }

    .grilla-noticias,
    .grilla-actividades {
        grid-template-columns: 1fr;
    }

    .grilla-partidos {
        grid-template-columns: 1fr;
    }
   .tarjeta-partido {
    padding: 18px;
    gap: 10px;
    }
   
   .partido-info h3 {
    font-size: 16px;
    }

   .partido-fecha {
    min-width: 65px;
    padding: 12px 8px;
    }
    .imagen-noticia {
        height: 210px;
    }

    .pie-contenido {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 0;
    }

    .encabezado-pagina h1 {
        font-size: 30px;
    }
}


/* GALERIA PUBLICA */

.galeria-publica {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 35px;
}

.tarjeta-foto {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tarjeta-foto:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.tarjeta-foto img {
    width: 100%;
    height: 240px;
    object-fit: contain;
    background: #f2f4f8;
    display: block;
}

.tarjeta-foto h3 {
    color: #102b50;
    font-size: 18px;
    padding: 15px 15px 5px;
    margin: 0;
}

.tarjeta-foto p {
    color: #666666;
    font-size: 14px;
    padding: 0 15px 15px;
    margin: 0;
}

@media (max-width: 600px) {
    .galeria-publica {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .tarjeta-foto img {
        height: 220px;
    }
}
/* VISOR DE FOTOGRAFIAS AMPLIADAS */

.visor-fotografia {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.visor-fotografia.visor-activo {
    display: flex;
}

.visor-fotografia img {
    max-width: 95%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 6px;
}

.cerrar-visor {
    position: absolute;
    top: 15px;
    right: 30px;
    background: transparent;
    border: none;
    color: white;
    font-size: 45px;
    cursor: pointer;
}

@media (max-width: 600px) {
    .visor-fotografia {
        padding: 15px;
    }

    .visor-fotografia img {
        max-width: 100%;
        max-height: 85vh;
    }

    .cerrar-visor {
        top: 10px;
        right: 18px;
        font-size: 38px;
    }
}