/*
=================================================================
 HOJA DE ESTILOS PRINCIPAL Y UNIFICADA (Versión Corporativa)
=================================================================
 Versión: 3.3 (Corregida)
 Fecha: 23/07/2025
 Descripción: Variables de color y fuentes adaptadas a la
 imagen corporativa del Club Suanzes. Se corrigen errores en la
 aplicación de variables de color.
=================================================================
*/

/* --- 1. CONFIGURACIÓN GLOBAL Y VARIABLES --- */
@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Poppins:wght@400;500&display=swap');

:root { 
    /* Colores Corporativos */
    --club-azul-oscuro-rgb: 0, 51, 102;
    --club-verde-rgb: 139, 195, 74;
    --club-azul-claro-rgb: 79, 195, 247;
    --club-amarillo-rgb: 253, 216, 53;

    /* Asignación a variables de Bootstrap (para compatibilidad) */
    --bs-primary-rgb: var(--club-azul-oscuro-rgb);
    --bs-success-rgb: var(--club-verde-rgb);
    --bs-secondary-rgb: var(--club-azul-claro-rgb);

    /* Colores en formato HEX para uso directo */
    --club-azul-oscuro: #003366;
    --club-verde: #8bc34a;
    --club-azul-claro: #4fc3f7;
    --club-amarillo: #fdd835;
    --club-blanco: #ffffff;

    /* Grises y Fuentes */
    --bs-gris-oscuro: #333333;
    --bs-gris-claro: #F4F4F4;
    --bs-blanco: #FFFFFF;
    --fuente-principal: 'Poppins', sans-serif;
    --fuente-titulos: 'Montserrat', sans-serif;
}  

/* --- 2. ESTILOS BASE Y RESET --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--fuente-principal);
    font-size: 16px;
    line-height: 1.7;
    color: var(--bs-gris-oscuro);
    background-color: var(--bs-blanco);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- 3. TIPOGRAFÍA --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--fuente-titulos);
    color: var(--club-azul-oscuro);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }

a {
    color: var(--club-verde);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--club-azul-oscuro);
}
   

/* --- 4. COMPONENTES REUTILIZABLES (CORREGIDO) --- */
.btn {
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--club-blanco); /* Color de texto blanco por defecto para botones */
}
.btn-primary { 
    background-color: var(--club-azul-oscuro); 
    border-color: var(--club-azul-oscuro); 
}
.btn-primary:hover { 
    background-color: #2c6b9a; 
    border-color: #2c6b9a; 
    transform: translateY(-2px); 
}
.btn-secondary { 
    background-color: var(--club-verde); 
    border-color: var(--club-verde); 
}
.btn-secondary:hover { 
    background-color: #6da82a; 
    border-color: #6da82a; 
    transform: translateY(-2px); 
}

.seccion-fondo-claro {
    background-color: var(--bs-gris-claro);
    padding: 80px 0;
}

/*
=================================================================
 # CABECERA (Top, Menú, Slider) - SECCIÓN CORREGIDA
=================================================================
*/

header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    background-color: var(--bs-blanco);
}

/* --- Barra Superior --- CORRECCIÓN FINAL --- */
.cabecera-top {
    background-color: transparent;
    height: 40px;
    width: 100%;
}

.cabecera-top .container {
    height: 100%;
    padding: 0 1rem;
}

.top-grupo {
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 60%; 
}

.top-grupo + .top-grupo {
    border-left: 1px solid #555;
}

