* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========== ANIMACIONES ========== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInOut {
    0% { opacity: 0; bottom: 0; }
    10% { opacity: 1; bottom: 30px; }
    90% { opacity: 1; bottom: 30px; }
    100% { opacity: 0; bottom: 0; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* ========== LOGIN Y REGISTRO ========== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 32px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(10px);
}

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-header i {
    font-size: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

.auth-header h1 {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
}

.auth-header p {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.auth-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    background: #f3f4f6;
    padding: 6px;
    border-radius: 60px;
}

.auth-tab {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.3s ease;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
}

.auth-tab.active {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* ========== INPUTS MEJORADOS ========== */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 18px;
    transition: color 0.3s ease;
    pointer-events: none;
}

.input-group input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.input-group input:focus + i {
    color: #667eea;
}

.btn-auth {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(102, 126, 234, 0.4);
}

.btn-auth:active {
    transform: translateY(0);
}

.info-box {
    background: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 100%);
    border-radius: 16px;
    padding: 14px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #5b21b6;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.info-box i {
    font-size: 20px;
}

/* ========== APP LAYOUT ========== */
.app {
    display: flex;
    min-height: 100vh;
    position: relative;
    background: #f9fafb;
}

/* ========== SIDEBAR MEJORADO ========== */
.sidebar {
    width: 280px;
    background: white;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;  /* ← AGREGAR ESTA LÍNEA */
    -webkit-overflow-scrolling: touch;  /* Scroll suave en iOS */
}
.sidebar-header {
    padding: 32px 24px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
}

.sidebar-header i {
    font-size: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 12px;
}

.sidebar-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-top: 8px;
}

.sidebar-nav {
    flex: 1;
    padding: 24px 16px;
    flex-shrink: 0;  /* ← AGREGAR */
    min-height: auto; /* ← AGREGAR */
}

.nav-btn {
    width: 100%;
    padding: 14px 18px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.nav-btn i {
    width: 24px;
    font-size: 20px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #f3f4f6;
    color: #667eea;
    transform: translateX(4px);
}

.nav-btn.active {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    color: #667eea;
    border-right: 3px solid #667eea;
}

.nav-btn.active i {
    color: #667eea;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    background: #fafbfc;
    flex-shrink: 0;  /* ← AGREGAR */
    margin-top: auto; /* ← AGREGAR */
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f3f4f6;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.user-info i {
    font-size: 20px;
    color: #667eea;
    background: white;
    padding: 6px;
    border-radius: 10px;
}

.btn-logout {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(239, 68, 68, 0.3);
}

.sidebar-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f3f4f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
}

.menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 998;
    background: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #667eea;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ========== MAIN CONTENT ========== */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 30px 35px;
    background: #f9fafb;
    min-height: 100vh;
    width: calc(100% - 280px);
    max-width: calc(100% - 280px);
    overflow-x: auto;
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
        padding: 80px 16px 20px 16px;
    }
}

.view {
    display: none;
    animation: fadeIn 0.4s ease;
}

.view.active {
    display: block;
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.view-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 12px;
}

.view-header h1 i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 28px;
}

