/* =========================================
   1. VARIABLES DE COLOR (TEMA OSCURO - POR DEFECTO)
   ========================================= */
:root {
    --rojo-pasion: #D91023;
    --bg-principal: #000000;
    --bg-secundario: #111111;
    --bg-navbar: rgba(0, 0, 0, 0.65);
    --texto-principal: #F5F5F5;
    --texto-secundario: #AAAAAA;
    --borde-color: #333333;
    --input-bg: #050505;
    --bg-footer: #0a0a0a;
    --linea-footer: #333333;
}

/* =========================================
   2. VARIABLES DE COLOR (TEMA CLARO)
   ========================================= */
body.modo-claro {
    --bg-principal: #F8F9FA;
    --bg-secundario: #FFFFFF;
    --bg-navbar: rgba(255, 255, 255, 0.75);
    --texto-principal: #212529;
    --texto-secundario: #6C757D;
    --borde-color: #DEE2E6;
    --input-bg: #FFFFFF;
    --bg-footer: #E9ECEF;
    --linea-footer: #CED4DA;
}

/* =========================================
   3. ESTILOS BASE Y "ELIMINADOR" DEL BORDE NEGRO
   ========================================= */
*,
*::before,
*::after {
    box-sizing: border-box !important;
    /* Obliga a que los márgenes se calculen hacia adentro */
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
    /* Bloqueo absoluto del desbordamiento horizontal */
    position: relative;
}

