/* ==========================================================================
   FEDERACIÓ CATALANA DE CB 27 (fccb27.cat)
   Estilos Principales v3.1 - Con Logo Ampliado y Background Cabecera-1.png
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES GLOBALES Y RUTAS DE IMÁGENES
   ========================================================================== */
:root {
    --primary-blue: #003380;
    /* Azul marino corporativo */
    --primary-hover: #002255;
    --accent-yellow: #ffcc00;
    /* Amarillo dorado */
    --text-dark: #001a40;
    /* Texto principal */
    --text-muted: #556677;
    /* Texto secundario */
    --bg-card: #ffffff;
    --border-color: #d0dbe5;
    --font-main: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --max-width: 1200px;
    --radius-card: 10px;

    /* 🖼️ RUTA DE LA IMAGEN DE FONDO Cabecera-1.png */
    --bg-header-img: url('../img/Cabecera-1.png');
}

/* ==========================================================================
   2. RESET Y CUADRÍCULA DE FONDO
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;

    /* Patrón sutil de red técnica en el fondo general */
    background-color: #f7fafc;
    background-image:
        linear-gradient(to right, rgba(0, 51, 128, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 51, 128, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   3. SISTEMA MULTILINGÜE
   ========================================================================== */
.lang {
    display: none !important;
}

body.lang-ca .lang-ca {
    display: block !important;
}

body.lang-es .lang-es {
    display: block !important;
}

body.lang-en .lang-en {
    display: block !important;
}

body.lang-ca span.lang-ca,
body.lang-es span.lang-es,
body.lang-en span.lang-en {
    display: inline !important;
}

/* ==========================================================================
   4. CABECERA SUPERIOR, LOGO Y SELECTOR DE IDIOMAS
   ========================================================================== */
.top-header {
    background-color: #ffffff;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.top-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* 🖼️ Escudo FCCB27 ampliado */
.site-logo {
    height: 160px;
    width: auto;
    object-fit: contain;
    border: none;
    box-shadow: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--primary-blue);
    display: block;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
    margin-top: 3px;
}

/* ==========================================================================
   4. CABECERA SUPERIOR, MARCA Y SELECTOR DE IDIOMAS
   ========================================================================== */
.top-header {
    background-color: #ffffff;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.top-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Escudo oficial FCCB27 */
.site-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
    border: none;
    box-shadow: none;
    display: block;
}

/* 🎯 CAJA EN COLUMNA CON ANCHO COMPLETO PARA FORZAR SALTOS DE LÍNEA */
.logo-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
}

.logo-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--primary-blue, #004080);
    line-height: 1.2;
    display: block !important;
    width: 100% !important;
    /* Fuerza a ocupar toda la fila */
}

