.academia-cursos-container {
    display: flex;
    gap: 30px;
    max-width: 1440px;
    margin: 0 auto;
    padding-top: 100px;
    padding-bottom: 100px;
}

/* Sidebar de filtros */
.academia-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 13, 89, 0.08);
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.filtro-seccion {
    margin-bottom: 20px;
    border-bottom: 1px solid #E8ECF0;
    padding-bottom: 20px;
}

.filtro-seccion:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filtro-seccion label {
    color: #353C4D;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
    transition: color 0.2s ease;
}

.filtro-seccion label:hover {
    color: #265FF1;
}

.filtro-seccion p {
    color: #000D59;
    font-family: Poppins;
    font-size: 16px !important;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
    margin: 0;
    padding: 0;
}

.filtro-checkbox {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
    
}

.filtro-checkbox input[type="checkbox"] {
    margin-right: 8px;
}

.filtro-header{
    background-color: #FFF !important;
    border: none !important;
}
.filtro-dropdown{
    border: none !important;
}


.filtro-dropdown {
    margin-bottom: 0;
    border: 1px solid #E1E9F4;
    border-radius: 10px;
    background: #FFFFFF;
    transition: all 0.3s ease;
    overflow: hidden;
}

.filtro-dropdown:hover {
    border-color: #265FF1;
}

.filtro-dropdown.active {
    border-color: #265FF1;
}

.filtro-header {
    padding: 14px 16px;
    background: #F4F7FA;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
    border-radius: 10px 10px 0 0;
}

.filtro-header:hover {
    background: #EAF0FF;
}

.filtro-dropdown.active .filtro-header {
    background: #EAF0FF;
    border-radius: 10px 10px 0 0;
}

.filtro-header h4 {
    margin: 0;
    font-size: 16px;
}

.dropdown-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    background: rgba(38, 95, 241, 0.1);
}

.dropdown-icon svg {
    width: 10px;
    height: 5px;
    transition: stroke 0.2s ease;
}

.filtro-dropdown.active .dropdown-icon {
    transform: rotate(180deg);
    background: rgba(38, 95, 241, 0.2);
}

.filtro-opciones {
    display: none;
    padding: 12px 16px;
    background: #FFFFFF;
    border-radius: 0 0 10px 10px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filtro-dropdown.active .filtro-opciones {
    display: block;
}

.filtro-checkbox {
    display: flex;
    align-items: center;
    padding: 10px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
    padding-left: 8px;
    margin-left: -8px;
}

.filtro-checkbox:hover {
    background: #F4F7FA;
    padding-left: 12px;
}

.filtro-checkbox input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #265FF1;
    flex-shrink: 0;
}




/* Contenido principal */
.academia-contenido {
    flex-grow: 1;
}