.cabecera-top a {
    color: var(--bs-gris-oscuro);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.cabecera-top a:hover {
    /* CORREGIDO: Usando la variable HEX correcta */
    color: var(--club-verde);
}

.top-grupo.redes-sociales a {
    font-size: 0.9rem;
    margin-left: 18px;
}

.top-grupo.info-iconos a {
    margin: 0 10px;
}

.top-grupo.info-telefono a {
    color: var(--bs-gris-oscuro); 
    font-weight: 500;
    font-size: 0.9rem;
}

.top-grupo.info-telefono a:hover {
    /* CORREGIDO: Usando la variable HEX correcta */
    color: var(--club-verde); 
}

/* --- Barra de Menú --- */
.navbar {
    height: 70px;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.navbar > .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar-brand {
    margin-top: -35px;
    padding: 5px; 
    transition: transform 0.3s ease-in-out;
}

.navbar-brand:hover {
    transform: translateY(-5px) scale(1.05);
}

.navbar-brand img {
    height: 90px; 
    width: auto;
    transition: height 0.3s ease-in-out;
}

/* --- Estilos del Menú Mejorados (CORREGIDO) --- */
.navbar-nav .nav-link {
    color: var(--bs-gris-oscuro);
    font-weight: 500;
    margin: 0 5px;
    padding: 10px 15px;
    border-radius: 5px;
    position: relative; 
    overflow: hidden; 
    transition: color 0.3s ease;
}

/* Efecto de subrayado animado */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px; 
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    /* CORREGIDO: Usando la variable HEX */
    background-color: var(--club-azul-oscuro);
    transition: width 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover {
    /* CORREGIDO: Usando la variable HEX */
    color: var(--club-azul-oscuro); 
}

.navbar-nav .nav-link:hover::after {
    width: 70%; 
}

/* Efecto para los menús desplegables */
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.dropdown-item {
    padding: 10px 20px;
    transition: all 0.2s ease-in-out;
}

.dropdown-item:hover, .dropdown-item:focus {
    color: var(--bs-blanco);
    /* CORREGIDO: Usando la variable HEX */
    background-color: var(--club-azul-oscuro);
    padding-left: 25px; 
}
/* --- Fin de Estilos del Menú Mejorados --- */


/* --- Hero Banner (Slider/Video) - ESTILOS CORREGIDOS --- */
.hero-banner {
    position: relative;
    height: 70vh;
    min-height: 450px;
    width: 100%;
    background-color: var(--bs-gris-oscuro);
}

.hero-banner .carousel,
.hero-banner .carousel-inner,
.hero-banner .carousel-item {
    height: 100%;
}

.hero-banner .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.hero-banner .carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.45);
    padding: 2rem;
    text-align: center;
}

.hero-banner .carousel-caption h1 {
    font-size: 3.2rem;
    color: var(--bs-blanco);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.hero-banner .carousel-caption .lead, 
.hero-banner .carousel-caption p { 
    font-size: 1.4rem;
    max-width: 750px;
    color: var(--bs-blanco);
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.hero-banner .carousel-caption .cta-buttons .btn {
    margin: 0 10px;
}

/*
=================================================================
 # PIE DE PÁGINA (Footer)
=================================================================
*/
.footer-page { 
    background-color: var(--club-azul-oscuro); 
    color: #ccc; 
    font-size: 0.95rem; 
}
.footer-page .capaMapa { 
    height: 350px; 
    width: 100%; 
    border: none; 
    filter: grayscale(100%) opacity(0.7);
    transition: filter 0.3s ease;
}
.footer-page .capaMapa:hover {
    filter: grayscale(0%) opacity(1);
}

.footer-page .footer-title { 
    color: var(--club-blanco); 
    font-family: var(--fuente-titulos); 
    margin-bottom: 1.25rem; 
    font-weight: 700;
    border-bottom: 2px solid var(--club-verde);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer-page a { 
    color: #ccc;
    text-decoration: none;
}

.footer-page .footer-links li a {
    transition: all 0.2s ease-in-out;
    display: inline-block;
}

.footer-page .footer-links li a:hover { 
    color: var(--club-verde); 
    transform: translateX(5px);
}

.footer-page .logo-pie { 
    max-width: 180px; 
    padding: 10px;
    border-radius: 8px;
}

.footer-page .list-unstyled li { 
    padding: 5px 0; 
}

.footer-page address { 
    line-height: 1.8; 
}
.footer-page .footer-icon {
    vertical-align: middle;
    margin-right: 8px;
    color: var(--club-verde);
}

.footer-page .social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--club-blanco);
    margin-right: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.footer-page .social-icons a:hover {
    background-color: var(--club-verde);
    transform: translateY(-3px);
}

.footer-bottom { 
    background-color: #002244;
    padding: 15px 0; 
    font-size: 0.85rem; 
    color: #aaa; 
}
.footer-bottom a {
    color: #aaa;
}
.footer-bottom a:hover {
    color: var(--club-amarillo);
}

/*
=================================================================
 # ESTILOS RESPONSIVE - CORREGIDOS
=================================================================
*/
@media (max-width: 991.98px) {
    
    .cabecera, .cabecera-top { 
        display: none; 
      
        
    }
    .navbar { height:80px; }
    .navbar-brand { margin-top: 0px; } 
    .navbar-brand img { height: 70px; }
}

@media (max-width: 768px) {
    .hero-banner { height: 65vh; }
    
    .hero-banner .carousel-caption h1 {
        font-size: 2.2rem;
    }
    .hero-banner .carousel-caption .lead,
    .hero-banner .carousel-caption p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    .hero-banner .carousel-caption .cta-buttons {
        display: flex;
        flex-direction: column;
        width: 90%;
    }
    .hero-banner .carousel-caption .cta-buttons .btn {
        margin: 8px 0;
    }

    .footer-page .text-md-start,
    .footer-page .text-md-end {
        text-align: center !important;
        margin-bottom: 1rem;
    }
}

/*///////////////////////////////////////// COLABORADORES ////////////////////////////////////////*/
   /* Estilos para el contenedor de colaboradores */
     /* Estilos para el contenedor de colaboradores */
    .colaboradores-section {
        padding: 60px 0;
        background-color: #f8f9fa; /* Un fondo suave para destacar la sección */
    }
    .colaboradores-section h2 {
        text-align: center;
        margin-bottom: 40px;
        font-weight: 700;
    }
    /* Estilos para los logos, tanto en estático como en carrusel */
    .colaboradores-section .logo-item { /* Se añade .colaboradores-section para más especificidad */
        display: flex;
        align-items: center;
        justify-content: center;
        height: 120px; /* Altura fija para alinear logos */
        padding: 15px;
        filter: grayscale(100%); /* Logos en blanco y negro por defecto */
        transition: filter 0.3s ease, transform 0.3s ease;
    }
    .colaboradores-section .logo-item:hover {
        filter: grayscale(0%); /* Color al pasar el ratón */
        transform: scale(1.1); /* Efecto de zoom sutil */
    }
    .colaboradores-section .logo-item img {
        max-width: 100%;
        max-height: 90px; /* Altura máxima para que no se desborden */
        width: auto;
        height: auto;
    }
    
    /* --- ESTILOS ESPECÍFICOS PARA EL CARRUSEL DE COLABORADORES --- */
    #colaboradoresCarousel .carousel-inner {
        display: flex;
    }
    #colaboradoresCarousel .carousel-item {
        display: block;
        margin-right: 0;
        flex: 0 0 calc(100% / 4); /* Muestra 4 logos por slide en escritorio */
    }
    #colaboradoresCarousel .carousel-control-prev, 
    #colaboradoresCarousel .carousel-control-next {
        width: 5%;
    }
    #colaboradoresCarousel .carousel-control-prev-icon, 
    #colaboradoresCarousel .carousel-control-next-icon {
        background-color: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        padding: 20px;
    }

    /* Responsive: en pantallas más pequeñas, se muestran menos logos */
    @media (max-width: 992px) {
        #colaboradoresCarousel .carousel-item {
            flex: 0 0 calc(100% / 3); /* 3 logos en tablets */
        }
    }
    @media (max-width: 768px) {
        #colaboradoresCarousel .carousel-item {
            flex: 0 0 calc(100% / 2); /* 2 logos en móviles grandes */
        }
    }
    /*//////////////////////////FIN DE COLABORADORES//////////////////////////*/

    /*
=================================================================
 # VISTA DE ARTÍCULO INDIVIDUAL (NOTICIAS)
=================================================================
*/

