/* ===============================
   HERO BACKGROUND
=============================== */

.rrtv-hero {
    position: relative;
    width: 100%;
    background: none;
}

body.calendario .rrtv-hero::after {
    content: "";
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url('../img/hero-running.jpg') center center / cover no-repeat;
    z-index: -1;
}

/* Overlay */

.rrtv-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.75));
    z-index: 0;
}

.rrtv-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    margin: 0 auto;
    padding: 70px 20px 90px 20px;
}

/* ===============================
   TÍTULO
=============================== */

.rrtv-hero-title {
    text-align: center;
    font-size: 42px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

/* ===============================
   FILTROS
=============================== */

.rrtv-calendar-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
}

.rrtv-calendar-input,
.rrtv-calendar-select {
    background: rgba(15, 15, 15, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    min-width: 200px;
    font-size: 14px;
    backdrop-filter: blur(6px);
}

.rrtv-calendar-input:focus,
.rrtv-calendar-select:focus {
    outline: none;
    border-color: #00ff99;
}

/* ===============================
   GRID GENERAL
=============================== */

.rrtv-calendar-grid {
    margin: 20px auto 0 auto;
    max-width: 1400px;
    /* clave */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 22px;
}

/* ===============================
   GRID RECOMENDADOS CORRECTO
=============================== */

.rrtv-recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 22px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Forzar 5 columnas en pantallas grandes */
@media (min-width: 1400px) {
    .rrtv-recommended-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* En pantallas grandes forzamos 5 columnas */
@media (min-width: 1400px) {
    .rrtv-calendar-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ===============================
   CARD
=============================== */

.rrtv-calendar-card {
    background: rgba(10, 10, 10, 0.9);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 150, 0.08);
    backdrop-filter: blur(8px);
    transition: .25s ease;
}

.rrtv-calendar-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 255, 150, 0.4);
}

.rrtv-calendar-image {
    height: 150px;
    background-size: cover;
    background-position: center;
}

.rrtv-calendar-content {
    padding: 14px;
}

.rrtv-calendar-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.rrtv-calendar-meta span {
    display: block;
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.rrtv-calendar-btn {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    background: #00ff99;
    color: #000;
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
}

/* ===============================
   RECOMENDADOS
=============================== */

.rrtv-recommended-wrap {
    margin: 40px auto;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rrtv-recommended-title {
    text-align: center;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 20px;
}

/* ===============================
   BADGE RECOMENDADO NUEVO
=============================== */

.rrtv-recommended-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: #00ff99;
    color: #000;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 20px;
    letter-spacing: .5px;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0, 255, 150, 0.3);
}

/* asegurar que la imagen tenga contexto */
.rrtv-calendar-image {
    position: relative;
}


/* ===============================
   MOBILE REAL
=============================== */

@media (max-width: 768px) {

    .rrtv-hero-inner {
        padding: 40px 16px 60px 16px;
    }

    .rrtv-hero-title {
        font-size: 20px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-top: 10px;
    }

    body.calendario .rrtv-hero {
        margin-top: 70px;
    }

    #rrtv-mobile-filter-toggle {
        display: flex !important;
    }

    .rrtv-calendar-filters {
        display: none;
        /* Oculto por defecto en movil */
        flex-direction: column;
        gap: 10px;
        margin-bottom: 25px;
    }

    .rrtv-calendar-filters.show-filters {
        display: flex;
        animation: slideDownFade 0.3s ease forwards;
    }

    @keyframes slideDownFade {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .rrtv-calendar-input,
    .rrtv-calendar-select {
        min-width: 100%;
        width: 100%;
        font-size: 13px;
        background: #f2f2f2;
        color: #333;
        border: 1px solid #ccc;
    }

    .rrtv-calendar-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .rrtv-calendar-image {
        height: 150px;
    }

    .rrtv-calendar-title {
        font-size: 16px;
    }

    .rrtv-calendar-meta span {
        font-size: 12px;
    }

    .rrtv-calendar-btn {
        font-size: 12px;
        padding: 7px 14px;
    }

    .rrtv-recommended-grid {
        grid-template-columns: 1fr;
    }
}