/* =============================================
   AGENDA DE CURSOS - HERO
   ============================================= */

.agenda-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 350px;
    display: flex;
    align-items: flex-end;
}

.agenda-hero__overlay {
    background: linear-gradient(transparent 0%, rgba(255, 255, 255, 0.95) 100%);
    width: 100%;
}

.agenda-hero__imagen {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 20px;
    object-fit: cover;
    width: 100%;
}

.agenda-hero__overlay h1 {
    margin: 0 0 20px 0;
    line-height: 1.3;

    color: #C51A1B;
    font-family: "Raleway", Sans-serif;
    font-size: 40px;
    font-weight: bold;
    font-style: italic;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.agenda-hero__overlay h1::after {
    content: "";
    display: block;
    width: 400px;
    height: 1px;
    background-color: #D8D4D3;
    margin: 10px auto 0;
}

.agenda-hero__texto {
    padding-left: 25px;
    padding-right: 25px;
}

.agenda-hero__texto h5 {
    max-width: 700px;
    line-height: 1.6;

    color: #606060;
    font-family: "Raleway", Sans-serif;
    font-size: 15px;
    font-weight: 700;
    font-style: normal;    
}

.agenda-hero__texto p {
    color: #8E8E8E;
    font-family: "Raleway", Sans-serif;
    font-size: 15px;
    font-weight: normal;    
}

/* =============================================
   AGENDA DE CURSOS - LAYOUT
   ============================================= */

.agenda-cursos {
    padding: 50px 0;
}

/* =============================================
   SIDEBAR FILTROS
   ============================================= */

.agenda-sidebar {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.agenda-sidebar__filtro-activo {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.agenda-sidebar__filtro-activo-texto {
    font-family: "Raleway", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #606060;
    margin-bottom: 10px;
}

.agenda-sidebar__btn-borrar {
    display: inline-block;
    background-color: #C51A1B;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    font-family: "Raleway", sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.agenda-sidebar__btn-borrar:hover {
    background-color: #a01516;
}

.agenda-sidebar__seccion {
    margin-top: 10px;
}

.agenda-sidebar__titulo {
    font-family: "Raleway", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #C51A1B;
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agenda-sidebar__subtitulo {
    font-family: "Raleway", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #606060;
    margin: 15px 0 10px;
}

.agenda-sidebar__lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.agenda-sidebar__lista li {
    margin-bottom: 6px;
}

.agenda-sidebar__opcion {
    display: inline-block;
    font-family: "Raleway", sans-serif;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 3px;
    transition: all 0.2s ease;
    margin: 3px 4px 3px 0;
    user-select: none;
}

.agenda-sidebar__opcion:hover {
    border-color: #C51A1B;
    color: #C51A1B;
}

.agenda-sidebar__opcion input[type="checkbox"],
.agenda-sidebar__opcion input[type="radio"] {
    display: none;
}

.agenda-sidebar__opcion.active,
.agenda-sidebar__opcion:has(input:checked) {
    background-color: #C51A1B;
    color: #ffffff;
    border-color: #C51A1B;
}

.agenda-sidebar__btn-aplicar {
    display: block;
    width: 100%;
    background-color: #C51A1B;
    color: #ffffff;
    border: none;
    padding: 10px;
    font-family: "Raleway", sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: 3px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.agenda-sidebar__btn-aplicar:hover {
    background-color: #a01516;
}

/* =============================================
   TARJETAS DE CURSOS
   ============================================= */

.agenda-card {
    background-color: #F4F4F2;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 25px;
    overflow: hidden;
}

.agenda-card__share {
    background-color: #b5afa2;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.agenda-card__share-label {
    font-family: "Raleway", sans-serif;
    font-size: 13px;
    color: #ffffff;
    margin-right: 5px;
}

.agenda-card__share-btn {
    color: #ffffff;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.agenda-card__share-btn:hover {
    opacity: 1;
    color: #ffffff;
}

.agenda-card__programa {
    padding: 12px 20px 0;

    font-size: 17px;
    color: #606060;
    font-family: 'Raleway', sans-serif;
    line-height: 150%;
    font-weight: 400;    
}

.agenda-card__body {
    display: flex;
    padding: 15px 20px;
    gap: 25px;
    align-items: flex-start;
}

.agenda-card__fecha {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    flex-shrink: 0;
    width: 25%;
}

.agenda-card__dia {
    font-family: 'Montserrat', sans-serif;
    font-size: calc(35px + (70 - 35) * ((100vw - 300px) / (1600 - 300)));
    font-weight: 700;
    color: #c41a1b !important;
    line-height: .8;
}

.agenda-card__mes {
    font-family: 'Montserrat', sans-serif;
    font-size: calc(24px + (35 - 24) * ((100vw - 300px) / (1600 - 300)));
    font-weight: 600;
    color: #b8b4ab !important;
    text-transform: uppercase;
    line-height: .8;
}

.agenda-card__info {
    flex: 1;
}

.agenda-card__titulo {
    font-family: "Raleway", sans-serif;
    font-size: calc(18px + (20 - 18) * ((100vw - 300px) / (1600 - 300)));
    font-weight: 600;
    color: #606060;
    margin: 0 0 10px;
    margin-bottom: 1rem !important;
    line-height: 1.3;
}

.agenda-card__detalle {
    font-family: "Raleway", sans-serif;
    font-size: 18px;
    color: #666;
    margin: 4px 0;
    margin-bottom: .5rem !important;
    line-height: 1.5;
}

.agenda-card__detalle strong {
    color: #c41a1b !important;
    font-weight: 600;
}

.agenda-card__footer {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-top: 1px solid #f0f0f0;
}

.agenda-card__badge {
    display: inline-block;
    background-color: #c20e1a;
    color: #ffffff;
    padding: 6px 14px;
    font-family: "Raleway", sans-serif;
    font-size: calc(13px + (15 - 13) * ((100vw - 300px) / (1600 - 300)));
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 3px;
    line-height: 1.6;
    width: 100%;
    margin-top: 20px;
    text-align: center;
}

.agenda-card__acciones {
    gap: 15px;
}

.agenda-card__vacantes {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agenda-card__btn-info {
    display: inline-block;
    background-color: #C51A1B;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.agenda-card__btn-info:hover {
    background-color: #a01516;
    color: #ffffff;
}

.agenda-cursos__vacio {
    text-align: center;
    padding: 60px 20px;
    font-family: "Raleway", sans-serif;
    font-size: 16px;
    color: #999;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 991px) {
    .agenda-hero {
        min-height: 250px;
    }

    .agenda-hero__titulo {
        font-size: 32px;
    }

    .agenda-sidebar {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .agenda-hero {
        min-height: 200px;
    }

    .agenda-hero__titulo {
        font-size: 26px;
    }

    .agenda-card__body {
        flex-direction: column;
        gap: 10px;
    }

    .agenda-card__fecha {
        flex-direction: row;
        gap: 8px;
    }

    .agenda-card__dia {
        font-size: 36px;
    }

    .agenda-card__mes {
        font-size: 14px;
    }

    .agenda-card__footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-end;
    }

    .agenda-card__acciones {
        width: 100%;
        justify-content: space-between;
    }
}

/* =============================================
   SINGLE AGENDA CURSO
   ============================================= */

.agenda-single__info {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.agenda-single__fecha-grande {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    flex-shrink: 0;
}

.agenda-single__dia {
    font-family: "Raleway", sans-serif;
    font-size: 64px;
    font-weight: 700;
    color: #C51A1B;
    line-height: 1;
}

.agenda-single__mes {
    font-family: "Raleway", sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #b5afa2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.agenda-single__detalles p {
    font-family: "Raleway", sans-serif;
    font-size: 16px;
    color: #555;
    margin: 8px 0;
    line-height: 1.6;
}

.agenda-single__detalles strong {
    color: #C51A1B;
    font-weight: 600;
}

@media (max-width: 767px) {
    .agenda-single__info {
        flex-direction: column;
        gap: 15px;
    }

    .agenda-single__fecha-grande {
        flex-direction: row;
        gap: 10px;
    }

    .agenda-single__dia {
        font-size: 42px;
    }

    .agenda-single__mes {
        font-size: 16px;
    }
}
