/* ============================================================================
   BLUBA - CSS COMÚN COMPARTIDO
   Estilos genericos y reutilizables para Admin, Integra y Tutor
   ============================================================================ */

/* ==========================================
   PAGE HEADER - Encabezado moderno
========================================== */
.page-header-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.header-icon-wrapper {
    display: flex;
    align-items: center;
}

.header-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.header-text {
    flex: 1;
}

.header-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.header-subtitle {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
}

/* ==========================================
   GRADIENT BACKGROUNDS - Para íconos y botones
========================================== */
.bg-gradient-primary {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
}

.bg-gradient-consultant {
    background: linear-gradient(135deg, #28a745, #218838);
}

.bg-gradient-admin {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.bg-gradient-diagnosis {
    background: linear-gradient(135deg, #20c997, #17a589);
}

.bg-gradient-independent {
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
}

.bg-gradient-profession {
    background: linear-gradient(135deg, #fd7e14, #d9651a);
}

.bg-gradient-specialist {
    background: linear-gradient(135deg, #e83e8c, #c02f73);
}

.bg-gradient-insurance {
    background: linear-gradient(135deg, #20c997, #17a589);
}

.bg-gradient-reason {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.bg-gradient-contract {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.bg-gradient-tutor {
    background: linear-gradient(135deg, #fd7e14, #d9651a);
}

.bg-gradient-center {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.bg-gradient-support {
    background: linear-gradient(135deg, #dc3545, #bd2130);
}

.bg-gradient-user {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #28a745, #218838);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #dc3545, #bd2130);
}

.bg-gradient-document {
    background: linear-gradient(135deg, #fd7e14, #e8590c);
}

/* ==========================================
   BUTTONS - Botones de acción
========================================== */
.btn-action {
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    white-space: nowrap;
}

.btn-action-primary {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
}

.btn-action-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.3);
}

.btn-action-consultant {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
}

.btn-action-consultant:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.3);
}

.btn-action-support {
    background: linear-gradient(135deg, #dc3545, #bd2130);
    color: white;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.btn-action-support:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.3);
}

.btn-action-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

.btn-action-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(108, 117, 125, 0.3);
}

.btn-action-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: white;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

.btn-action-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.4);
}

.btn-action-small {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================
   ACTION BUTTONS - Botones de iconos
========================================== */
.action-buttons-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-action-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-action-icon:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-icon-turquoise {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.btn-icon-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.btn-icon-primary {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
}

.btn-icon-navy {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
}

.btn-icon-mint {
    background: linear-gradient(135deg, #20c997, #17a589);
}

.btn-icon-sky {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.btn-icon-danger {
    background: linear-gradient(135deg, #dc3545, #bd2130);
}

.btn-icon-success {
    background: linear-gradient(135deg, #28a745, #218838);
}

/* ==========================================
   FILTERS CARD - Tarjeta de filtros
========================================== */
.filters-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
}

.filters-header {
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 77, 107, 0.2);
}

.filters-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
}

.filter-label {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control-modern {
    width: 100%;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 0.625rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control-modern:focus {
    border-color: var(--primary-color, #4A90E2);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.15);
    outline: none;
}

.switch-container {
    margin-top: 0.5rem;
}

.form-check-input-modern {
    width: 50px;
    height: 26px;
    cursor: pointer;
    display: none;
}

.form-check-label-modern {
    margin-left: 0.75rem;
    cursor: pointer;
}

.switch-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    transition: all 0.3s ease;
}

.switch-badge.active {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.btn-filter {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

.btn-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.3);
}

/* ==========================================
   SEARCH - Búsqueda
========================================== */
.search-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.search-input {
    width: 100%;
    padding: 0.5rem 3rem 0.4rem 3rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color, #4A90E2);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.15);
}

/* ==========================================
   TABLE CONTAINER
========================================== */
.table-container-modern {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
}

/* ==========================================
   CARDS - Tarjetas genéricas
========================================== */
.card-modern {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.ticket-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.ticket-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: var(--primary-color, #4A90E2);
}

.tickets-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ==========================================
   LOADING & EMPTY STATES
========================================== */
.loading-state {
    text-align: center;
    padding: 5rem 2rem;
}

.empty-state {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 2px solid rgba(0,0,0,0.05);
    margin: 2rem auto;
}

.empty-icon-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.empty-icon {
    font-size: 3.5rem;
    color: #6c757d;
    margin: 0;
}

.empty-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.empty-text {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.empty-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.empty-actions .btn-action {
    min-width: 250px;
    justify-content: center;
}

/* ==========================================
   RESPONSIVE DESIGN
========================================== */
@media (max-width: 991.98px) {
    .page-header-modern {
        flex-direction: column;
        align-items: stretch;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-action {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .header-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .header-title {
        font-size: 1.5rem;
    }

    .header-subtitle {
        font-size: 0.9rem;
    }

    .filters-card {
        padding: 1rem;
    }

    .action-buttons-group {
        gap: 0.35rem;
    }

    .btn-action-icon {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .ticket-card {
        padding: 1rem;
    }

    .empty-state {
        padding: 3rem 1.5rem;
        margin: 1rem auto;
    }

    .empty-icon-wrapper {
        width: 100px;
        height: 100px;
    }

    .empty-icon {
        font-size: 2.5rem;
    }

    .empty-title {
        font-size: 1.5rem;
    }

    .empty-text {
        font-size: 1rem;
    }

    .empty-actions .btn-action {
        min-width: 100%;
    }

    /* Message cards responsive */
    .message-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .message-title {
        font-size: 1rem;
    }

    .message-card .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .message-card .btn-group .btn {
        width: 100%;
    }

    .empty-state-messages {
        padding: 3rem 1.5rem;
    }

    .empty-state-messages .empty-icon-wrapper {
        width: 80px;
        height: 80px;
    }

    .empty-state-messages .empty-icon-wrapper i {
        font-size: 2rem;
    }
}

/* ==========================================
   COMUNICACIONES PAGE STYLES
========================================== */
.comunicaciones-container {
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    padding-bottom: 3rem;
}

.page-header-communications {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 2.5rem 0;
    margin-bottom: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-bottom: 3px solid var(--primary-color);
}

.page-header-communications .header-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.page-header-communications .header-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
}

.page-header-communications .header-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
}

.connection-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.connection-status.connected {
    background: rgba(255,255,255,0.2);
    color: white;
}

.connection-status.connected i {
    color: #28a745;
    animation: pulse 2s ease-in-out infinite;
}

.connection-status.disconnected {
    background: rgba(255,255,255,0.2);
    color: white;
}

.connection-status.disconnected i {
    color: #dc3545;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.stats-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s ease;
}

.stats-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.stats-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    flex-shrink: 0;
}

.stats-info {
    flex-grow: 1;
}

.stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.25rem;
}

.stats-label {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 0;
}

.communications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.communication-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.communication-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateX(4px);
    border-color: var(--primary-color);
}

.communication-card .comm-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.empty-state-inline {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-inline i {
    display: block;
    margin-bottom: 1rem;
}

/* ==========================================
   MESSAGES TAB STYLES
========================================== */
.messages-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 2px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.message-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.message-card.has-unread {
    border-left: 4px solid #dc3545;
    background: linear-gradient(to right, rgba(220, 53, 69, 0.02), white);
}

.message-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.message-icon.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb, 0, 123, 255), 0.3);
}

.message-icon.archived {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}

.message-card:hover .message-icon {
    transform: scale(1.1) rotate(5deg);
}

.message-title {
    color: #212529;
    font-size: 1.1rem;
}

.message-status {
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
}

.animate-pulse {
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.empty-state-messages {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    border: 2px dashed #dee2e6;
}

.empty-state-messages .empty-icon-wrapper {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.empty-state-messages .empty-icon-wrapper i {
    font-size: 2.5rem;
    color: #6c757d;
    margin: 0;
}

/* ==========================================
   MESSAGES DROPDOWN STYLES
========================================== */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.notification-item {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.notification-item:hover {
    background: linear-gradient(to right, rgba(var(--primary-color-rgb, 0, 123, 255), 0.05), transparent);
    border-left-color: var(--primary-color);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.dropdown-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: sticky;
    top: 0;
    z-index: 1;
    border-bottom: 1px solid #dee2e6;
}

/* ==========================================
   AGENDA / SCHEDULE STYLES
========================================== */
.page-header-schedule {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
}

.bg-gradient-schedule {
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
}

.schedule-controls {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.professional-selector {
    flex: 1;
    min-width: 300px;
}

.selector-label {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control-schedule {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-control-schedule:focus {
    border-color: #6f42c1;
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.15);
    outline: none;
}

.btn-new-session {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.btn-new-session:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.3);
}

/* ==========================================
   LEGEND CARD - Leyenda de estados
========================================== */
.legend-card {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.legend-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dot-scheduled {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.dot-attended {
    background: linear-gradient(135deg, #28a745, #218838);
}

.dot-missed {
    background: linear-gradient(135deg, #dc3545, #bd2130);
}

.dot-cancelled {
    background: linear-gradient(135deg, #6c757d, #5a6268);
}

/* Mantener por compatibilidad */
.dot-pending {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.legend-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
}

/* ==========================================
   RESPONSIVE PARA AGENDA
========================================== */
@media (max-width: 991.98px) {
    .schedule-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .professional-selector {
        width: 100%;
        min-width: unset;
    }

    .btn-new-session {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .page-header-schedule {
        padding: 1.5rem;
    }

    .legend-card {
        padding: 1rem;
        gap: 1rem;
    }

    .legend-item {
        gap: 0.5rem;
    }

    .legend-dot {
        width: 16px;
        height: 16px;
    }

    .legend-text {
        font-size: 0.85rem;
    }
}

/* ==========================================
   REPORTS STYLES - Estilos de reportes
========================================== */
.bg-gradient-reports {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

/* ==========================================
   SEARCH CARD - Barra de búsqueda
========================================== */
.search-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: #6c757d;
    font-size: 1.1rem;
}

.search-input {
    width: 100%;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #17a2b8;
    box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.15);
}

.search-clear {
    position: absolute;
    right: 0.5rem;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(108, 117, 125, 0.1);
    border-radius: 8px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-clear:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* ==========================================
   CATEGORY FILTERS - Filtros de categoría
========================================== */
.category-filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 0.625rem 1.25rem;
    border: 2px solid #e0e0e0;
    background: white;
    color: #495057;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.filter-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #17a2b8;
    color: #17a2b8;
}

.filter-chip.active {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

/* ==========================================
   REPORT CARD - Tarjetas de reporte
========================================== */
.report-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    overflow: hidden;
}

.report-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.report-card:hover .btn-generate {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

.report-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.report-icon i {
    font-size: 1.75rem;
    color: white;
}

.report-card .card-title {
    font-size: 1.125rem;
    color: #2c3e50;
}

.report-card .card-text {
    line-height: 1.6;
    min-height: 60px;
}

.report-card .badge.bg-light {
    border: 1px solid #dee2e6;
    font-weight: 500;
}

.btn-generate {
    transition: all 0.3s ease;
    font-weight: 500;
    border-radius: 8px;
}

.btn-generate:hover {
    transform: scale(1.02);
}

/* ==========================================
   RESPONSIVE PARA REPORTES
========================================== */
@media (max-width: 575.98px) {
    .search-card {
        padding: 1rem;
    }

    .search-input {
        font-size: 0.9rem;
        padding: 0.75rem 3rem 0.75rem 2.5rem;
    }

    .filter-chip {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}

/* ==========================================
   FORM CONTAINER - Contenedores de formularios
========================================== */
.form-container {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.form-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    width: 100%;
}

@media (max-width: 767.98px) {
    .form-container {
        padding: 1rem 0;
    }

    .form-card {
        padding: 1.5rem;
        border-radius: 12px;
    }
}

/* ==========================================
   PATIENT HEADER - Header del paciente (Tutor)
========================================== */
.patient-header-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.patient-avatar {
    flex-shrink: 0;
}

.avatar-image {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.avatar-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border: 4px solid white;
}

.patient-info {
    flex: 1;
}

.form-group-modern {
    margin-bottom: 1rem;
}

.form-label-modern {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.form-select-modern {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
}

.form-select-modern:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.patient-details {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-label {
    font-weight: 600;
    color: #6c757d;
}

.detail-value {
    color: #212529;
    font-weight: 500;
}

/* Responsive para Patient Header */
@media (max-width: 991.98px) {
    .patient-header-modern {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .patient-details {
        flex-direction: column;
        gap: 1rem;
    }

    .detail-item {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .avatar-image,
    .avatar-placeholder {
        width: 72px;
        height: 72px;
        font-size: 1.5rem;
    }

    .patient-details {
        padding: 0.75rem;
    }
}

/* ==========================================
   MANUAL / HELP PAGE STYLES - Estilos para páginas de ayuda
========================================== */
.manual-root {
    min-height: 100vh;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.manual-root .hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--primary-color);
}

.manual-root .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.manual-root .hero .container {
    position: relative;
    z-index: 1;
}

.manual-root .hero .display-6 {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.manual-root .section {
    scroll-margin-top: 80px;
}

.manual-root .card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}

.manual-root .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.manual-root .card-body {
    position: relative;
}

.manual-root .info-tile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.manual-root .info-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.manual-root .info-tile i {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.manual-root .state-pill {
    padding: 0.625rem 1.25rem;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid currentColor;
}

.manual-root .menu-manual .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #495057 !important;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
}

.manual-root .menu-manual .nav-link:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--primary-color);
    transform: translateX(4px);
}

.manual-root .menu-manual .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    font-weight: 600;
}

.manual-root .menu-manual .nav-link i {
    opacity: 0.7;
}

.manual-root .form-control,
.manual-root .input-group .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.manual-root .form-control:focus,
.manual-root .input-group .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb, 74, 144, 226), 0.15);
    outline: none;
}

.manual-root .input-group-text {
    border: 2px solid #e0e0e0;
    border-right: none;
    border-radius: 12px 0 0 12px;
    background: transparent;
}

.manual-root .list-group-item {
    border: none;
    border-radius: 8px !important;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.manual-root .list-group-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateX(4px);
}

.manual-root .accordion-item {
    border: none;
    border-radius: 12px !important;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

.manual-root .accordion-button {
    border-radius: 12px !important;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    background: white;
    color: #495057;
    transition: all 0.3s ease;
}

.manual-root .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: none;
}

.manual-root .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.manual-root .accordion-button::after {
    filter: brightness(0) invert(0);
}

.manual-root .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.manual-root .accordion-body {
    padding: 1.5rem;
    background: white;
}

.manual-root .badge {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.manual-root .btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.manual-root .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.manual-root .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

.manual-root .btn-light {
    background: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.manual-root .btn-light:hover {
    transform: translateY(-2px);
    background: #f8f9fa;
}

.manual-root .btn-outline-light {
    border: 2px solid rgba(255,255,255,0.5);
}

.manual-root .btn-outline-light:hover {
    background: rgba(255,255,255,0.2);
    border-color: white;
}

.manual-root .btn-outline-secondary {
    border: 2px solid #dee2e6;
}

.manual-root .btn-outline-secondary:hover {
    transform: translateY(-2px);
    background: #6c757d;
    border-color: #6c757d;
}

.manual-root .alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.manual-root .position-sticky {
    top: 1.5rem;
}

/* Estilos para el offcanvas */
.manual-root .offcanvas {
    border-radius: 0 16px 16px 0;
}

.manual-root .offcanvas-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.manual-root .offcanvas-header .btn-close {
    filter: brightness(0) invert(1);
}

.manual-root .offcanvas-body .nav-link {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.manual-root .offcanvas-body .nav-link:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--primary-color);
    transform: translateX(4px);
}

/* Sección de soporte con colores personalizados */
.manual-root .support-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    border: none !important;
}

.manual-root .support-section .btn-light {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
    border: 2px solid white;
}

.manual-root .support-section .btn-light:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Asegurar que los iconos se vean correctamente */
.manual-root i.fas,
.manual-root i.fa-solid,
.manual-root i[class*="fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome" !important;
    font-weight: 900;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

/* Responsive para manual */
@media (max-width: 991.98px) {
    .manual-root .hero {
        text-align: center;
    }

    .manual-root .hero .display-6 {
        font-size: 2rem;
    }

    .manual-root .position-sticky {
        position: relative !important;
        top: 0;
    }
}

@media (max-width: 575.98px) {
    .manual-root .hero {
        padding: 2rem 0 !important;
    }

    .manual-root .hero .display-6 {
        font-size: 1.75rem;
    }

    .manual-root .hero .lead {
        font-size: 1rem;
    }

    .manual-root .card-body {
        padding: 1.5rem !important;
    }

    .manual-root .info-tile {
        padding: 1rem;
    }

    .manual-root .info-tile i {
        font-size: 1.5rem;
    }
}

/* ========================================
   SISTEMA DE DISPONIBILIDAD Y CITAS
   ======================================== */

/* Container principal */
.availability-manager-container {
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    padding: 2rem 0;
}

.page-header-availability {
    background: white;
    padding: 2rem 0;
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Calendario de Disponibilidad - Vista Grande (Integra) */
/* ========================================
   CALENDARIO DE DISPONIBILIDAD - NUEVO
   ======================================== */

.calendar-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.calendar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.calendar-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.calendar-table thead th {
    padding: 15px 8px;
    text-align: center;
    font-weight: 600;
    color: white;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.calendar-table tbody tr {
    border-bottom: 1px solid #dee2e6;
}

.calendar-table tbody tr:last-child {
    border-bottom: none;
}

.calendar-day {
    width: 14.28%; /* 100% / 7 días */
    height: 90px;
    border: 1px solid #dee2e6;
    background: white;
    padding: 8px;
    vertical-align: top;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.calendar-day.empty {
    background: #f8f9fa;
    cursor: default;
    pointer-events: none;
}

.calendar-day:not(.empty):hover {
    background: #f0f7ff;
    transform: scale(1.02);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Número del día */
.day-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 5px;
    display: block;
}

/* Indicador de slots disponibles */
.day-slots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.75rem;
    color: #28a745;
    font-weight: 600;
    margin-top: 5px;
}

.day-slots i {
    font-size: 1rem;
}

/* Día con slots disponibles */
.calendar-day.has-slots {
    background: linear-gradient(135deg, #ffffff 0%, #e6ffe6 100%);
    border-color: #28a745;
}

.calendar-day.has-slots:hover {
    background: linear-gradient(135deg, #f0fff4 0%, #d4edda 100%);
}

/* Día con configuración pero sin slots disponibles */
.calendar-day.has-config {
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
    border-color: #2196f3;
    border-style: dashed;
}

.calendar-day.has-config:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #cfe8fc 100%);
}

/* Indicador de configuración */
.day-config-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    font-size: 1rem;
    color: #2196f3;
}

.calendar-day.has-config .day-number {
    color: #1976d2;
}

/* Día de hoy */
.calendar-day.today {
    background: #fff3cd;
    border-color: #ffc107;
    border-width: 2px;
}

.calendar-day.today .day-number {
    color: #f57c00;
}

/* Día seleccionado */
.calendar-day.selected {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-color: var(--primary-color);
    border-width: 2px;
    color: white;
}

.calendar-day.selected .day-number {
    color: white;
}

.calendar-day.selected .day-slots {
    color: white;
}

.calendar-day.selected:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Día no operativo */
.calendar-day.not-operating {
    background: repeating-linear-gradient(
        45deg,
        #f8f9fa,
        #f8f9fa 10px,
        #f1f3f5 10px,
        #f1f3f5 20px
    );
    cursor: not-allowed;
    opacity: 0.7;
}

.calendar-day.not-operating .day-number {
    color: #6c757d;
}

/* Día sin configuración del profesional (operativo pero sin horarios configurados) */
.calendar-day.not-configured {
    background: repeating-linear-gradient(
        135deg,
        #ffffff,
        #ffffff 8px,
        #f0f0f0 8px,
        #f0f0f0 16px
    );
    cursor: not-allowed;
    opacity: 0.6;
    border-color: #dee2e6;
}

.calendar-day.not-configured .day-number {
    color: #adb5bd;
}

.calendar-day.not-configured:hover {
    transform: none;
    box-shadow: none;
    background: repeating-linear-gradient(
        135deg,
        #ffffff,
        #ffffff 8px,
        #f0f0f0 8px,
        #f0f0f0 16px
    );
}

/* Día pasado (fecha anterior a hoy) */
.calendar-day.past-day {
    background: #f8f9fa;
    cursor: not-allowed;
    opacity: 0.5;
    border-color: #e9ecef;
    pointer-events: none;
}

.calendar-day.past-day .day-number {
    color: #ced4da;
    text-decoration: line-through;
}

.calendar-day.past-day .day-slots {
    opacity: 0.5;
}

.calendar-day.past-day:hover {
    transform: none;
    box-shadow: none;
    background: #f8f9fa;
}

/* Responsive */
@media (max-width: 768px) {
    .calendar-table thead th {
        padding: 10px 4px;
        font-size: 0.75rem;
    }
    
    .calendar-day {
        height: 70px;
        padding: 5px;
    }
    
    .day-number {
        font-size: 0.95rem;
    }
    
    .day-slots {
        font-size: 0.65rem;
    }
    
    .day-slots i {
        font-size: 0.85rem;
    }
}

/* Calendario Pequeño (Tutor) */
.availability-calendar-small {
    width: 100%;
}

.calendar-weekdays-small {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.weekday-label-small {
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    padding: 0.25rem;
    font-size: 0.75rem;
}

.calendar-grid-small {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}

.calendar-day-small {
    aspect-ratio: 1;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0;
}

.calendar-day-small:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.calendar-day-small.available {
    border-color: #28a745;
    background: linear-gradient(135deg, #ffffff 0%, #d4edda 100%);
    color: #155724;
}

.calendar-day-small.unavailable,
.calendar-day-small:disabled {
    background: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.4;
    color: #6c757d;
}

.calendar-day-small.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 3px 12px rgba(var(--primary-color-rgb, 0, 123, 255), 0.4);
}

/* Iconos de disponibilidad */
.availability-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

/* Time Slots Grid */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.time-slot-btn {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

.time-slot-btn:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #ffffff 0%, rgba(var(--primary-color-rgb, 0, 123, 255), 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.time-slot-btn.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(var(--primary-color-rgb, 0, 123, 255), 0.4);
}

.time-slot-btn.selected:hover {
    transform: translateY(-2px) scale(1.05);
}

.page-header-appointment {
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid var(--primary-color);
}

/* Status Icons */
.appointment-icon-status {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.appointment-icon-status.status-scheduled {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.appointment-icon-status.status-completed {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.appointment-icon-status.status-cancelled {
    background: linear-gradient(135deg, #dc3545 0%, #bd2130 100%);
}

.appointment-icon-status.status-rescheduled {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

.appointment-icon-status.status-noshow {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
}

/* Empty State Inline */
.empty-state-inline {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-state-inline i {
    font-size: 3rem;
    color: #adb5bd;
    display: block;
}

/* Responsive Calendar */
@media (max-width: 768px) {
    /* Calendario Moderno Responsive */
    .calendar-header-day {
        padding: 8px 4px;
        font-size: 0.7rem;
    }

    .calendar-cell {
        height: 70px;
        padding: 3px;
    }

    .cell-day-number {
        font-size: 0.75rem;
        min-width: 20px;
        height: 20px;
    }

    .cell-badge {
        width: 14px;
        height: 14px;
        font-size: 0.55rem;
    }

    .cell-slots {
        font-size: 0.65rem;
        padding: 1px 4px;
    }

    /* Estilos viejos para compatibilidad */
    .calendar-day {
        padding: 0.25rem;
    }

    .day-number {
        font-size: 0.9rem;
    }

    .day-indicator {
        font-size: 0.7rem;
    }

    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .time-slot-btn {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .availability-icon,
    .appointment-icon-status {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .calendar-grid {
        gap: 0.25rem;
    }

    .calendar-weekdays {
        gap: 0.25rem;
    }

    .weekday-label {
        font-size: 0.75rem;
        padding: 0.25rem;
    }

    .time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
   NAV TABS - Fix para card-header-tabs
   Evita que los colores sean sobrescritos
========================================== */
.card-header-tabs .nav-link {
    color: #868e96 !important;
    background-color: transparent !important;
    border-color: transparent !important;
    transition: all 0.3s ease;
}

.card-header-tabs .nav-link:hover {
    color: #346cb0 !important;
    border-color: #dee2e6 !important;
}

.card-header-tabs .nav-link.active,
.card-header-tabs .nav-item.show .nav-link {
    color: #222230 !important;
    background-color: transparent !important;
    border-color: #346cb0 !important;
    font-weight: 600;
}

/* ==========================================
   MAIN MENU - Menú de navegación principal
========================================== */
.menu-consultant-info {
    padding: 1rem;
    margin-bottom: 0.5rem;
    list-style: none;
}

.consultant-info-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.consultant-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.consultant-details {
    flex: 1;
    min-width: 0;
}

.consultant-name {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.02em;
}

.consultant-source {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
}

.consultant-source i {
    margin-right: 0.25rem;
    font-size: 0.75rem;
}

.menu-separator {
    padding: 0.75rem 1rem 0.5rem 1rem;
    list-style: none;
}

.menu-separator .separator-text {
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.menu-separator .separator-text i {
    opacity: 0.7;
    font-size: 0.85rem;
}

/* Responsive para menú */
@media (max-width: 991.98px) {
    .consultant-info-card {
        padding: 0.875rem;
    }

    .consultant-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .consultant-name {
        font-size: 0.95rem;
    }

    .consultant-source {
        font-size: 0.8rem;
    }
}

/* ========================================
   DASHBOARD PAGE STYLES
   ======================================== */

/* Tarjetas de información rápida */
.info-card-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    height: 100%;
}

.info-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.info-card-modern .info-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.info-card-modern .info-content {
    flex: 1;
}

.info-card-modern .info-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
    color: white;
}

.info-card-modern .info-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    color: white;
}

/* Secciones del dashboard */
.dashboard-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.section-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 2px solid #dee2e6;
}

.section-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.section-header-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
    margin: 0;
}

.section-body {
    padding: 2rem;
}

/* Data tiles */
.data-tile {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    height: 100%;
}

.data-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    border-color: #dee2e6;
}

.data-tile-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.data-tile-content {
    flex: 1;
    min-width: 0;
}

.data-tile-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.data-tile-value {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    word-wrap: break-word;
}

/* Tarjetas de tutores */
.tutor-card {
    background: white;
    border-radius: 16px;
    border: 2px solid #e9ecef;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tutor-card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
    transform: translateY(-4px);
}

.tutor-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tutor-avatar {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tutor-info {
    flex: 1;
    color: white;
}

.tutor-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tutor-relationship {
    display: flex;
    gap: 0.5rem;
}

.tutor-card-body {
    padding: 1.5rem;
}

.tutor-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.tutor-detail > i {
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.tutor-detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.tutor-detail-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: #212529;
}

/* Tarjetas de médicos */
.medical-card {
    background: linear-gradient(135deg, #ffffff 0%, #fffaf0 100%);
    border-radius: 12px;
    padding: 1.25rem;
    border: 2px solid #ffc107;
    display: flex;
    gap: 1rem;
    transition: all 0.3s ease;
    height: 100%;
}

.medical-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
}

.medical-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.medical-content {
    flex: 1;
}

.medical-name {
    font-size: 1rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
}

.medical-specialty {
    margin-bottom: 0.5rem;
}

.medical-info {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* Tarjetas clínicas */
.clinical-card {
    background: white;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
}

.clinical-card:hover {
    border-color: #dc3545;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.15);
}

.clinical-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #212529;
}

.clinical-header i {
    font-size: 1.25rem;
}

.clinical-content {
    padding: 1.25rem;
    min-height: 150px;
    font-size: 0.95rem;
    color: #495057;
    line-height: 1.6;
}

/* Tarjetas misceláneas */
.misc-card {
    background: white;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
}

.misc-card:hover {
    border-color: #6c757d;
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.15);
}

.misc-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #212529;
    font-size: 0.95rem;
}

.misc-header i {
    font-size: 1.25rem;
}

.misc-content {
    padding: 1.25rem;
    min-height: 120px;
    font-size: 0.95rem;
    color: #495057;
    line-height: 1.6;
}

/* ========================================
   MESSAGES PAGE STYLES
   ======================================== */

/* Barra de acciones */
.action-bar-messages {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
}

.action-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-bar-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.action-bar-info .info-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.action-bar-info h6 {
    color: white;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.btn-new-message {
    background: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-new-message:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    color: #667eea;
}

/* Tarjeta de filtros */
.filters-card-messages {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 2px solid #f0f0f0;
}

.filters-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 2px solid #dee2e6;
}

.filters-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.filters-header h6 {
    font-weight: 700;
    color: #212529;
}

.filters-body {
    padding: 1.5rem;
}

/* Grupo de filtro */
.filter-group {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.filter-group:hover {
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.1);
}

.filter-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

/* Switch moderno */
.modern-switch {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modern-switch .form-check-input {
    width: 3rem;
    height: 1.5rem;
    cursor: pointer;
    border: 2px solid #dee2e6;
    background-color: #e9ecef;
}

.modern-switch .form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
}

.switch-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    margin: 0;
}

.switch-text {
    font-weight: 600;
    color: #495057;
    font-size: 1rem;
}

.switch-status {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    font-weight: 600;
}

/* Botón de filtro */
.btn-filter {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.btn-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.3);
}

/* Tarjeta de resumen de filtros */
.filter-summary-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-around;
    height: 100%;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.summary-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mejoras en el header de filtros */
.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 77, 107, 0.2);
}

.filters-header h6 {
    color: white;
    font-weight: 600;
}

.filters-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .filter-summary-card {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .summary-item {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .filters-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Icono de tópico en tabla */
.topic-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.topic-icon.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.topic-icon.archived {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Animación de pulso para badges */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ========================================
   TARJETAS DE ESTADÍSTICAS
   ======================================== */

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--stat-color-1), var(--stat-color-2));
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.stat-card.stat-total {
    --stat-color-1: #667eea;
    --stat-color-2: #764ba2;
}

.stat-card.stat-active {
    --stat-color-1: #28a745;
    --stat-color-2: #20c997;
}

.stat-card.stat-archived {
    --stat-color-1: #6c757d;
    --stat-color-2: #495057;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--stat-color-1), var(--stat-color-2));
    color: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
    width: 100%;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--stat-color-1), var(--stat-color-2));
    -webkit-background-clip: text;
    background-clip: text;
    margin-bottom: 0.35rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   FILTROS COMPACTOS
   ======================================== */

.compact-filters-card {
    background: white;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.filter-label-compact {
    font-weight: 600;
    color: #495057;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.filter-label-compact i {
    color: #667eea;
}

.compact-filters-card .form-check-input {
    width: 3rem;
    height: 1.5rem;
    cursor: pointer;
    border: 2px solid #dee2e6;
    background-color: #e9ecef;
}

.compact-filters-card .form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.compact-filters-card .form-check-label {
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    margin-left: 1.8rem;
    margin-top: 5px;
}

/* Estadísticas compactas horizontales */
.stat-item-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-item-compact i {
    font-size: 1.5rem;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.stat-item-compact.stat-total-compact i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-item-compact.stat-archived-compact i {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.stat-item-compact.stat-active-compact i {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.stat-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-label-small {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.stat-value-small {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.stat-divider {
    width: 1px;
    height: 35px;
    background: linear-gradient(to bottom, transparent, #dee2e6, transparent);
}

@media (max-width: 768px) {
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .compact-filters-card {
        padding: 1rem;
    }
    
    .stat-divider {
        display: none;
    }
    
    .stat-item-compact {
        flex: 1 1 100%;
    }
}

/* ========================================
   CONSULTANT HEADER STYLES
   ======================================== */

.patient-header-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.patient-avatar {
    flex-shrink: 0;
}

.avatar-image {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.avatar-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border: 4px solid white;
}

.patient-info {
    flex: 1;
    width: 100%;
}

.form-group-modern {
    margin-bottom: 1rem;
}

.form-label-modern {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.form-select-modern {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
}

.form-select-modern:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.patient-details {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-label {
    font-weight: 600;
    color: #6c757d;
}

.detail-value {
    color: #212529;
    font-weight: 500;
}

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

@media (max-width: 991.98px) {
    .patient-header-modern {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .patient-details {
        flex-direction: column;
        gap: 1rem;
    }

    .detail-item {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Dashboard responsive */
    .section-body {
        padding: 1rem;
    }

    .info-card-modern .info-value {
        font-size: 1.5rem;
    }

    .tutor-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tutor-name {
        font-size: 1.1rem;
    }

    /* Messages responsive */
    .action-bar-content {
        flex-direction: column;
        align-items: stretch;
    }

    .action-bar-info {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }

    .btn-new-message {
        width: 100%;
    }

    .filters-body {
        padding: 1rem;
    }

    .filter-group {
        padding: 1rem;
    }

    .filters-body .text-end {
        text-align: center !important;
    }

    .btn-filter, .btn-outline-secondary {
        width: 100%;
        margin-top: 0.5rem;
        margin-left: 0 !important;
    }
}

@media (max-width: 575.98px) {
    .avatar-image,
    .avatar-placeholder {
        width: 72px;
        height: 72px;
        font-size: 1.5rem;
    }

    .patient-details {
        padding: 0.75rem;
    }
}
/* ============================================================================
   BLUBA - DASHBOARD STYLES
   Estilos específicos para dashboards y estadísticas
   ============================================================================ */

/* ==========================================
   DASHBOARD CARDS - Diseño moderno (Integra)
========================================== */
.dashboard-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.04);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--card-color-start), var(--card-color-end));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    border-color: rgba(0,0,0,0.08);
}

.dashboard-card:hover::before {
    opacity: 1;
}

/* Variables de color por tipo de tarjeta */
.card-primary { --card-color-start: #4A90E2; --card-color-end: #357ABD; }
.card-info { --card-color-start: #17a2b8; --card-color-end: #138496; }
.card-warning { --card-color-start: #ffc107; --card-color-end: #e0a800; }
.card-danger { --card-color-start: #dc3545; --card-color-end: #bd2130; }
.card-success { --card-color-start: #28a745; --card-color-end: #218838; }
.card-secondary { --card-color-start: #6c757d; --card-color-end: #545b62; }
.card-purple { --card-color-start: #9b59b6; --card-color-end: #8e44ad; }

.card-icon-wrapper {
    display: flex;
    align-items: center;
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.dashboard-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Gradientes para iconos */
.bg-primary-gradient { background: linear-gradient(135deg, #4A90E2, #357ABD); }
.bg-info-gradient { background: linear-gradient(135deg, #17a2b8, #138496); }
.bg-warning-gradient { background: linear-gradient(135deg, #ffc107, #e0a800); }
.bg-danger-gradient { background: linear-gradient(135deg, #dc3545, #bd2130); }
.bg-success-gradient { background: linear-gradient(135deg, #28a745, #218838); }
.bg-secondary-gradient { background: linear-gradient(135deg, #6c757d, #545b62); }
.bg-purple-gradient { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.bg-gradient-admin { background: linear-gradient(135deg, #667eea, #764ba2); }

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #6c757d;
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.card-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 0.75rem 0;
    line-height: 1;
    letter-spacing: -0.02em;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    align-self: flex-start;
    letter-spacing: 0.02em;
    margin-top: auto;
}

.badge-primary {
    background: rgba(74, 144, 226, 0.1);
    color: #357ABD;
}

.badge-info {
    background: rgba(23, 162, 184, 0.1);
    color: #138496;
}

.badge-warning {
    background: rgba(255, 193, 7, 0.15);
    color: #d39e00;
}

.badge-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #bd2130;
}

.badge-success {
    background: rgba(40, 167, 69, 0.1);
    color: #218838;
}

.badge-secondary {
    background: rgba(108, 117, 125, 0.1);
    color: #545b62;
}

.badge-purple {
    background: rgba(155, 89, 182, 0.1);
    color: #8e44ad;
}

/* ==========================================
   STAT CARDS (Alternative style)
========================================== */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: height 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.stat-card:hover::before {
    height: 6px;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stat-card-primary .stat-icon {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.stat-card-success .stat-icon {
    background: linear-gradient(135deg, #28a745, #218838);
}

.stat-card-warning .stat-icon {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.stat-card-info .stat-icon {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

/* Tarjetas clickeables */
a.text-decoration-none .stat-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

a.text-decoration-none .stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

a.text-decoration-none:hover {
    text-decoration: none !important;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    text-align: center;
    min-height: 35px;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: #212529;
    margin: 0.5rem 0;
    line-height: 1;
    text-align: center;
}

.stat-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
}

.stat-badge-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.stat-badge-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* ==========================================
   SKELETON LOADING
========================================== */
.skeleton-loading {
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.04);
    display: flex;
    gap: 1rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.skeleton-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skeleton-line {
    height: 16px;
    border-radius: 8px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.long {
    width: 40%;
    height: 32px;
    margin-top: 0.5rem;
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 575.98px) {
    .dashboard-card {
        padding: 1.25rem;
    }

    .card-icon {
        width: 56px;
        height: 56px;
        font-size: 1.75rem;
    }

    .card-value {
        font-size: 2rem;
    }

    .card-label {
        font-size: 0.9rem;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .stat-value {
        font-size: 1.75rem;
    }
}

@media (min-width: 1400px) {
    .card-value {
        font-size: 3rem;
    }
}

@media (max-width: 991.98px) {
    .stat-value {
        font-size: 2rem;
    }
}

/* ============================================================================
   BLUBA - THEME STYLES
   Estilos que usan variables CSS definidas en bluba-[app].css
   ============================================================================ */

/* ==========================================
   LAYOUT BACKGROUNDS
========================================== */
.app {
    background-color: var(--tertiary-color);
}

.app-aside {
    background-color: var(--primary-color);
}

.login-container {
    background-color: var(--tertiary-color);
}

.login-page {
    background-color: var(--primary-color) !important;
}

/* ==========================================
   LOGIN FORM STYLES
========================================== */
.login-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* ==========================================
   MODERN LOGIN STYLES - INTEGRA
========================================== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.back-link:hover {
    color: var(--primary-color);
    transform: translateX(-4px);
}

.back-link i {
    font-size: 0.875rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.welcome-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    animation: fadeInDown 0.6s ease;
}

.welcome-icon i {
    font-size: 2rem;
    color: white;
}

.welcome-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.welcome-subtitle {
    color: #6c757d;
    font-size: 1rem;
    margin: 0;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.login-form-modern {
    max-width: 450px;
    margin: 0 auto;
    padding: 2.5rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.6s ease 0.3s both;
}

.form-group-modern {
    margin-bottom: 1.5rem;
}

.form-label-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
}

.label-icon {
    color: var(--primary-color);
    font-size: 0.875rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input-modern {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    color: #2c3e50;
}

.form-input-modern::placeholder {
    color: #adb5bd;
}

.form-input-modern:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(52, 108, 176, 0.1);
    transform: translateY(-1px);
}

.form-input-modern:hover:not(:focus) {
    border-color: #ced4da;
    background-color: white;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: #adb5bd;
    font-size: 0.875rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.form-input-modern:focus ~ .input-icon {
    color: var(--primary-color);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.password-toggle:hover {
    color: var(--primary-color);
    background-color: #f8f9fa;
}

.password-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 108, 176, 0.1);
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.forgot-password-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-password-link:hover {
    color: var(--secondary-color);
    transform: translateX(2px);
}

.forgot-password-link i {
    font-size: 0.75rem;
}

.btn-login-modern {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(52, 108, 176, 0.3);
    margin-bottom: 1.5rem;
}

.btn-login-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 108, 176, 0.4);
}

.btn-login-modern:active {
    transform: translateY(0);
}

.btn-login-modern i {
    transition: transform 0.3s ease;
}

.btn-login-modern:hover i {
    transform: translateX(4px);
}

.privacy-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 12px;
    border-left: 3px solid var(--primary-color);
}

.privacy-notice i {
    color: var(--primary-color);
    font-size: 1rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.privacy-notice p {
    margin: 0;
    font-size: 0.8125rem;
    color: #6c757d;
    line-height: 1.5;
}

.social-section {
    text-align: center;
    margin-top: 3rem;
}

.social-title {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 1rem;
    font-weight: 500;
}

.social-icons-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.social-icon-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(52, 108, 176, 0.2);
}

.social-icon-link:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px rgba(52, 108, 176, 0.3);
}

.social-icon-link i {
    font-size: 1.25rem;
}

/* Animaciones */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive para login moderno */
@media (max-width: 768px) {
    .login-form-modern {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .welcome-title {
        font-size: 1.75rem;
    }

    .welcome-icon {
        width: 70px;
        height: 70px;
    }

    .welcome-icon i {
        font-size: 1.75rem;
    }
}

/* ==========================================
   ICON & BUTTONS
========================================== */
.icon-circle {
    background-color: var(--primary-color);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: white;
    font-size: 1.75rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

#loader {
    border-top-color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* ==========================================
   CARDS & SELECTIONS
========================================== */
.option-card {
    background-color: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.option-card:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border-color: var(--secondary-color);
}

.option-card:hover .text-muted {
    color: white !important;
}

.option-card:hover .icon-circle {
    background-color: white;
    color: var(--primary-color);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.social-icons a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons .icon-circle {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.social-icons a:hover .icon-circle {
    background-color: var(--secondary-color);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.centro-card.selected {
    background-color: var(--primary-color);
    color: white;
}

.centro-card:hover {
    background-color: var(--secondary-color);
    color: white;
}

.centro-card:hover .text-muted {
    color: white !important;
}

.center-select-container .card {
    background-color: var(--tertiary-color);
}

/* ==========================================
   MENU & NAVIGATION
========================================== */
.menu-item {
    color: white !important;
}

.menu-item:hover {
    background-color: var(--secondary-color);
    color: white;
}

.menu-item.has-active {
    background-color: var(--secondary-color);
    color: var(--primary-color) !important;
}

.stacked-menu > .menu > .menu-item.disabled > .nav-link {
    color: gray !important;
}

.stacked-menu > .menu > .menu-item.has-active > .nav-link {
    color: var(--primary-color) !important;
}

.top-bar-item .dropdown .dropdown-menu .dropdown-item:hover {
    background-color: var(--secondary-color);
    color: white;
}

.nav-link {
    color: white !important;
}

.stacked-menu > .menu > .menu-item > .menu-link {
    color: white !important;
}

.offcanvas.offcanvas-start {
    background-color: var(--primary-color);
}

.offcanvas .btn-close {
    color: white;
}

.offcanvas-title {
    color: white;
}

.offcanvas-body .menu-item.has-active a {
    color: var(--primary-color) !important;
}

.top-bar,
.app-aside,
.offcanvas.offcanvas-start {
    background-color: var(--primary-color) !important;
}

/* ==========================================
   TABS
========================================== */
.student-tab.active {
    color: white !important;
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.student-tab {
    color: white !important;
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

.tab-shelf .tab-chip {
    background-color: var(--secondary-color);
}

.tab-shelf .tab-chip:hover {
    color: white;
}

.tab-shelf .tab-chip.active {
    background-color: white;
    color: #084255;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}

.tab-shelf .tab-chip.active::after {
    content: "";
    position: absolute;
    left: 0px;
    width: 100%;
    bottom: -10px;
    height: 10px;
    background-color: white;
}

/* ==========================================
   TEXT COLORS
========================================== */
.text-primary {
    color: var(--primary-color) !important;
}

/* ==========================================
   CONSULTANT SPECIFIC
========================================== */
.consultant-top {
    background-color: var(--primary-color) !important;
}

.consultant-top .text-primary {
    color: white !important;
}

.card-info-consultant {
    background-color: var(--primary-color);
    color: white;
}

/* ==========================================
   COLORED CARDS
========================================== */
.bg-card-success {
    background: rgba(25,135,84,.2) !important;
    border-left: 4px solid #198754 !important;
}

.bg-card-success .accordion-button {
    background: rgba(0,0,0,0) !important;
}

.bg-card-danger {
    background: rgba(220,53,69,.2) !important;
    border-left: 4px solid #dc3545 !important;
}

.bg-card-danger .accordion-button {
    background: rgba(0,0,0,0) !important;
}

.bg-card-info {
    background: rgba(68,102,227,.2) !important;
    border-left: 4px solid #3559dc !important;
}

.bg-card-info .accordion-button {
    background: rgba(0,0,0,0) !important;
}

/* ============================================================================
   APP.CSS - ESTILOS ADICIONALES DE LA APLICACIÓN
   Migrado desde app.css para consolidación
   ============================================================================ */

/* ==========================================
   GENERAL
========================================== */
body {
    font-size: 16px;
}

.left-layout {
    max-width: 100%;
    max-height: 100%;
}

.logo-head {
    height: 50px;
    width: 120px;
}

.initial {
    width: 40px;
    height: 40px;
    font-size: 20px;
}

/* ==========================================
   MENU & SIDEBAR
========================================== */
.stacked-menu {
    padding-top: 0px !important;
}

.app-aside {
    width: 240px;
    height: calc(100vh - 55px); /* Resta la altura del header */
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
}

/* Contenedor interno del aside */
.aside-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.aside-menu {
    flex: 1;
    overflow: visible !important; /* Permite que el scroll funcione desde el padre */
    min-height: 0; /* Necesario para que flex funcione correctamente */
}

/* Estilo de la barra de scroll para el menú */
.app-aside::-webkit-scrollbar {
    width: 8px;
}

.app-aside::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.app-aside::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.app-aside::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Para Firefox */
.app-aside {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
}

.dropdown-menu {
    top: 100% !important;
    margin-top: 0.25rem;
}

.menu-item {
    padding: 8px;
    transition: background-color .3s;
    cursor: pointer;
}

.menu-item.has-active {
    font-weight: 700;
}

.menu-item.disabled {
    color: gray !important;
    cursor: not-allowed;
}

.offcanvas-body {
    padding: 0px;
}

.offcanvas-body .menu-item a {
    color: white;
}

.aside-footer .btn {
    color: white !important;
}

/* ==========================================
   TABS
========================================== */
.student-tab {
    height: 50px !important;
    color: black !important;
}

.student-tab.active {
    color: white !important;
    background-color: #346cb0 !important;
}

/* ==========================================
   LOGIN PAGE LAYOUT
========================================== */
.login-page {
    display: flex;
    min-height: 100vh;
    flex-direction: row;
}

.login-container {
    flex: 7;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    z-index: 2;
    padding: 20px;
}

.banner-container {
    flex: 5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vertical-landing-banner {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    padding: 2rem;
    overflow: hidden;
}

.logo-v {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ==========================================
   OPTION CARDS & SOCIAL ICONS (OVERRIDE)
========================================== */
.option-card {
    transition: box-shadow 0.3s ease;
    cursor: pointer;
}

.option-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.social-icons i {
    font-size: 1.5rem;
    margin: 0 0.5rem;
    color: white;
}

.icon-circle {
    border-radius: 50%;
    padding: 10px;
    color: white;
    min-width: 42px;
    min-height: 42px;
    text-align: center;
}

/* ==========================================
   FORM ELEMENTS
========================================== */
.link-force {
    cursor: pointer !important;
    text-decoration: underline !important;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.btn-show-password {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    padding: 0.5rem;
}

.btn-show-password:hover {
    color: #000;
}

.password-strength small {
    font-weight: 600;
}

.pdf-viewer {
    border: none;
    height: 400px;
    width: 100%;
}

.form-check {
    padding-left: 0 !important;
}

.form-switch {
    margin-left: 0 !important;
}

.form-switch .form-check-input {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.form-switch .form-check-label {
    padding-left: 25px;
}

.input-validation-error {
    border: 1px solid red !important;
    background-color: #ffe6e6;
}

.validation-message {
    color: red;
    font-size: 0.9rem;
}

/* ==========================================
   CENTER SELECT
========================================== */
.center-select-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
}

.hover-pointer:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.centro-card {
    width: 220px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 1rem;
}

.centro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card.border {
    padding: 0px !important;
}

/* ==========================================
   CONSULTANT
========================================== */
.consultant-top {
    background-color: white;
    border-radius: 15px;
    padding: 15px;
}

.consultant-tab-content {
    background-color: white;
    padding: 15px;
}

.asterisk {
    color: red;
    font-weight: bolder;
    position: absolute;
    margin-left: 2px;
}

.filter-content {
    background-color: white;
    margin: 0;
}

/* ==========================================
   UTILITIES
========================================== */
.bg-bluba {
    background-color: #c2edff !important;
}

.btn {
    height: 100%;
}

/* ==========================================
   STAT CARDS (ADDITIONAL STYLES)
========================================== */
.stat-card {
    border: 1px solid #e9ecef;
    border-radius: var(--card-radius);
    background: #fff;
    transition: transform .08s ease, box-shadow .2s ease;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,0,0,.06);
}

.stat-body {
    padding: 1.25rem 1.25rem 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.icon-neutral {
    background: #f1f3f5;
    color: #212529;
}

.icon-primary {
    background: #e7f1ff;
    color: #0d6efd;
}

.icon-warning {
    background: #fff3cd;
    color: #b58100;
}

.icon-info {
    background: #e7f5ff;
    color: #0aa2c0;
}

.stat-title {
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
    font-size: 1.05rem;
}

.stat-subtitle {
    color: #6c757d;
    font-size: .95rem;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: .5px;
}

.status-dot {
    width: .75rem;
    height: .75rem;
    border-radius: 9999px;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(0,0,0,.05);
}

/* ==========================================
   CUSTOM COLOR BUTTONS
========================================== */
/* Turquesa */
.btn-turquoise {
    background-color: #4dd0e1;
    color: #fff;
}

.btn-turquoise:hover {
    background-color: #26c6da;
    color: #fff;
}

/* Coral */
.btn-coral {
    background-color: #ff6f61;
    color: #fff;
}

.btn-coral:hover {
    background-color: #e85c50;
    color: #fff;
}

/* Lavanda */
.btn-lavender {
    background-color: #ba68c8;
    color: #fff;
}

.btn-lavender:hover {
    background-color: #ab47bc;
    color: #fff;
}

/* Verde menta */
.btn-mint {
    background-color: #81c784;
    color: #fff;
}

.btn-mint:hover {
    background-color: #66bb6a;
    color: #fff;
}

/* Amarillo mostaza */
.btn-mustard {
    background-color: #ffd54f;
    color: #000;
}

.btn-mustard:hover {
    background-color: #ffca28;
    color: #000;
}

/* Azul cielo */
.btn-sky {
    background-color: #64b5f6;
    color: #fff;
}

.btn-sky:hover {
    background-color: #42a5f5;
    color: #fff;
}

/* Naranja */
.btn-orange {
    background-color: #ffb74d;
    color: #fff;
}

.btn-orange:hover {
    background-color: #ffa726;
    color: #fff;
}

/* Fucsia */
.btn-fuchsia {
    background-color: #f06292;
    color: #fff;
}

.btn-fuchsia:hover {
    background-color: #ec407a;
    color: #fff;
}

/* Verde lima */
.btn-lime {
    background-color: #dce775;
    color: #000;
}

.btn-lime:hover {
    background-color: #d4e157;
    color: #000;
}

/* Azul marino */
.btn-navy {
    background-color: #5c6bc0;
    color: #fff;
}

.btn-navy:hover {
    background-color: #3f51b5;
    color: #fff;
}

/* Rosa pastel */
.btn-rose {
    background-color: #f8bbd0;
    color: #000;
}

.btn-rose:hover {
    background-color: #f48fb1;
    color: #000;
}

/* Verde bosque */
.btn-forest {
    background-color: #388e3c;
    color: #fff;
}

.btn-forest:hover {
    background-color: #2e7d32;
    color: #fff;
}

/* Azul petróleo */
.btn-teal {
    background-color: #26a69a;
    color: #fff;
}

.btn-teal:hover {
    background-color: #00897b;
    color: #fff;
}

/* Rojo vino */
.btn-wine {
    background-color: #8e244d;
    color: #fff;
}

.btn-wine:hover {
    background-color: #6a1b3a;
    color: #fff;
}

/* Gris humo */
.btn-smoke {
    background-color: #90a4ae;
    color: #fff;
}

.btn-smoke:hover {
    background-color: #78909c;
    color: #fff;
}

/* ==========================================
   TEXTAREA MAX
========================================== */
.maxtextarea-wrapper {
    position: relative;
}

.maxtextarea-btn {
    position: absolute;
    top: .5rem;
    right: .5rem;
    padding: .25rem .5rem;
    border-radius: .5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.maxtextarea-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.maxtextarea-modal {
    width: min(1200px, 100%);
    height: min(90vh, 100%);
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    overflow: hidden;
}

.maxtextarea-modal .card-body {
    display: flex;
    flex: 1 1 auto;
}

.maxtextarea-modal textarea {
    flex: 1 1 auto;
    resize: none;
    padding: 1rem;
    font-size: 1rem;
    line-height: 1.5;
}

/* ==========================================
   CALENDAR EVENTS
========================================== */
.cal-event {
    position: relative;
    width: 100%;
    border-radius: .5rem;
    padding: .25rem .5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    overflow: hidden;
}

.cal-event.scheduled {
    background: rgba(23,162,184,.2);
    border-left: 4px solid #17a2b8;
}

.cal-event.scheduled .accordion-button {
    background: rgba(23,162,184,0);
}

.cal-event.attended {
    background: rgba(25,135,84,.2);
    border-left: 4px solid #198754;
}

.cal-event.attended .accordion-button {
    background: rgba(25,135,84,0);
}

.cal-event.missed {
    background: rgba(220,53,69,.2);
    border-left: 4px solid #dc3545;
}

.cal-event.missed .accordion-button {
    background: rgba(220,53,69,0);
}

.cal-event.cancelled {
    background: rgba(108,117,125,.2);
    border-left: 4px solid #6c757d;
}

.cal-event.cancelled .accordion-button {
    background: rgba(108,117,125,0);
}

.cal-event.is-new {
    background: rgba(68,102,227,.2) !important;
    border-left: 4px solid #3559dc !important;
}

.cal-event.is-new .accordion-button {
    background: rgba(68,102,227,0);
}

.badge.cal-event {
    width: 20px;
}

.input-group .input-group-text.bg-white {
    height: 32px;
}

/* ==========================================
   TAB CHIPS
========================================== */
.tab-chip {
    appearance: none;
    border: 0;
    outline: 0;
    background: #ffffff;
    color: #0a4f64;
    font-weight: 600;
    padding: 0.65rem 1rem;
    border-radius: 0.9rem 0.9rem 0.4rem 0.4rem;
    box-shadow: 0 1px 0 rgba(10, 79, 100, 0.08), 0 6px 12px rgba(10, 79, 100, 0.10);
    display: inline-flex;
    align-items: center;
    line-height: 1;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    position: relative;
}

.tab-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 0 rgba(10, 79, 100, 0.10), 0 10px 16px rgba(10, 79, 100, 0.14);
}

.tab-chip:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, .35), 0 6px 12px rgba(10, 79, 100, 0.10);
}

.tab-chip[disabled] {
    cursor: no-drop;
}

/* ==========================================
   UTILITY CLASSES
========================================== */
.hide {
    display: none !important;
}

/* ==========================================
   LOADER
========================================== */
#loader-background {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999999;
    top: 0px;
}

#loader {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    margin: -75px 0 0 -75px;
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    width: 120px;
    height: 120px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================
   RESPONSIVE - LARGE SCREENS
========================================== */
@media (min-width: 1470px) {
    .login-container {
        flex: 6;
    }

    .banner-container {
        flex: 4;
    }

    .vertical-landing-banner {
        height: 90vh !important;
    }

    .logo-v {
        max-width: 70% !important;
    }

    .login-form {
        max-width: 550px;
        padding: 2rem 1.5rem;
        background-color: white;
        border-radius: 15px;
    }
}

@media (min-width: 1025px) and (max-width: 1470px) {
    .login-container {
        flex: 6;
    }

    .banner-container {
        flex: 4;
    }

    .vertical-landing-banner {
        height: 90vh !important;
    }

    .logo-v {
        max-width: 70% !important;
    }

    .login-form {
        max-width: 550px;
        padding: 2rem 1.5rem;
        background-color: white;
        border-radius: 15px;
    }
}

/* ==========================================
   RESPONSIVE - MEDIUM SCREENS
========================================== */
@media (max-width: 1280px) {
    .login-container {
        flex: 7;
        padding: 15px;
    }

    .banner-container {
        flex: 3;
    }

    .vertical-landing-banner {
        height: 85vh !important;
    }

    .logo {
        max-width: 60% !important;
    }
}

@media (max-width: 1024px) {
    .login-page {
        flex-direction: row;
    }

    .login-container {
        flex: 8;
        border-radius: 0;
        padding: 10px;
    }

    .banner-container {
        flex: 2;
    }

    .vertical-landing-banner {
        height: 80vh !important;
    }

    .logo {
        max-width: 50% !important;
    }

    .login-form {
        max-width: 500px;
        padding: 1.8rem 1rem;
        background-color: white;
        border-radius: 15px;
    }
}

/* ==========================================
   RESPONSIVE - MOBILE & TABLET
========================================== */
@media (max-width: 767px) {
    .banner-container {
        display: none;
    }

    .login-container {
        flex: 1;
        padding: 10px;
    }

    .vertical-landing-banner {
        height: 70vh !important;
    }

    .logo-v {
        max-width: 40% !important;
    }

    .login-form {
        max-width: 100%;
        padding: 1.5rem 1rem;
        background-color: white;
        border-radius: 15px;
    }

    .logo {
        width: 150px;
    }

    .page-inner {
        padding-left: 10px;
        padding-right: 10px;
    }

    .dot-col {
        position: relative;
    }

    .dot-col::after {
        content: "";
        position: absolute;
        left: calc(.75rem/2);
        top: 1.25rem;
        bottom: -1.25rem;
        width: 2px;
        background: rgba(0,0,0,.08);
    }

    .row:last-child .dot-col::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .vertical-landing-banner {
        height: 60vh !important;
    }

    .logo-v {
        max-width: 30% !important;
    }

    .centro-card {
        width: 100%;
    }

    .tab-chip span {
        font-size: .9rem;
    }

    .tab-chip i {
        font-size: .95rem;
    }

    .tab-shelf {
        gap: .5rem;
        padding: .5rem;
    }

    .stat-value {
        font-size: 1.9rem;
    }
}

/* ==========================================
   PROVIDER / NETWORK SEARCH
========================================== */
.providers-grid {
    margin-top: 1.5rem;
}

.provider-card-modern {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.provider-card-modern:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: rgba(79, 70, 229, 0.2);
}

.provider-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.provider-icon-modern {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.provider-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
}

.provider-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-center {
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    color: #667eea;
    border: 1px solid #667eea30;
}

.badge-independent {
    background: linear-gradient(135deg, #10b98120 0%, #05966920 100%);
    color: #059669;
    border: 1px solid #05966930;
}

.provider-body {
    padding: 1.5rem;
    flex: 1;
}

.provider-info-row {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.provider-info-row:last-child {
    border-bottom: none;
}

.info-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: #64748b;
    font-size: 0.875rem;
}

.info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 0.938rem;
    color: #334155;
    line-height: 1.5;
}

.phone-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.phone-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.provider-footer {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.provider-footer .btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.625rem 1rem;
    transition: all 0.2s ease;
}

.provider-footer .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

/* Responsive */
@media (max-width: 991px) {
    .provider-card-modern {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .provider-header {
        padding: 1.25rem;
    }

    .provider-body {
        padding: 1.25rem;
    }

    .provider-icon-modern {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 1.25rem;
    }

    .provider-name {
        font-size: 1.125rem;
    }

    .info-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }
}

/* ==========================================
   RECOVERY & CHANGE PASSWORD MODERN STYLES
========================================== */
.recovery-form-modern {
    max-width: 450px;
    margin: 0 auto;
    padding: 2.5rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.6s ease 0.3s both;
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.step-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step-modern.active {
    opacity: 1;
}

.step-modern.done {
    opacity: 1;
}

.step-icon-modern {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.step-modern.active .step-icon-modern {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(52, 108, 176, 0.3);
    transform: scale(1.1);
}

.step-modern.done .step-icon-modern {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.step-text-modern {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6c757d;
    text-align: center;
}

.step-modern.active .step-text-modern {
    color: var(--primary-color);
    font-weight: 600;
}

.step-line-modern {
    flex: 1;
    height: 2px;
    background-color: #e9ecef;
    transition: all 0.3s ease;
    max-width: 100px;
}

.step-line-modern.active {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: #6c757d;
}

.code-resend-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    gap: 1rem;
}

.resend-code-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.resend-code-btn:hover:not(:disabled) {
    background-color: #f8f9fa;
    color: var(--secondary-color);
}

.resend-code-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.password-strength-container {
    margin-top: 0.75rem;
}

.password-strength-bar {
    width: 100%;
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.password-strength-fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.password-strength-label {
    display: block;
    font-size: 0.8125rem;
    color: #6c757d;
}

.btn-back-step {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: white;
    color: #6c757d;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-back-step:hover:not(:disabled) {
    background-color: #f8f9fa;
    border-color: #ced4da;
    color: #495057;
}

.btn-back-step:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive para recovery y change password */
@media (max-width: 768px) {
    .recovery-form-modern {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .steps-container {
        gap: 0.5rem;
    }

    .step-icon-modern {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .step-text-modern {
        font-size: 0.75rem;
    }

    .step-line-modern {
        max-width: 50px;
    }

    .code-resend-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ==========================================
   SESSIONS LIST MODERN STYLES
========================================== */
.sessions-list-modern {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.session-card-modern {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
}

.session-card-modern:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: #ced4da;
}

.session-card-modern.expanded {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(52, 108, 176, 0.15);
}

.session-card-modern.session-highlight {
    animation: highlightPulse 2s ease;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(52, 108, 176, 0.2);
}

@keyframes highlightPulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(52, 108, 176, 0.2);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(52, 108, 176, 0.1);
    }
}

.session-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.session-card-modern.expanded .session-card-header {
    background: linear-gradient(135deg, rgba(52, 108, 176, 0.05) 0%, rgba(52, 108, 176, 0.02) 100%);
    border-bottom: 2px solid #e9ecef;
}

.session-card-header:hover {
    background: linear-gradient(135deg, rgba(52, 108, 176, 0.08) 0%, rgba(52, 108, 176, 0.03) 100%);
}

.session-card-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.session-status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.session-status-indicator.scheduled {
    background-color: #17a2b8;
}

.session-status-indicator.attended {
    background-color: #28a745;
}

.session-status-indicator.missed {
    background-color: #dc3545;
}

.session-status-indicator.cancelled {
    background-color: #6c757d;
}

.session-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.session-date-time {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.session-date-time i {
    color: var(--primary-color);
    font-size: 1rem;
}

.session-employee {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.session-employee i {
    color: #adb5bd;
    font-size: 0.875rem;
}

.session-card-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.badge-new {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.session-toggle-icon {
    color: #6c757d;
    font-size: 1rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.session-card-modern.expanded .session-toggle-icon {
    color: var(--primary-color);
    transform: rotate(180deg);
}

.session-card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.session-card-content.show {
    max-height: 5000px;
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    background-color: #fafbfc;
}

/* Estados de sesión mejorados */
.session-card-modern.scheduled {
    border-left: 4px solid #17a2b8;
}

.session-card-modern.attended {
    border-left: 4px solid #28a745;
}

.session-card-modern.missed {
    border-left: 4px solid #dc3545;
}

.session-card-modern.cancelled {
    border-left: 4px solid #6c757d;
    opacity: 0.8;
}

.session-card-modern.is-new {
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 16px rgba(52, 108, 176, 0.2);
}

/* Responsive para sessions list */
@media (max-width: 768px) {
    .session-card-header {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .session-card-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .session-date-time {
        font-size: 1rem;
    }

    .session-card-content.show {
        padding: 1rem;
    }
}

/* ==========================================
   OPTIONS PAGE MODERN STYLES
========================================== */
.options-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.option-card-modern {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    padding: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.option-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.option-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(52, 108, 176, 0.02) 0%, rgba(52, 108, 176, 0.05) 100%);
}

.option-card-modern:hover::before {
    transform: scaleY(1);
}

.option-card-modern:hover .option-icon-modern {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(52, 108, 176, 0.3);
}

.option-card-modern:hover .option-title {
    color: var(--primary-color);
}

.option-card-modern:hover .option-arrow {
    color: var(--primary-color);
    transform: translateX(4px);
}

.option-icon-modern {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.option-content {
    flex: 1;
    min-width: 0;
}

.option-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.option-description {
    font-size: 0.95rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

.option-arrow {
    color: #adb5bd;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Responsive para options page */
@media (max-width: 768px) {
    .options-container {
        gap: 1rem;
    }

    .option-card-modern {
        padding: 1.5rem;
        gap: 1rem;
    }

    .option-icon-modern {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }

    .option-title {
        font-size: 1.1rem;
    }

    .option-description {
        font-size: 0.875rem;
    }
}

/* ==========================================
   SESSION WARNING MODERN STYLES
========================================== */
.session-warning-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-left: 4px solid #ff9800;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
    animation: fadeInDown 0.4s ease;
}

.session-warning-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9800 0%, #ff6f00 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.session-warning-content {
    flex: 1;
    color: #856404;
    font-weight: 500;
}

