﻿ 
/*.filter-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}*/

.filter-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
}

.filter-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sede-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.sede-option {
    flex: 1;
    min-width: 120px;
}

    .sede-option input[type="radio"] {
        display: none;
    }

.sede-label {
    display: block;
    padding: 0.6rem 0.8rem;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.85rem;
}

.sede-option input[type="radio"]:checked + .sede-label {
    background: #4949b2;
    color: white;
    border-color: #4949b2; /*:#C20000 ;*/
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(194, 0, 0, 0.3);
}

.sede-label:hover {
    border-color: #4949b2;
    transform: translateY(-2px);
}

.modalidad-options {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.modalidad-option {
    flex: 1;
}

    .modalidad-option input[type="checkbox"] {
        display: none;
    }

.modalidad-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.6rem 0.8rem;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.85rem;
}

.modalidad-option input[type="checkbox"]:checked + .modalidad-label {
    background: #4949b2;
    color: white;
    border-color: #4949b2;
}

.sidebar-modern {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

    .sidebar-modern::-webkit-scrollbar {
        width: 5px;
    }

    .sidebar-modern::-webkit-scrollbar-thumb {
        background: #C20000;
        border-radius: 3px;
    }

.especialidad-title {
    color: #C20000;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
   /* border-bottom: 2px solid #C20000;*/
}

.menu-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    margin-bottom: 0.3rem;
}

.item-link {
    display: block;
    padding: 0.5rem 0.8rem;
    color: #495057;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.85rem;
}

    .item-link:hover {
        background: #f8f9fa;
        color: #C20000;
        transform: translateX(3px);
    }

    .item-link.active {
        background: #C20000;
        color: white;
    }

.doctor-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .doctor-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    }

.doctor-image-container {
    position: relative;
    padding: 1.5rem 1.5rem 0.8rem;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.doctor-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

.sede-badge {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: #C20000;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
}

.doctor-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.doctor-name {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.doctor-specialty {
    color: #7f8c8d;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #ecf0f1;
}

.availability-section {
    background: #f8f9fa;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 0.8rem;
}

.availability-title {
    color: #C20000;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
}

.availability-date {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.2rem;
}

.availability-time {
    color: #7f8c8d;
    font-size: 0.85rem;
}

.no-availability {
    color: #e74c3c;
    font-style: italic;
    text-align: center;
    padding: 0.8rem;
    font-size: 0.85rem;
}

.btn-appointment {
    width: 100%;
    padding: 0.8rem;
    background: #C20000;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

    .btn-appointment:hover {
        background: #a00000;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(194, 0, 0, 0.3);
    }

.btn-search {
    background: #C20000;
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

    .btn-search:hover {
        background: #a00000;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(194, 0, 0, 0.3);
    }

.no-results {
    text-align: center;
    padding: 3rem;
    color: #7f8c8d;
}

    .no-results i {
        font-size: 4rem;
        margin-bottom: 1rem;
        color: #C20000;
    }

/*@media (max-width: 768px) {
    .sidebar-modern {
        position: relative;
        margin-bottom: 2rem;
    }

    .doctor-card {
        margin-bottom: 1.5rem;
    }
}*/

/* Botón Toggle para Especialidades */
.navbar-toggle-especialidades {
    display: none;
    width: 100%;
    padding: 0.8rem;
    background: #C20000;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    margin-bottom: 1rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

    .navbar-toggle-especialidades:hover {
        background: #a00000;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(194, 0, 0, 0.3);
    }

    .navbar-toggle-especialidades i {
        font-size: 1.2rem;
    }

/* Header del Sidebar con botón cerrar */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
 /*   border-bottom: 2px solid #C20000;*/
}

.close-sidebar {
    display: none;
    background: transparent;
    border: none;
    color: #C20000;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: transform 0.3s ease;
}

    .close-sidebar:hover {
        transform: rotate(90deg);
    }

/* Overlay para cerrar el menú */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

    .sidebar-overlay.active {
        display: block;
    }

/* Estilos responsive */
@media (max-width: 991px) {
    .navbar-toggle-especialidades {
        display: flex;
    }

    .close-sidebar {
        display: block;
    }

    .sidebar-modern {
        position: fixed;
        left: -300px;
        top: 0;
        width: 280px;
        height: 100vh;
        z-index: 999;
        transition: left 0.3s ease;
        max-height: 100vh;
        overflow-y: auto;
    }

        .sidebar-modern.active {
            left: 0;
            box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
        }

    .especialidad-title {
        margin-bottom: 0;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .filter-section {
        padding: 1rem 0.5rem;
    }

    .sede-selector {
        flex-direction: column;
    }

    .sede-option {
        width: 100%;
    }

    .doctor-card {
        margin-bottom: 1.5rem;
    }
 
    .sidebar-modern {
        width: 260px;
    }
}

@media (min-width: 992px) {
    .sidebar-modern {
        position: sticky;
        top: 20px;
    }
}