.academia-header {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    background-image: url("/wp-content/plugins/academia-fluyez/assets/images/Frame 284.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 120px;
    padding-bottom: 120px;
    padding-left: 20px;
    padding-right: 20px;
    overflow: hidden;
}

/* Overlay con gradiente para mejor contraste */
/* .academia-header {
    background: linear-gradient(180deg, rgba(0, 13, 89, 0.75) 0%, rgba(10, 44, 166, 0.65) 50%, rgba(0, 13, 89, 0.80) 100%);
    z-index: 1;
} */

/* Efecto de partículas/ruido sutil */
.academia-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(38, 95, 241, 0.1) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

/* Contenedor de contenido */
.academia-header h1,
.academia-header p {
    position: relative;
    z-index: 2;
}

.academia-header h1 {
    color: #FFF;
    font-family: Poppins;
    font-size: 48px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    margin: 0;
    max-width: 900px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
    letter-spacing: -0.5px;
}

.academia-header p {
    color: #FFF;
    font-family: Inter;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 32px;
    max-width: 850px;
    text-align: center;
    opacity: 0.95;
    margin: 0;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto de brillo sutil en el título */
.academia-header h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #265FF1, transparent);
    border-radius: 2px;
    opacity: 0.6;
}
.academia-header span {
    color: #1F2A37;
    font-family: Poppins;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 8px; /* 66.667% */
    margin-bottom: 10px;
}

.academia-ordenar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.academia-ordenar select {
    padding: 8px 17px;
    width:200px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 25px;
    border: 1px solid #265FF1;
    background: #fff;
    color: #265FF1;
}

/* Grid de cursos */
.academia-cursos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.curso-card {
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    border: none;
    min-width: 320px;
    max-width: 350px;
    width: 100%;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

/* Etiquetas superiores del card (Disponible / Próximamente / Gratis) */
.curso-etiquetas-superior {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.curso-etiqueta {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.curso-etiqueta-disponible {
    background: #0a7c42;
    color: #fff;
}

.curso-etiqueta-proximamente {
    background: #e67e22;
    color: #fff;
}

.curso-etiqueta-gratis {
    background: #265ff1;
    color: #fff;
}

.academia-btn{
    background: #265FF1;
    color: #fff;
    border-radius: 8px;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 500;
}
.academia-btn:hover{
    background: #1d4ed8;
    color: #fff;
}
.curso-card .curso-imagen {
    border-radius: 18px 18px 0 0;
    height: 170px;
    overflow: hidden;
}
.curso-card .curso-contenido {
    padding: 20px 20px 0 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.curso-card .curso-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 10px;
}
.curso-card .curso-titulo {
    color: var(--M3-sys-light-on-primary-fixed, var(--Schemes-On-Primary-Fixed, #21005D));
    /* Heading/Strong/heading-strong-200 */
    font-family: Poppins;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 28px; /* 140% */
}
.curso-card .curso-excerpt {
    color: #AEAEB2;
    /* Body-25/Regular */
    font-family: Poppins;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px; /* 133.333% */
    margin-bottom: 10px;
}
.curso-card .curso-autor {
    display: flex;
    align-items: center;
    gap: 8px;

}
.curso-meta-inferior{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.curso-card .curso-boton {
    background: #BDD9FF;
    color: #007AFF;
    border-radius: 8px;
    padding: 6px 14px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: auto;
    transition: background 0.2s;
}
.curso-card .curso-boton:hover {
    background: #265FF1;
    color: #fff;
}

.modulos, .duracion{
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--Grays-Gray-2, var(--Grays-Gray-2, #AEAEB2));
    /* Body-25/Regular */
    font-family: Inter;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px; /* 133.333% */
}

/* Paginación */
.academia-paginacion {
    margin-top: 40px;
    text-align: center;
}

.academia-paginacion .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
}

.academia-paginacion .current {
    background-color: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

.academia-paginacion a:hover {
    background-color: #f5f5f5;
}

/* Mensaje de no cursos */
.no-cursos {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
}
.filtro-titulo{
    color: #000D59;
    padding: 0;
    font-family: Poppins;
    font-size: 22px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 24px 0;
    position: relative;
    padding-bottom: 16px;
}

.filtro-titulo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #265FF1 0%, #0A2CA6 100%);
    border-radius: 2px;
}

.academia-titulo-grid{
    color: #000D59;
    padding: 0;
    font-family: Poppins;
    font-size: 28px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 32px 0;
    text-align: left;
    position: relative;
    padding-bottom: 16px;
}

.academia-titulo-grid::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #265FF1 0%, #0A2CA6 100%);
    border-radius: 2px;
}
.busqueda-container {
    margin-bottom: 24px;
    position: relative;
}

.form-busqueda {
    position: relative;
}

.busqueda-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: Inter;
    transition: all 0.3s ease;
    border-radius: 10px;
    border: 1.5px solid #E1E9F4;
    background: #F4F7FA;
    color: #353C4D;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.busqueda-input::placeholder {
    color: #778496;
}

.busqueda-input:focus {
    outline: none;
    border-color: #265FF1;
    background: #FFFFFF;
    box-shadow: 0 4px 12px rgba(38, 95, 241, 0.15);
}

/* Responsive */
@media (max-width: 1200px) {
    .academia-cursos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .academia-header h1 {
        font-size: 42px;
    }
    
    .academia-header p {
        font-size: 18px;
        line-height: 28px;
    }
}

@media (max-width: 992px) {
    .academia-cursos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .academia-header {
        padding-top: 80px;
        padding-bottom: 80px;
    }
    
    .academia-header h1 {
        font-size: 20px;
        line-height: 1.3;
        max-width: 100%;
    }
    
    .academia-header h1::after {
        width: 60px;
        height: 3px;
    }
    
    .academia-header p {
        font-size: 12px;
        line-height: 18px;
        max-width: 100%;
    }
    
    .academia-cursos-container {
        flex-direction: column;
        padding: 20px;
        position: relative;
    }

    .academia-sidebar {
        width: 100%;
        margin-bottom: 30px;
        position: relative;
        top: 0;
        max-height: none;
        padding: 20px;
        border-radius: 12px;
    }
    
    .filtro-titulo {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .academia-titulo-grid {
        font-size: 24px;
        text-align: center;
        margin-bottom: 24px;
    }
    
    .academia-titulo-grid::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .academia-contenido {
        position: relative;
    }

    .filtro-cursos-form {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
        overflow-x: scroll;
        padding-bottom: 10px;
        position: relative;
    }

    .filtro-seccion {
        border: none;
        min-width: 200px;
        position: relative;
        margin-bottom: 0px;
    }

    .filtro-header {
        gap: 10px;
        padding: 10px;
        background: #f5f5f5;
        border-radius: 4px;
        cursor: pointer;
        position: relative;
    }

    .filtro-opciones {
        display: none;
        background: white;
        border: 1px solid #ddd;
        border-radius: 4px;
        max-height: 200px;
        overflow-y: auto;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .filtro-dropdown.active .filtro-opciones {
        display: block;
/*         position: fixed; */
        width: 200px;
        max-height: 50vh;
        top: 0;
        left: 0;
        transform: translate(var(--dropdown-x, 0), var(--dropdown-y, 0));
    }

    .filtro-checkbox {
        padding: 8px 10px;
        display: flex;
        align-items: center;
        gap: 8px;
        border-bottom: 1px solid #eee;
    }

    .filtro-checkbox:last-child {
        border-bottom: none;
    }

    .filtro-checkbox input[type="checkbox"] {
        margin: 0;
    }
}

@media (max-width: 576px) {
    .academia-cursos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .curso-card {
        min-height: auto;
    }
}