/* ========== FORMULARIO MEJORADO ========== */
.form-container {
    background: white;
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.form-group label i {
    margin-right: 8px;
    color: #667eea;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.radio-group {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 16px;
    background: #f9fafb;
    border-radius: 40px;
    transition: all 0.3s ease;
}

.radio-label:hover {
    background: #f3f4f6;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(102, 126, 234, 0.4);
}

/* ========== BOTONES DE PERÍODO ========== */
.periodo-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.periodo-btn {
    padding: 10px 24px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #6b7280;
}

.periodo-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.periodo-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* ========== TARJETAS DE CITAS MEJORADAS ========== */
.citas-container {
    background: white;
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.citas-list {
    display: grid;
    gap: 20px;
}

.cita-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cita-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: #e5e7eb;
}

.cita-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.cita-nombre {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cita-nombre i {
    color: #667eea;
    font-size: 20px;
}

.cita-estado {
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 600;
}

.estado-pendiente {
    background: #fef3c7;
    color: #d97706;
}

.estado-realizado {
    background: #d1fae5;
    color: #059669;
}

.estado-cancelado {
    background: #fee2e2;
    color: #dc2626;
}

.cita-info {
    display: flex;
    gap: 24px;
    color: #6b7280;
    font-size: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.cita-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cita-info i {
    color: #667eea;
    width: 18px;
}

.cita-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-action {
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
}

.btn-action:hover {
    transform: translateY(-2px);
}

.btn-atendido {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-editar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-cancelar {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #9ca3af;
}

.empty-state i {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
}

/* ========== MODAL MEJORADO ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 35px;
    width: 90%;
    max-width: 550px;
    border-radius: 28px;
    animation: slideUp 0.3s;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close {
    font-size: 32px;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.3s ease;
    line-height: 1;
}

.close:hover {
    color: #374151;
    transform: rotate(90deg);
}

.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn-save {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-delete {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-save:hover, .btn-delete:hover {
    transform: translateY(-2px);
}

/* ========== TOAST NOTIFICATION ========== */
.toast {
    visibility: hidden;
    min-width: 300px;
    color: white;
    text-align: center;
    border-radius: 50px;
    padding: 14px 24px;
    position: fixed;
    z-index: 2000;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.toast.show {
    visibility: visible;
    animation: fadeInOut 3s;
}

/* ========== LICENCIA ========== */
.licencia-info {
    padding: 10px;
}

.licencia-card {
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.licencia-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.licencia-header i {
    font-size: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.licencia-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
}

.licencia-details {
    margin-bottom: 25px;
}

.licencia-details p {
    margin: 14px 0;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.licencia-details i {
    width: 28px;
    color: #667eea;
    font-size: 18px;
}

.licencia-estado {
    margin-top: 20px;
    padding: 12px;
    border-radius: 14px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.licencia-activa {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.licencia-proxima {
    background: linear-gradient(135deg, #fed7aa 0%, #ffedd5 100%);
    color: #9a3412;
}

.licencia-expirada {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.licencia-progress {
    margin-top: 25px;
}

.progress-bar {
    background: #e5e7eb;
    border-radius: 50px;
    height: 12px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    border-radius: 50px;
    transition: width 0.6s ease;
}

.licencia-progress p {
    text-align: center;
    margin-top: 12px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.licencia-expirada-content {
    text-align: center;
    padding: 30px 20px;
}

.licencia-expirada-content i {
    font-size: 64px;
    color: #dc2626;
    margin-bottom: 20px;
}

.licencia-expirada-content p {
    margin: 15px 0;
    color: #4b5563;
    line-height: 1.6;
}

/* ========== RESPONSIVE DESIGN MEJORADO ========== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-close {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .main-content {
        margin-left: 0;
        padding: 80px 16px 20px 16px;
    }
    
    .view-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .view-header h1 {
        font-size: 22px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .periodo-buttons {
        justify-content: center;
    }
    
    .periodo-btn {
        flex: 1;
        text-align: center;
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .cita-card {
        padding: 18px;
    }
    
    .cita-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cita-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .cita-actions {
        flex-direction: column;
    }
    
    .btn-action {
        justify-content: center;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 25px;
        width: 95%;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .auth-card {
        padding: 30px 25px;
        margin: 20px;
    }
    
    .auth-header h1 {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 25px 20px;
    }
    
    .auth-header i {
        font-size: 50px;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .periodo-btn {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .cita-nombre {
        font-size: 16px;
    }
    
    .btn-action {
        font-size: 12px;
        padding: 10px 16px;
    }
    
    .view-header h1 {
        font-size: 20px;
    }
    
    .licencia-header {
        flex-direction: column;
        text-align: center;
    }
    
    .licencia-details p {
        font-size: 13px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .main-content {
        padding: 25px 20px;
    }
    
    .cita-info {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .periodo-btn {
        padding: 8px 18px;
    }
}

/* ========== UTILIDADES ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5b21b6;
}

::selection {
    background: rgba(102, 126, 234, 0.3);
    color: #667eea;
}

/* Nuevos estilos para multi-salón */
.auth-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-tab {
    padding: 12px 30px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: #667eea;
}

.auth-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.auth-panel {
    display: none;
}

.auth-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.info-box {
    background: #e8f0fe;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #667eea;
}

.info-box i {
    font-size: 18px;
}

.expiration-alert {
    background: #ffa502;
    margin: 15px;
    padding: 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 40px;
    color: #667eea;
}

.stat-info h3 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.stat-info p {
    color: #666;
    font-size: 14px;
}

.servicios-populares {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

.servicios-populares h3 {
    margin-bottom: 15px;
    color: #333;
}

.servicios-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.servicio-popular {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.servicio-nombre {
    font-weight: 500;
}

.servicio-count {
    color: #667eea;
    font-weight: 600;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.servicio-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.servicio-card:hover {
    transform: translateY(-3px);
}

.servicio-icon i {
    font-size: 40px;
    color: #667eea;
}

.servicio-info {
    flex: 1;
}

.servicio-info h4 {
    margin-bottom: 5px;
    color: #333;
}

.servicio-info p {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.servicio-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #999;
}

.servicio-meta i {
    font-size: 12px;
}

.btn-add {
    padding: 10px 20px;
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.2s;
}

.btn-add:hover {
    transform: translateY(-2px);
}

textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
}

.cita-notas {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e0e0e0;
}

.cita-nombre small {
    font-size: 11px;
    color: #999;
    margin-left: 8px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-card i {
        font-size: 30px;
    }
    
    .stat-info h3 {
        font-size: 22px;
    }
    
    .servicios-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-tab {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ========== MEJORAS PARA LOGIN/REGISTRO ========== */

/* Contenedor principal */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

/* Efecto de fondo decorativo */
.auth-container::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -150px;
    right: -150px;
}

.auth-container::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
}

/* Tarjeta mejorada */
.auth-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 32px;
    padding: 40px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header i {
    font-size: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 12px;
    animation: pulse 2s infinite;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 6px;
}

.auth-header p {
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
}

/* Tabs mejorados */
.auth-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    background: #f3f4f6;
    padding: 6px;
    border-radius: 60px;
}

.auth-tab {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.3s ease;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-tab i {
    font-size: 14px;
}

.auth-tab.active {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* Input groups con toggle de contraseña */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i:first-child {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 18px;
    transition: color 0.3s ease;
    pointer-events: none;
}

.input-group input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.input-group input:focus + i:first-child {
    color: #667eea;
}

/* Botón toggle password */
.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 18px;
    padding: 0;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #667eea;
}

/* Info box mejorado */
.info-box {
    background: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 100%);
    border-radius: 16px;
    padding: 16px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.info-box i {
    font-size: 28px;
    color: #667eea;
}

.info-box strong {
    color: #5b21b6;
    font-size: 14px;
}

.info-box small {
    color: #6d28d9;
    font-size: 12px;
}

/* Botón principal */
.btn-auth {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(102, 126, 234, 0.4);
}

.btn-auth:active {
    transform: translateY(0);
}

/* Footer del auth */
.auth-footer {
    margin-top: 24px;
    text-align: center;
}

.auth-footer p {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
}

.auth-footer .switch-tab {
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.auth-footer .switch-tab:hover {
    color: #5b21b6;
    text-decoration: underline;
}

.auth-footer small {
    font-size: 11px;
    color: #9ca3af;
    display: block;
}

/* Animaciones */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Loading state para botones */
.btn-auth.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-auth.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 30px 24px;
        margin: 0;
    }
    
    .auth-header i {
        font-size: 48px;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
    
    .auth-tab {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .auth-tab i {
        font-size: 12px;
    }
    
    .info-box {
        padding: 12px;
    }
    
    .info-box i {
        font-size: 24px;
    }
    
    .btn-auth {
        padding: 12px;
        font-size: 14px;
    }
}

/* Sugerencias de autocompletado */
.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.suggestions-dropdown.show {
    display: block;
}

.suggestion-item {
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f3f4f6;
}

.suggestion-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.suggestion-whatsapp {
    font-size: 11px;
    color: #9ca3af;
    margin-left: 8px;
}

/* ========== ALUMNAS Y CLASES ========== */
.alumnas-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    margin-top: 0;
    background: #f3f4f6;
    padding: 6px;
    border-radius: 60px;
    width: fit-content;
}

.alumnas-tab {
    padding: 10px 24px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 40px;
    transition: all 0.3s ease;
}

.alumnas-tab.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.alumnas-container {
    display: none;
}

.alumnas-container.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.alumnas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.alumna-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.alumna-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.alumna-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.alumna-nombre {
    display: flex;
    align-items: center;
    gap: 10px;
}

.alumna-nombre i {
    font-size: 28px;
    color: #667eea;
}

.alumna-nombre h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.alumna-estado {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.alumna-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: #6b7280;
}

.alumna-info i {
    margin-right: 5px;
    color: #667eea;
}

.alumna-actions {
    display: flex;
    gap: 10px;
}

.clases-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.clase-card {
    background: white;
    border-radius: 16px;
    padding: 18px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.clase-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.clase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.clase-alumna {
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.clase-alumna i {
    color: #667eea;
}

.clase-estado {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.clase-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
}

.clase-info i {
    margin-right: 5px;
    color: #667eea;
}

.clase-tema {
    background: #f3f4f6;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    margin-top: 10px;
}

.periodo-buttons-clases {
    display: flex;
    gap: 10px;
}

.periodo-btn-clase {
    padding: 8px 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.periodo-btn-clase:hover {
    border-color: #667eea;
    color: #667eea;
}

.periodo-btn-clase.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.search-box-alumnas {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 40px;
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    max-width: 300px;
}

.search-box-alumnas i {
    color: #9ca3af;
    margin-right: 10px;
}

.search-box-alumnas input {
    border: none;
    flex: 1;
    outline: none;
    font-size: 14px;
}

@media (max-width: 768px) {
    .alumnas-grid {
        grid-template-columns: 1fr;
    }
    
    .alumnas-tabs {
        width: 100%;
    }
    
    .alumnas-tab {
        flex: 1;
        text-align: center;
    }
    
    .periodo-buttons-clases {
        flex-wrap: wrap;
    }
}

/* ========== ESTILOS COMPLETOS PARA ALUMNAS ========== */
.alumnas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    margin-top: 20px;
    min-height: 300px;
}

.alumna-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.alumna-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.alumna-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.alumna-nombre {
    display: flex;
    align-items: center;
    gap: 12px;
}

.alumna-nombre i {
    font-size: 32px;
    color: #667eea;
}

.alumna-nombre h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.alumna-estado {
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}

.alumna-estado.estado-activa {
    background: #d1fae5;
    color: #059669;
}

.alumna-estado.estado-inactiva {
    background: #fee2e2;
    color: #dc2626;
}

.alumna-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.alumna-info span {
    font-size: 13px;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.alumna-info i {
    color: #667eea;
    width: 18px;
}

.alumna-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Clases list */
.clases-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
    min-height: 300px;
}

.clase-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.clase-card:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.clase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.clase-alumna {
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 10px;
}

.clase-alumna i {
    color: #667eea;
    font-size: 18px;
}

.clase-estado {
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
}

.clase-estado.estado-pendiente {
    background: #fef3c7;
    color: #d97706;
}

.clase-estado.estado-realizado {
    background: #d1fae5;
    color: #059669;
}

.clase-estado.estado-cancelado {
    background: #fee2e2;
    color: #dc2626;
}

.clase-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
}

.clase-info span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.clase-info i {
    color: #667eea;
}

.clase-tema {
    background: #f3f4f6;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    margin-top: 12px;
    color: #374151;
}

.clase-tema i {
    margin-right: 8px;
    color: #667eea;
}

/* Asegurar que los contenedores se vean */
.alumnas-container {
    display: none;
}

.alumnas-container.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Botones de período para clases */
.periodo-buttons-clases {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.periodo-btn-clase {
    padding: 8px 24px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 40px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #6b7280;
}

.periodo-btn-clase:hover {
    border-color: #667eea;
    color: #667eea;
}

.periodo-btn-clase.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* Search box */
.search-box-alumnas {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 10px 18px;
    border: 1px solid #e5e7eb;
    max-width: 320px;
    margin-bottom: 20px;
}

.search-box-alumnas i {
    color: #9ca3af;
    margin-right: 12px;
    font-size: 16px;
}

.search-box-alumnas input {
    border: none;
    flex: 1;
    outline: none;
    font-size: 14px;
    background: transparent;
}

/* Loading y empty states */
.loading-state, .empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 24px;
    color: #9ca3af;
}

.loading-state i, .empty-state i {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.loading-state p, .empty-state p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .alumnas-grid {
        grid-template-columns: 1fr;
    }
    
    .alumna-card {
        padding: 18px;
    }
    
    .alumna-nombre i {
        font-size: 28px;
    }
    
    .alumna-nombre h4 {
        font-size: 16px;
    }
    
    .clase-card {
        padding: 16px;
    }
    
    .clase-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .periodo-buttons-clases {
        justify-content: center;
    }
    
    .periodo-btn-clase {
        flex: 1;
        text-align: center;
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* Estilo para destacar la especialidad - fondo claro, texto oscuro */
.especialidad-destacada {
    background: #fef3c7;
    color: #1f2937;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-left: 3px solid #f59e0b;
}

.especialidad-destacada i {
    color: #f59e0b;
    font-size: 12px;
}

/* Estilos para el modal de detalles de alumna */
.detalles-info {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.detalles-info p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.detalles-info i {
    width: 24px;
    color: #667eea;
}

.estadisticas-clases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.estadistica-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 15px;
    text-align: center;
}

.estadistica-card .numero {
    font-size: 28px;
    font-weight: 800;
}

.estadistica-card .label {
    font-size: 12px;
    color: #6b7280;
    margin-top: 5px;
}

.estadistica-card.pendiente .numero { color: #d97706; }
.estadistica-card.realizada .numero { color: #059669; }
.estadistica-card.cancelada .numero { color: #dc2626; }

.historial-clases {
    margin-top: 20px;
}

.historial-clases h4 {
    margin-bottom: 15px;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.historial-lista {
    max-height: 300px;
    overflow-y: auto;
}

.historial-item {
    background: #f9fafb;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.historial-fecha {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.historial-fecha i {
    color: #667eea;
}

.historial-estado {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.historial-estado.pendiente {
    background: #fef3c7;
    color: #d97706;
}

.historial-estado.realizado {
    background: #d1fae5;
    color: #059669;
}

.historial-estado.cancelado {
    background: #fee2e2;
    color: #dc2626;
}

.historial-tema {
    font-size: 12px;
    color: #6b7280;
    flex: 1;
}

/* Modal de confirmación */
#confirmSalidaModal .modal-content {
    max-width: 380px;
}

#confirmSalidaModal .form-buttons {
    gap: 15px;
}

/* Copyright footer en sidebar */
.copyright-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
    font-size: 11px;
    color: #9ca3af;
}

.copyright-footer p {
    margin: 3px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.copyright-footer i {
    font-size: 10px;
    color: #9ca3af;
}

.registered-symbol {
    font-size: 10px;
}

/* Para móviles asegurar que se vea */
@media (max-width: 768px) {
    .copyright-footer {
        margin-top: 15px;
        padding-top: 12px;
        font-size: 10px;
    }
}

/* Modal de días restantes */
#diasRestantesModal .modal-content {
    max-width: 420px;
}

.dias-info-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.dias-info-card .numero-grande {
    font-size: 48px;
    font-weight: 800;
    color: #f59e0b;
    margin: 10px 0;
}

.dias-info-card .alerta-texto {
    color: #dc2626;
    font-weight: 600;
    margin-top: 10px;
}

.dias-advertencia {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: left;
}

.dias-advertencia p {
    margin: 5px 0;
    font-size: 13px;
    color: #92400e;
}

.dias-advertencia i {
    margin-right: 8px;
    color: #f59e0b;
}

.btn-contactar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-contactar:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Cursor pointer para todos los botones de cerrar modal */
.close-modal, .close, .close-detalles, .close-alumna, .close-clase, .close-servicio, .close-confirm, .close-especialidad, .close-dias-restantes {
    cursor: pointer;
}
/* Ocultar campo de precio en especialidades */
#espPrecio,
label[for="espPrecio"],
.form-group:has(#espPrecio) {
    display: none;
}

/* Estilo mejorado para botón Cancelar */
.btn-cancel {
    flex: 1;
    padding: 12px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

/* Si el botón usa clase .btn-cancel en lugar de .btn-cancel */
.btn-cancel {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

.btn-cancel:hover {
    background: #e5e7eb;
    color: #1f2937;
    border-color: #d1d5db;
}