body {
    background-color: var(--bg-principal);
    color: var(--texto-principal);
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1,
h2,
h3,
.impact-text {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

/* =========================================
   4. NAVEGACIÓN Y BOTÓN TEMA
   ========================================= */
.navbar {
    background-color: var(--bg-navbar);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    max-width: 100vw;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(217, 16, 35, 0.4);
    transition: all 0.4s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-logo {
    height: 50px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--texto-principal);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1001;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-icons a {
    color: var(--texto-principal);
    font-size: 20px;
    transition: 0.3s;
}

.social-icons a:hover {
    color: var(--rojo-pasion);
    transform: scale(1.2);
}

.btn-tema {
    background: transparent;
    border: 2px solid var(--texto-secundario);
    color: var(--texto-principal);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-tema:hover {
    border-color: var(--rojo-pasion);
    color: var(--rojo-pasion);
    transform: rotate(45deg);
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    color: var(--texto-principal);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--rojo-pasion);
}

.nav-links .btn-nav {
    background: linear-gradient(135deg, var(--rojo-pasion), #ff1e38);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-links .btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(217, 16, 35, 0.4);
    color: white;
}

/* =========================================
   5. SECCIÓN HERO (FOTO DE INICIO)
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.45)), var(--bg-img, url('../images/principal.jpg'));
    background-size: cover;
    background-position: center;
    z-index: -1;
    animation: zoomInOut 25s infinite alternate ease-in-out;
}

@keyframes zoomInOut {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero h1 {
    font-size: 5rem;
    margin: 0;
    color: #FFFFFF;
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.9);
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.5rem;
    color: #E0E0E0;
    max-width: 600px;
    margin-bottom: 40px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-principal {
    background: linear-gradient(135deg, var(--rojo-pasion), #ff1e38);
    color: white;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(217, 16, 35, 0.4);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-principal::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
    z-index: 1;
}

.btn-principal:hover::after {
    left: 150%;
}

.btn-principal:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(217, 16, 35, 0.6);
    color: white;
}

/* =========================================
   6. MARCADOR DINÁMICO
   ========================================= */
.marcador-banner {
    background-color: var(--rojo-pasion);
    color: white;
    padding: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    flex-wrap: wrap;
    width: 100%;
}

.flex-marcador {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.escudo-mini {
    height: 45px;
    vertical-align: middle;
}

/* =========================================
   6.1 LISTA DE PRÓXIMOS PARTIDOS (SECUNDARIA)
   ========================================= */
.lista-proximos-banner {
    background-color: var(--bg-secundario);
    border-bottom: 2px solid var(--borde-color);
    padding: 15px 20px;
    width: 100%;
}

.lista-proximos-titulo {
    text-align: center;
    font-family: 'Oswald', sans-serif;
    color: var(--texto-secundario);
    font-size: 0.95rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.lista-proximos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.proximo-item {
    background-color: var(--bg-principal);
    border: 1px solid var(--borde-color);
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--texto-secundario);
    transition: 0.3s;
}

.proximo-item:hover {
    border-color: var(--rojo-pasion);
    color: var(--texto-principal);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.proximo-equipos {
    color: var(--texto-principal);
    font-weight: 600;
}

.proximo-fecha i,
.proximo-lugar i {
    color: var(--rojo-pasion);
    margin-right: 5px;
}

/* =========================================
   7. SECCIONES: VALORES E IDENTIDAD
   ========================================= */
.valores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.valor-caja {
    background: var(--bg-secundario);
    padding: 40px 20px;
    border-radius: 12px;
    border: 1px solid var(--borde-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.valor-caja:hover {
    transform: translateY(-10px);
    border-color: var(--rojo-pasion);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.valor-caja i {
    font-size: 3.5rem;
    color: var(--rojo-pasion);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.valor-caja:hover i {
    transform: scale(1.1);
}

.valor-caja h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--texto-principal);
}

.valor-caja p {
    color: var(--texto-secundario);
    line-height: 1.6;
}

.identidad-section {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--bg-principal);
    width: 100%;
}

.identidad-section h2 {
    font-size: 3rem;
    color: var(--texto-principal);
    margin-bottom: 10px;
}

.identidad-section p {
    color: var(--texto-secundario);
    margin-bottom: 40px;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.foto-identidad {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    border: 2px solid var(--borde-color);
    transition: 0.3s;
    filter: grayscale(40%);
}

.foto-identidad:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
    border-color: var(--rojo-pasion);
}

/* =========================================
   8. HORARIOS DE ENTRENAMIENTO
   ========================================= */
.horarios-section {
    background-color: var(--bg-secundario);
    padding: 70px 20px;
    text-align: center;
    border-top: 1px solid var(--borde-color);
    width: 100%;
}

.horarios-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.horarios-container h2 {
    font-size: 2.5rem;
    color: var(--texto-principal);
    margin-bottom: 20px;
}

.horarios-container h2 i {
    color: var(--rojo-pasion);
    margin-right: 15px;
}

.subtitulo-horario {
    color: var(--texto-secundario);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.campo-destacado {
    color: var(--rojo-pasion);
    font-weight: bold;
    margin-top: 10px;
    font-size: 1.1rem;
}

.dias-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.dia-card {
    background-color: var(--bg-principal);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--borde-color);
    flex: 1;
    min-width: 280px;
    transition: 0.3s;
    border-top: 4px solid var(--rojo-pasion);
}

.dia-card h3 {
    color: var(--rojo-pasion);
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.hora {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--texto-principal);
    margin-bottom: 10px;
    font-family: 'Oswald', sans-serif;
}

.lugar {
    color: var(--texto-secundario);
    font-size: 0.9rem;
}

.nota-horario {
    color: var(--texto-secundario);
    font-style: italic;
    margin-top: 20px;
    font-size: 0.95rem;
}

/* Efecto hover de las tarjetas de horario */
.dia-card:hover {
    transform: translateY(-10px);
    border-color: var(--rojo-pasion);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Color rojo para el icono del texto informativo y mejor interlineado */
.nota-horario {
    line-height: 1.6;
}

.nota-horario i {
    color: var(--rojo-pasion);
    margin-right: 8px;
}

/* =========================================
   9. FORMULARIO DE RECLUTAMIENTO
   ========================================= */
.reclutamiento-section {
    background-color: var(--bg-secundario);
    padding: 80px 20px;
    border-top: 1px solid var(--borde-color);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 80%;
    opacity: 0.2;
    pointer-events: none;
    z-index: 1;
}

body.modo-claro .watermark {
    opacity: 0.08;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    width: 100%;
}

.form-container h2 {
    font-size: 3rem;
    text-align: center;
    color: var(--rojo-pasion);
    margin-bottom: 10px;
}

.form-container>p {
    text-align: center;
    color: var(--texto-secundario);
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--texto-secundario);
}

input,
textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--input-bg);
    border: 1px solid var(--borde-color);
    color: var(--texto-principal);
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    transition: 0.3s;
}

input:focus,
textarea:focus {
    border-color: var(--rojo-pasion);
    outline: none;
}

.flex-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.flex-row>div {
    flex: 1;
}

.checkbox-experiencia {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.checkbox-experiencia input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

.checkbox-experiencia label {
    margin: 0;
    cursor: pointer;
    font-size: 1rem;
    color: var(--texto-principal);
}

.btn-submit {
    background-color: var(--rojo-pasion);
    color: white;
    padding: 18px;
    border: none;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 1.2rem;
    margin-top: 10px;
    font-family: 'Oswald', sans-serif;
    transition: 0.3s;
}

.btn-submit:hover {
    background-color: var(--texto-principal);
    color: var(--bg-principal);
}

/* =========================================
   10. FOOTER (PIE DE PÁGINA)
   ========================================= */
.footer-club {
    background-color: var(--bg-footer);
    border-top: 4px solid var(--rojo-pasion);
    padding: 60px 20px 40px 20px;
    width: 100%;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    width: 100%;
}

.footer-col {
    flex: 1;
    min-width: 280px;
}

.footer-col h3 {
    color: var(--texto-principal);
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.footer-col p {
    color: var(--texto-secundario);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    border-bottom: 1px solid var(--linea-footer);
    padding: 12px 0;
    display: block;
}

.footer-links a {
    color: var(--texto-secundario);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--rojo-pasion);
}

.footer-links a.link-destacado {
    color: var(--rojo-pasion);
    font-weight: 600;
}

.social-footer {
    display: flex;
    gap: 15px;
}

.social-footer a {
    background-color: var(--texto-principal);
    color: var(--bg-footer);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: 0.3s;
}

.social-footer a:hover {
    background-color: var(--rojo-pasion);
    color: white;
    transform: translateY(-3px);
}

/* =========================================
   11. BANNER DE COOKIES
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-navbar);
    color: var(--texto-principal);
    padding: 15px 30px;
    display: none;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    border-top: 1px solid var(--rojo-pasion);
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    flex: 1;
    padding-right: 20px;
}

.btn-cookie {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: bold;
}

/* =========================================
   12. ADAPTACIÓN MÓVIL (BLOQUEO TOTAL DEL BORDE)
   ========================================= */
@media (max-width: 900px) {

    /* Navbar ajustada */
    .navbar {
        padding: 15px 20px;
        width: 100%;
    }

    .social-icons a {
        display: none;
    }

    .social-icons {
        order: 2;
        margin-left: auto;
        margin-right: 15px;
    }

    .menu-toggle {
        display: block;
        order: 3;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-navbar);
        padding: 20px 0;
        border-bottom: 2px solid var(--rojo-pasion);
        text-align: center;
        gap: 20px;
        transform: none;
    }

    .nav-links.active {
        display: flex;
    }

    /* Hero */
    .hero {
        padding-top: 80px;
    }

    .hero::before {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.45)), url('../images/principal-mobile.png');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center 20%;
        animation: none;
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 15px;
        line-height: 1.1;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 10px;
        margin-bottom: 30px;
    }

    .btn-principal {
        width: 90%;
        max-width: 300px;
        padding: 15px;
        font-size: 1.1rem;
        display: block;
        margin: 0 auto;
    }

    /* Marcador */
    .marcador-banner {
        padding: 20px 10px;
        flex-direction: column;
        gap: 10px;
    }

    .flex-marcador {
        flex-direction: row;
        margin: 10px 0;
    }

    /* Secciones (Evita que el padding interno rompa el ancho) */
    .valores,
    .identidad-section,
    .horarios-section,
    .reclutamiento-section {
        padding: 50px 15px;
        width: 100%;
    }

    .galeria-grid {
        grid-template-columns: 1fr;
    }

    /* Fotos a 1 sola columna en móvil */
    .foto-identidad {
        height: 250px;
    }

    .dias-grid {
        flex-direction: column;
        gap: 20px;
    }

    .dia-card {
        width: 100%;
        min-width: unset;
        margin: 0;
    }

    /* Formulario */
    .flex-row {
        flex-direction: column;
        gap: 0;
    }

    .btn-submit {
        padding: 20px;
        width: 100%;
        display: block;
    }

    /* Footer y Redes */
    .footer-club {
        padding: 40px 15px 20px 15px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-col {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        width: 100%;
    }

    .footer-links a {
        color: var(--texto-secundario) !important;
        display: block;
    }

    .footer-links a.link-destacado {
        color: var(--rojo-pasion) !important;
    }

    .social-footer {
        justify-content: center;
        display: flex !important;
        width: 100%;
        margin: 15px 0;
    }

    .social-footer a {
        background: none;
        color: var(--rojo-pasion);
        font-size: 28px;
    }

    /* Cookies */
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px 15px;
    }

    .cookie-banner p {
        padding-right: 0;
    }

    .btn-cookie {
        width: 100%;
        padding: 15px;
    }
}

/* =========================================
   13. PÁGINA DEL BLOG
   ========================================= */
.blog-header {
    padding: 120px 20px 40px;
    text-align: center;
    background-color: var(--bg-secundario);
    border-bottom: 2px solid var(--rojo-pasion);
    width: 100%;
}

.blog-header p {
    color: var(--texto-secundario);
    max-width: 600px;
    margin: 10px auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    min-height: 50vh;
    width: 100%;
}

.post-card {
    background-color: var(--bg-secundario);
    border: 1px solid var(--borde-color);
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

/* =========================================
   13.1 LAYOUTS ALTERNATIVOS DEL BLOG
   ========================================= */

/* Layout 1: Reverse (texto arriba, imagen abajo) */
.layout-reverse {
    flex-direction: column-reverse;
}

/* Layout 2: Alt (horizontal en pantallas grandes) - Sin reglas en móvil por defecto */
/* Layout 3: Large (destacado a doble columna) - Sin reglas en móvil por defecto */

@media (min-width: 768px) {
    .layout-alt {
        grid-column: span 2;
        flex-direction: row;
        align-items: stretch;
        /* para que texto e imagen midan igual de alto */
    }

    .layout-alt .post-img {
        width: 50%;
        height: auto;
        max-height: 450px;
        aspect-ratio: 16/9;
        object-position: center;
    }

    .layout-alt .post-content {
        width: 50%;
        padding: 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .layout-large {
        grid-column: 1 / -1;
        /* Ocupa todo el ancho del grid */
    }

    .layout-large .post-img {
        max-height: 550px;
        aspect-ratio: 16/9;
        object-position: center;
    }

    .layout-large .post-title {
        font-size: 2.5rem;
    }
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: var(--rojo-pasion);
    box-shadow: 0 5px 15px rgba(217, 16, 35, 0.1);
}

.post-img {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    /* Forzamos una proporción perfecta de foto de TV/Cine */
    max-height: 450px;
    /* Le damos margen para crecer, pero sin pasarse */
    object-fit: cover;
    object-position: center 20%;
    /* Enfoca un poco más arriba para que no corte cabezas */
}

.post-content {
    padding: 25px;
}

.post-date {
    color: var(--rojo-pasion);
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.post-title {
    font-size: 1.5rem;
    color: var(--texto-principal);
    margin: 0 0 15px 0;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    line-height: 1.2;
    /* Forzar que palabras muy largas no rompan la tarjeta */
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.post-text {
    color: var(--texto-secundario);
    line-height: 1.6;
    font-size: 0.95rem;
    white-space: pre-line;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.blog-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    color: var(--texto-secundario);
}

/* =========================================
   14. PÁGINA DE GALERÍA Y TEMPORADAS
   ========================================= */
.galeria-header {
    padding: 120px 20px 40px;
    text-align: center;
    background-color: var(--bg-secundario);
    border-bottom: 2px solid var(--rojo-pasion);
    width: 100%;
}

.galeria-header p {
    color: var(--texto-secundario);
    margin: 10px auto;
    max-width: 600px;
}

/* El formulario desplegable */
.selector-temporada {
    margin: 30px auto 10px;
    max-width: 400px;
}

.selector-temporada select {
    width: 100%;
    padding: 12px 20px;
    border-radius: 4px;
    border: 2px solid var(--rojo-pasion);
    background-color: var(--bg-principal);
    color: var(--texto-principal);
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    cursor: pointer;
    text-align: center;
    transition: 0.3s;
}

.selector-temporada select:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(217, 16, 35, 0.5);
}

/* Los bloques de cada partido */
.evento-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    width: 100%;
}

.evento-titulo {
    color: var(--rojo-pasion);
    border-bottom: 2px solid var(--borde-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 2rem;
}

/* Botón para desplegar/ocultar las fotos de cada evento */
.btn-toggle-fotos {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--rojo-pasion);
    background-color: transparent;
    color: var(--texto-principal);
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-toggle-fotos::after {
    content: '\f107';
    /* fa-angle-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.9rem;
}

.btn-toggle-fotos.abierto::after {
    content: '\f106';
    /* fa-angle-up */
}

.btn-toggle-fotos:hover {
    background-color: var(--rojo-pasion);
    color: #fff;
}

/* Contenedor de fotos de evento colapsable por defecto */
.evento-fotos {
    display: none;
}

.evento-fotos.abierto {
    display: grid;
}

/* Rejilla de fotos tipo Instagram/Pinterest */
.grid-fotos {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 50px;
}

.grid-fotos img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--borde-color);
    transition: 0.3s;
    cursor: pointer;
}

.grid-fotos img:hover {
    transform: scale(1.03);
    border-color: var(--rojo-pasion);
    box-shadow: 0 5px 15px rgba(217, 16, 35, 0.2);
    z-index: 2;
}

.galeria-empty {
    text-align: center;
    padding: 50px;
    color: var(--texto-secundario);
    max-width: 800px;
    margin: 0 auto;
}

/* =========================================
   15. LIGHTBOX (FOTOS EN GRANDE - GALERÍA)
   ========================================= */
.lightbox-modal {
    display: none;
    /* Oculto por defecto, solo sale al hacer clic */
    position: fixed;
    z-index: 9999;
    /* Por encima de la barra de navegación y todo lo demás */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    /* Fondo negro casi opaco */
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    /* Que no se salga del alto de la pantalla */
    border: 3px solid var(--rojo-pasion);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    animation: zoomIn 0.3s ease;
    /* Efecto suave de entrada */
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: var(--rojo-pasion);
    transform: scale(1.1);
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* =========================================
   16. SECCIÓN: EN LOS MEDIOS (PRENSA)
   ========================================= */
.medios-section {
    padding: 80px 20px;
    background-color: var(--bg-secundario);
    text-align: center;
    border-top: 1px solid var(--borde-color);
}

.medios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.medio-card {
    background-color: var(--bg-principal);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--borde-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.medio-card:hover {
    transform: translateY(-10px);
    border-color: var(--rojo-pasion);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.medio-icon {
    font-size: 3rem;
    color: var(--rojo-pasion);
    margin-bottom: 20px;
}

.medio-titulo {
    color: var(--texto-principal);
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.medio-texto {
    color: var(--texto-secundario);
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.btn-medio {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    color: var(--texto-principal);
    border: 2px solid var(--rojo-pasion);
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    align-self: center;
}

.btn-medio:hover {
    background-color: var(--rojo-pasion);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(217, 16, 35, 0.3);
}

/* =========================================
   17. ANIMACIONES SCROLL REVEAL
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}