.wrapper {
    container-type: inline-size;
    flex-shrink: 0;
    width: 16rem;
    min-width: 250px;
    max-width: 30rem;
    transition: none;
}

.sidebar {
    position: sticky; 
    top: 0;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    width: 16rem;
    height: fit-content;
    width: 100%;
}

.section.courses .container .aux-container{
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}


.sidebar-content {
    position: relative;
    height: 100%;
    width: 100%;
}


.padding {
    padding: 1rem;
}

.resize-handle {
    width: 5px;
    background-color: #ddd;
    cursor: col-resize;
    flex-shrink: 0;
    position: relative;
    align-self: stretch;
}

    .resize-handle:hover {
        background-color: var(--color-accent, #4a90e2);
    }

    .resize-handle::before {
        content: '';
        position: absolute;
        top: 0;
        left: -2px;
        right: -2px;
        bottom: 0;
    }

    .resize-handle.dragging {
        background-color: var(--color-accent, #4a90e2);
    }

.buscador {
    border-radius: 25px 0 0 25px; /* solo esquinas izquierda redondeadas */
    padding: 10px 20px;
    height: 45px; /* misma altura que el botón */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

    .buscador:focus {
        border-color: #007bff;
        box-shadow: 0 0 8px rgba(0,123,255,0.3);
        outline: none;
    }

.buscar-btn {
    border-radius: 0 25px 25px 0; /* solo esquinas derecha redondeadas */
    height: 45px; /* misma altura que el textbox */
    padding: 0 20px; /* ancho cómodo */
}

.buscador-icon {
    border-radius: 25px 0 0 25px; /* solo esquinas izquierda redondeadas */
    background-color: #fff;
    border: 1px solid #ced4da;
    height: 45px; /* misma altura que el textbox */
    display: flex; /* para centrar el icono */
    align-items: center; /* centrado vertical */
    justify-content: center; /* centrado horizontal */
    padding: 0 12px; /* espacio interno */
    font-size: 1.1rem; /* tamaño del icono */
}
/* Contenedor centrado */
.buscador-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Grupo buscador */
.buscador-group {
    display: flex;
    align-items: center;
}

.buscar-btn {
    height: 45px;
    padding: 0 22px;
    border-radius: 0 25px 25px 0; /* semi-círculo derecho */
    margin-left: -1px; /* une con el textbox */
    width: 45px;
    border: 1px solid #007bff;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    padding: 0 22px;
    font-size: 1.1rem;
}

/* TextBox */
.buscador {
    border-radius: 25px 0 0 25px;
    padding: 10px 20px;
    height: 45px;
    border: 1px solid #ced4da;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

    .buscador:focus {
        border-color: #007bff;
        box-shadow: 0 0 8px rgba(0,123,255,0.3);
        outline: none;
    }


.buscar-btn:hover {
    background-color: #0056b3;
}

.custom-range-wrapper {
    width: 100%;
    max-width: 420px;
    margin: 30px auto;
    margin-top: 0px;
}

.range-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 500;
}

.custom-range-bar {
    position: relative;
    height: 18px;
    background: #d6d6d6;
    border-radius: 9px;
}

.range-fill {
    position: absolute;
    height: 100%;
    background: #0d6efd;
    border-radius: 9px;
    left: 0;
    width: 100%;
}

.thumb {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #0d6efd;
    cursor: pointer;
    top: 0;
    transform: translateX(-50%);
    transition: transform 0.2s ease;
}

    .thumb:hover {
        transform: translateX(-50%) scale(1.5);
    }


.dropdown-checklist {
    position: relative;
    width: 250px;
    font-family: sans-serif;
    font-size: 14px;
}

.dropdown-btn {
    width: 100%;
    padding: 10px 15px;
    text-align: left;
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .dropdown-btn:hover {
        background-color: #e0e0e0;
    }

/* Contenedor del checklist */
.dropdown-content {
    display: none; /* oculto por defecto */
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    margin-top: 5px;
    z-index: 10;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    /* Cada checkbox */
    .dropdown-content .aspNetCheckBox {
        display: flex !important; /* fuerza layout horizontal */
        align-items: center; /* centra verticalmente */
        gap: 8px; /* espacio entre checkbox y texto */
    }

        /* Checkbox input real */
        .dropdown-content .aspNetCheckBox input[type="checkbox"] {
            margin: 0; /* elimina margen por defecto */
        }

        /* Texto del checkbox */
        .dropdown-content .aspNetCheckBox label {
            margin: 0; /* elimina margen extra */
            cursor: pointer;
        }

#scrollToTopBtn {
    position: fixed; /* Se mantiene en la ventana */
    top: 100px; /* Distancia desde arriba */
    right: 40px; /* Distancia desde la izquierda */
    width: 50px; /* Ancho fijo */
    height: 50px; /* Alto igual al ancho */
    display: none; /* Para centrar contenido */
    align-items: center; /* Centrado vertical */
    justify-content: center; /* Centrado horizontal */
    font-size: 24px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%; /* Hace el círculo */
    cursor: pointer;
    z-index: 1000; /* Siempre encima del contenido */
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

    #scrollToTopBtn:hover {
        background-color: #0056b3;
        transform: scale(1.1); /* Pequeño efecto hover */
    }


    #scrollToTopBtn:hover {
        background-color: #0056b3;
    }

.bar-section {
    font-size: 18px;
    margin-top: 30px;
}

.information-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filter-sort-header {
    display: flex;
    flex-direction: row;
    margin-bottom: 15px;
    width: 100%;
    height: 50px;
    padding-left: 15px;
    padding-right: 15px;
}

.filter-button {
    display: none;
}

.close-sidebar {
    display: none;
}

.sort {
    position: relative;
    display: inline-block;
    margin-left: auto;
    height: 100%;
}

.sort-button {
    height: 100%;
    background-color: transparent;
    border: 2px solid #2a90d0;
    font-size: 15px;
    color: #2a90d0;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    width: 120px;
}

    .sort-button:hover {
        background-color: #2a90d0;
        color: white;
    }

    .sort-button:active {
        transform: scale(0.98);
    }

/*

.sort-window {
    background-color: blue;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 5;
}*/

.sort-window {
    position: absolute;
    top: calc(100% + 20px);
    right: 0;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 12px;
    min-width: 220px;
    z-index: 8;
    border: 1px solid #2a90d0;
    display: none;
}

.sort-window {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 12px;
    min-width: 220px;
    z-index: 8;
    border: 2px solid #2a90d0;
    display: none;
}

    .sort-window::before {
        content: '';
        position: absolute;
        top: -10px;
        right: calc(60px - 10px);
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 10px solid #2a90d0;
    }

    .sort-window::after {
        content: '';
        position: absolute;
        top: -9px;
        right: calc(60px - 9px);
        width: 0;
        height: 0;
        border-left: 9px solid transparent;
        border-right: 9px solid transparent;
        border-bottom: 9px solid white;
    }

    .sort-window.active {
        display: block;
    }

.sort-window-card {
    padding: 12px 16px;
    margin-bottom: 4px;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .sort-window-card:hover {
        background-color: #f0f8ff;
        transform: translateX(4px);
    }

    .sort-window-card:last-child {
        margin-bottom: 0;
    }

    .sort-window-card label {
        cursor: pointer;
        font-size: 14px;
        color: #333;
        font-weight: 500;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
    }

    .sort-window-card input[type="checkbox"],
    .sort-window-card input[type="radio"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
        accent-color: #2a90d0;
    }

    .sort-window-card:has(input:checked) {
        background-color: #e6f3ff;
        border-left: 3px solid #2a90d0;
    }

        .sort-window-card:has(input:checked) label {
            color: #2a90d0;
            font-weight: 600;
        }

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

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

.sort-window.active {
    animation: slideDown 0.3s ease;
}

.overhead-wrapper {
    display: flex;
    flex-direction: row;
    white-space: nowrap;
    align-items: center;
}

.resultados {
    font-size: 200%;
}

.range-values {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 6px;
}

.range-separator {
    flex: 0 0 auto;
}

.date-range {
    flex: 1 1 0;
    width: 100%;
    height: 36px;
    padding: 4px 6px;
    font-size: 14px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
}

    .date-range::-webkit-calendar-picker-indicator {
        cursor: pointer;
    }

.updatepanel-wrapper {
    position: relative; /* ESTO ES LO QUE FALTABA */
}

.overlay {
    position: absolute;
    inset: 0; /* top:0 left:0 right:0 bottom:0 */
    background: rgba(255, 255, 255, 0.6);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: all;
}

.spinner {
    font-weight: bold;
    font-size: 16px;
}

@media (max-width:960px) {
    .filter-sort-header {
        display: flex;
        flex-direction: row;
        margin-bottom: 15px;
        width: 100%;
        height: 50px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .wrapper {
        display: block;
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        width: 90%;
        max-width: 350px;
        background-color: white;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
        transition: left 0.3s ease-in-out;
        z-index: 9999;
        overflow-y: auto;
        padding: 20px;
    }

        .wrapper.active {
            left: 0;
        }

    .sidebar-content {
        height: 100vh;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        transition: opacity 0.3s ease;
    }

        .sidebar-overlay.active {
            display: flex;
            flex-direction: column;
        }

    .resize-handle {
        display: none;
    }

    .close-sidebar {
        display: block;
        position: absolute;
        top: 10px;
        right: 10px;
        background: transparent;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #333;
        z-index: 10000;
        padding: 5px 10px;
    }

        .close-sidebar:hover {
            color: #2a90d0;
        }

    .filter-button {
        display: inline-block;
        background-color: transparent;
        border: 2px solid #2a90d0;
        font-size: 15px;
        color: #2a90d0;
        padding: 10px 20px;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-weight: 600;
        width: 120px;
    }

        .filter-button:hover {
            background-color: #2a90d0;
            color: white;
        }

        .filter-button:active {
            transform: scale(0.98);
        }

    .close-sidebar {
        position: absolute;
        top: 10px;
        right: 10px;
        background: transparent;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #333;
        z-index: 10000;
        padding: 5px 10px;
    }

        .close-sidebar:hover {
            color: #2a90d0;
        }

    .overhead-wrapper {
        display: flex;
        flex-direction: column;
        white-space: nowrap;
        align-items: center;
    }

    .resultados {
        font-size: 150%;
    }
}