.vista-articulo {
    background-color: var(--bs-blanco);
}

/* --- Cabecera del Artículo --- */
.articulo-header h1 {
    font-size: 2.6rem; /* Un poco más pequeño que el H1 del banner */
    font-weight: 700;
    color: var(--club-azul-oscuro);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.articulo-header .lead {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 1.5rem;
    font-family: var(--fuente-principal);
}

/* --- Metadatos y Compartir --- */
.articulo-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.fecha-publicacion {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.social-share span {
    margin-right: 10px;
    vertical-align: middle;
}

.social-share a {
    color: #888;
    font-size: 1rem;
    margin: 0 6px;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.social-share a:hover {
    color: var(--club-verde);
    transform: scale(1.2);
}

.articulo-imagen-destacada img {
    /* Fuerza a la imagen a ocupar el 100% del ancho de su contenedor <figure> */
    width: 100%; 
    border-radius: 8px;
    
    /* * Opcional pero recomendado:
     * Asegura que la imagen cubra el área sin deformarse, recortando
     * el exceso si las proporciones no coinciden perfectamente.
     * Puedes ajustar 'height' en la etiqueta <figure> si lo necesitas.
    */
    object-fit: cover;
}

.articulo-contenido {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.articulo-contenido p {
    margin-bottom: 1.5em;
}

.articulo-contenido h2,
.articulo-contenido h3,
.articulo-contenido h4 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--club-azul-oscuro);
}

.articulo-contenido a {
    color: var(--club-verde);
    text-decoration: underline;
    font-weight: 500;
}

.articulo-contenido a:hover {
    color: var(--club-azul-oscuro);
}

.articulo-contenido blockquote {
    border-left: 4px solid var(--club-verde);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
}

/* --- Estilos para Responsive --- */
@media (max-width: 767px) {
    .articulo-header h1 {
        font-size: 2rem;
    }

    .articulo-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .social-share {
        margin-top: 0.75rem;
    }
}