.programacion-encabezado {
    padding: 4.5rem 0 3.5rem;
    color: #fff;
    background:
        linear-gradient(
            120deg,
            var(--home-principal-oscuro),
            var(--home-principal)
        );
}

.programacion-encabezado .home-etiqueta {
    color: #efd8df;
}

.programacion-encabezado h1 {
    margin-bottom: 1rem;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1;
}

.programacion-encabezado p:last-child {
    max-width: 720px;
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.7;
}

.programacion-contenido {
    padding: 4rem 0 5rem;
    background: var(--home-fondo-claro);
}

.programacion-filtros {
    position: relative;
    margin-bottom: 2rem;
    padding: 1.75rem;
    background: #fff;
    border: 1px solid var(--home-borde);
    border-radius: var(--home-radio);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.programacion-filtros .form-label {
    color: var(--home-texto);
    font-weight: 700;
}

.programacion-filtros .form-control,
.programacion-filtros .form-select {
    min-height: 48px;
    border-color: var(--home-borde);
}

.programacion-filtros .form-control:focus,
.programacion-filtros .form-select:focus {
    border-color: var(--home-principal);
    box-shadow: 0 0 0 0.2rem rgba(123, 31, 58, 0.15);
}

.programacion-filtros-acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.programacion-estado {
    margin-bottom: 1.5rem;
    color: var(--home-texto-suave);
}

.programacion-estado strong {
    color: var(--home-principal);
}

.programacion-resultados {
    min-height: 250px;
    transition: opacity 0.2s ease;
}

.programacion-cargando::after {
    position: absolute;
    inset: 0;
    z-index: 2;
    content: "";
    cursor: wait;
    background: rgba(255, 255, 255, 0.65);
}

.programacion-cargando + .programacion-estado
    + .programacion-resultados {
    opacity: 0.5;
}

.programacion-vacia {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 2.5rem;
    background: #fff;
    border-left: 5px solid var(--home-principal);
}

.programacion-vacia > .material-symbols-outlined {
    color: var(--home-principal);
    font-size: 3.25rem;
}

.programacion-vacia h2 {
    margin-bottom: 0.4rem;
    font-size: 1.5rem;
}

.programacion-vacia p {
    margin: 0;
    color: var(--home-texto-suave);
}

.programacion-resultados .funcion-card h2 {
    margin-bottom: 0.65rem;
    font-size: 1.4rem;
    line-height: 1.25;
}

.programacion-resultados .funcion-card h2 a {
    color: var(--home-texto);
    text-decoration: none;
}

.programacion-resultados .funcion-card h2 a:hover {
    color: var(--home-principal);
}

@media (max-width: 767.98px) {
    .programacion-encabezado {
        padding: 3.5rem 0 3rem;
    }

    .programacion-contenido {
        padding: 2.5rem 0 4rem;
    }

    .programacion-filtros {
        padding: 1.25rem;
    }

    .programacion-filtros-acciones {
        display: grid;
    }

    .programacion-filtros-acciones .btn {
        width: 100%;
    }

    .programacion-vacia {
        align-items: flex-start;
        padding: 1.5rem;
    }
}