.logo-sub {
    font-size: 0.85rem;
    color: var(--text-muted, #555555);
    font-weight: 600;
    display: block !important;
    width: 100% !important;
    /* Fuerza el salto debajo del título */
    margin-top: 2px;
}

.logo-tag-wrapper {
    margin-top: 6px;
    display: block;
}

/* Pastilla de la ECBF */
.ecbf-member-tag-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: var(--primary-blue, #004080) !important;
    background-color: rgba(0, 51, 128, 0.05) !important;
    padding: 0.2rem 0.5rem 0.2rem 0.35rem !important;
    border-radius: 4px !important;
    border: 1px solid rgba(0, 51, 128, 0.18) !important;
    width: fit-content !important;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ecbf-member-tag-link:hover {
    background-color: rgba(0, 51, 128, 0.12) !important;
    border-color: var(--primary-blue, #004080) !important;
}

.ecbf-tag-logo {
    height: 22px !important;
    max-height: 22px !important;
    width: auto !important;
    object-fit: contain !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}

/* Selector de idiomas con estilo corporativo */
.lang-selector {
    display: flex !important;
    gap: 0.4rem !important;
}

.btn-lang {
    background-color: #ffffff !important;
    border: 1px solid var(--border-color, #cccccc) !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    color: var(--text-muted, #555555) !important;
    cursor: pointer !important;
    padding: 0.35rem 0.75rem !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}

.btn-lang:hover {
    color: var(--primary-blue, #004080) !important;
    border-color: var(--primary-blue, #004080) !important;
    background-color: rgba(0, 51, 128, 0.05) !important;
}

.btn-lang.active {
    color: #ffffff !important;
    background-color: var(--primary-blue, #004080) !important;
    border-color: var(--primary-blue, #004080) !important;
}

/* ==========================================================================
   5. BARRA DE NAVEGACIÓN PRINCIPAL
   ========================================================================== */
.main-navbar {
    background-color: var(--primary-blue);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.main-navbar ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 1.8rem;
    padding: 0.75rem 0;
}

.main-navbar a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.main-navbar a:hover,
.main-navbar a.nav-active {
    color: var(--accent-yellow);
}

/* ==========================================================================
   6. HERO BANNER CON APLICACIÓN DE Cabecera-1.png
   ========================================================================== */
.hero-section {
    position: relative;
    text-align: center;
}

/* Aplicación de la imagen de fondo Cabecera-1.png cargada mediante la variable --bg-header-img */
.hero-with-bg {
    background: var(--bg-header-img) center/cover no-repeat;
}

/* Capa de sobreposición (Overlay) ajustada para dar la máxima visibilidad al background */
.hero-overlay {
    /* Opacidad reducida al 45% (0.45) para que Cabecera-1.png resalte con nitidez */
    background-color: rgba(247, 250, 252, 0.45);
    padding: 4.5rem 0 3.5rem 0;
    transition: background-color 0.3s ease;
}

.hero-section h1 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    font-weight: 800;
    margin-bottom: 1rem;
    /* Sombreado de texto suave para asegurar contraste sobre la imagen de fondo */
    text-shadow: 0px 2px 4px rgba(255, 255, 255, 0.95);
}

.hero-section p {
    font-size: 1.15rem;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto 2rem auto;
    font-weight: 600;
    /* Sombreado de lectura sobre fondo con textura */
    text-shadow: 0px 1px 3px rgba(255, 255, 255, 0.95);
}

/* ==========================================================================
   BOTONES DE ACCIÓN DENTRO DEL HERO (ESPACIADOS Y CENTRADOS)
   ========================================================================== */
.hero-container-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Contenedor general que separa la fila superior del botón ancho */
.hero-buttons-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    /* Separación vertical entre la fila 1 y el botón ancho */
    width: 100%;
}

/* Fila superior para los dos botones principales */
.hero-buttons-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    /* Separación horizontal entre botones */
    flex-wrap: wrap;
}

/* Contenedor del botón ancho inferior */
.hero-buttons-full {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 0.25rem;
    /* Margen de seguridad vertical */
}

/* Estilos base de las píldoras/botones */
.btn-pill {
    display: inline-block;
    padding: 0.65rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: #ffffff;
    border: 2px solid var(--primary-blue);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    /* Fondo blanco semitransparente para el botón secundario */
    background-color: rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: #ffffff;
}

/* ==========================================================================
   7. SECCIÓN DE TARJETAS FLOTANTES
   ========================================================================== */
.cards-section {
    padding: 3rem 0 5rem 0;
}

.section-title-center {
    text-align: center;
    color: var(--text-dark);
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    font-weight: 700;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.ecbf-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 51, 128, 0.06);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary-blue);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ecbf-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 51, 128, 0.12);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.ecbf-card h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.ecbf-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.doc-links {
    margin-top: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.doc-link {
    color: var(--primary-blue);
    font-weight: bold;
    text-decoration: none;
    font-size: 0.9rem;
}

.doc-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   ESTILOS PARA EL PIE DE PÁGINA Y ENLACE DE LA ECBF
   ========================================================================== */
/* Asegura que el enlace de la cabecera no tenga subrayado molesto */
a.ecbf-member-tag {
    text-decoration: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

a.ecbf-member-tag:hover {
    background-color: rgba(0, 51, 128, 0.12) !important;
    border-color: var(--primary-blue) !important;
}

/* Pie de página */
.site-footer {
    background-color: #1a1a1a;
    color: #cccccc;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.footer-ecbf {
    font-size: 0.85rem;
    color: #a0a0a0;
}

.footer-ecbf a {
    color: var(--eu-yellow, #ffcc00);
    text-decoration: none;
    font-weight: 700;
}

.footer-ecbf a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   9. ESTILOS DE LA PÁGINA DE COMUNITAT / CLUBS (ESTILO ECBF NETWORK)
   ========================================================================== */
.page-content {
    padding: 3rem 1.5rem 5rem 1.5rem;
}

.intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.intro-text h2 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.intro-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Rejilla de tarjetas de la red de clubs */
.clubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Tarjeta individual de club */
.club-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card, 10px);
    padding: 2.2rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 51, 128, 0.04);
}

.club-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 51, 128, 0.12);
    border-color: var(--primary-blue);
}

.club-badge {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.club-logo {
    max-height: 55px;
    width: auto;
    object-fit: contain;
}

.club-icon-placeholder {
    font-size: 2.5rem;
}

.club-location {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.club-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.club-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Botones de acción */
.btn-visit {
    margin-top: auto;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.88rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-visit:hover {
    background-color: var(--primary-blue);
    color: #ffffff;
}

/* Tarjeta especial "Uneix-te / Inscribir club" (Dashed) */
.join-card {
    background-color: #f0f5ff;
    border: 2px dashed var(--primary-blue);
}

.btn-join {
    background-color: var(--primary-blue);
    color: #ffffff;
}

.btn-join:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* ==========================================================================
   10. ESTILOS DE LA PÁGINA DE DOCUMENTACIÓ / DESCARGAS
   ========================================================================== */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.doc-card {
    background: #ffffff;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: var(--radius-card, 10px);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 51, 128, 0.04);
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 51, 128, 0.12);
    border-color: var(--primary-blue, #004080);
}

/* Tarjeta destacada (Solicitud de Adhesión) */
.highlight-doc {
    border: 2px solid var(--primary-blue, #004080);
    background-color: #f8fbff;
}

.doc-icon-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 1rem;
}

.doc-icon {
    font-size: 2.2rem;
}

.doc-type-badge {
    background-color: #e53935;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.word-badge {
    background-color: #1976d2;
}

.doc-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-blue, #004080);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.doc-desc {
    font-size: 0.9rem;
    color: var(--text-muted, #555555);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* Botones de Descarga */
.doc-btn-group {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    margin-top: auto;
}

.btn-download {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 0.65rem 1rem;
    background-color: var(--primary-blue, #004080);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    transition: background-color 0.2s ease;
    margin-top: auto;
}

.btn-download:hover {
    background-color: #002b57;
}

.btn-secondary-download {
    background-color: #ffffff;
    color: var(--primary-blue, #004080) !important;
    border: 1px solid var(--primary-blue, #004080);
}

.btn-secondary-download:hover {
    background-color: rgba(0, 51, 128, 0.05);
}

/* Caja informativa de tramitación */
.doc-info-box {
    background-color: #f0f5ff;
    border-left: 5px solid var(--primary-blue, #004080);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.doc-info-box h3 {
    margin-top: 0;
    color: var(--primary-blue, #004080);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.doc-info-box p {
    color: var(--text-muted, #555555);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}
/* Estructura de acciones acumuladas en tarjetas de documentos */
.doc-actions-wrapper {
    width: 100%;
    margin-top: auto;
    display: flex;
    flex-direction: column;
}

/* Botón destacado para el Acta Fundacional */
.btn-acta {
    background-color: #003366 !important;
    border: 1px solid #002244;
}

.btn-acta:hover {
    background-color: var(--primary-blue, #004080) !important;
}

/* Enlace de ayuda (1) */
.doc-help-link {
    margin-top: 0.85rem;
    padding-top: 0.6rem;
    border-top: 1px dashed var(--border-color, #e0e0e0);
    text-align: center;
    width: 100%;
}

.help-trigger {
    color: var(--primary-blue, #004080);
    font-size: 0.82rem;
    text-decoration: underline;
    transition: color 0.2s ease;
    display: inline-block;
}

.help-trigger:hover {
    color: #e53935;
    /* Cambia a rojo sutil al pasar el cursor */
}
/* Enlace de correo electrónico destacado en amarillo para dudas */
.doc-help-link a.yellow-mail-link {
    color: #d99b00 !important;
    /* Amarillo oscuro/dorado corporativo accesible sobre fondo claro */
    font-weight: 700;
    text-decoration: underline;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.doc-help-link a.yellow-mail-link:hover {
    color: var(--primary-blue, #004080) !important;
    text-decoration: none;
}
/* ==========================================================================
   11. NUEVAS FUNCIONALIDADES: BOTÓN HERO ANCHO Y MÓDULO NOTÍCIES
   ========================================================================== */

/* Botón Ancho del Hero */
.btn-full-width {
    display: inline-block;
    width: 100%;
    max-width: 520px;
    padding: 0.85rem 1.5rem;
    background-color: var(--primary-blue, #004080);
    color: #ffffff !important;
    border: 2px solid var(--primary-blue, #004080);
    font-weight: 800;
    text-align: center;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 64, 128, 0.2);
}

.btn-full-width:hover {
    background-color: #002b57;
    border-color: #002b57;
    transform: translateY(-2px);
}

/* Barra de Filtros de Noticias (Estilo ECBF) */
.filter-bar {
    background: #ffffff;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
    margin-bottom: 2rem;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.45rem 1rem;
    border: 1px solid var(--primary-blue, #004080);
    background: #ffffff;
    color: var(--primary-blue, #004080);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-blue, #004080);
    color: #ffffff;
}

.search-box input {
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    border-radius: 20px;
    width: 240px;
    font-size: 0.88rem;
    outline: none;
}

.search-box input:focus {
    border-color: var(--primary-blue, #004080);
}

/* Rejilla y Tarjetas de Noticias */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 51, 128, 0.12);
}

.partner-card {
    border: 2px solid var(--primary-blue, #004080);
    background-color: #f8fbff;
}

.news-img-wrapper {
    height: 180px;
    background: #f0f4f8;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-img.contain-img {
    object-fit: contain;
    padding: 1.5rem;
}

.news-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    font-size: 0.78rem;
    color: #777777;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.news-tag {
    color: var(--primary-blue, #004080);
}

.highlight-tag {
    color: #d99b00;
}

.btn-read {
    align-self: flex-start;
    text-decoration: none;
    color: var(--primary-blue, #004080);
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: auto;
    padding-top: 0.75rem;
}

.btn-read:hover {
    text-decoration: underline;
}


/* ==========================================================================
   100. ADAPTACIÓN RESPONSIVE EXCLUSIVA PARA MÓVILES (PANTALLAS < 768px)
   ========================================================================== */
@media (max-width: 768px) {

    /* --- 1. BARRA DE NAVEGACIÓN AZUL RESPONSIVE (SCROLL HORIZONTAL NATIVO) --- */
    .main-navbar .container {
        padding: 0 0.5rem;
    }

    .main-navbar ul {
        display: flex !important;
        flex-wrap: nowrap !important;
        /* Impide que las pestañas salten de línea */
        overflow-x: auto !important;
        /* Permite deslizar horizontalmente con el dedo */
        -webkit-overflow-scrolling: touch;
        /* Desplazamiento fluido en iOS / Safari */
        justify-content: flex-start !important;
        padding: 0.5rem 0;
        gap: 0.25rem;
        scrollbar-width: none;
        /* Oculta la barra de desplazamiento en Firefox */
    }

    /* Oculta la barra de scroll visual en Chrome, Safari, Edge y Opera */
    .main-navbar ul::-webkit-scrollbar {
        display: none;
    }

    .main-navbar a {
        white-space: nowrap !important;
        /* Mantiene los textos en una sola línea */
        padding: 0.5rem 0.85rem !important;
        font-size: 0.82rem !important;
    }

    /* --- 2. CABECERA SUPERIOR Y MARCA CENTRADA --- */
    .top-header-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 1rem;
    }

    .logo-link {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }

    /* Ajuste proporcionado del escudo FCCB27 para móviles */
    .site-logo {
        height: 90px !important;
        max-height: 90px !important;
        width: auto !important;
    }

    .logo-text {
        align-items: center;
    }

    .logo-title {
        font-size: 1.3rem;
    }

    /* --- 3. DISTINTIVO INSTITUCIONAL ECBF (GARANTÍA ANTI-DESBORDE MÓVIL) --- */
    .top-header .ecbf-member-tag {
        margin: 4px auto 0 auto !important;
    }

    .top-header .ecbf-member-tag img.ecbf-tag-logo {
        height: 20px !important;
        max-height: 20px !important;
        min-height: 20px !important;
        width: auto !important;
        max-width: 26px !important;
        object-fit: contain !important;
        display: inline-block !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
    }

    /* --- 4. SELECTOR DE IDIOMAS --- */
    .lang-selector {
        justify-content: center;
        margin-top: 0.25rem;
    }
}