﻿/* ========================================
   SkySchool — Estilos Globales
   ======================================== */

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --primary-light: #7c8df1;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --bg: #f3f4f6;
    --surface: #ffffff;
    --text: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --sidebar-width: 260px;
    --topbar-height: 64px;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1);
}

/* ===== Scope reset ===== */
.skyschool-scope * {
    box-sizing: border-box;
}

.skyschool-scope {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

    /* Layout lo maneja cada Layout .razor.css con CSS Grid */
    /* ===== Overlay (móvil, cuando sidebar abierto) ===== */
    .skyschool-scope .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        z-index: 199;
    }

        .skyschool-scope .sidebar-overlay.visible {
            display: block;
        }

    /* ===== Buttons ===== */
    .skyschool-scope .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        border-radius: 8px;
        font-weight: 500;
        font-size: 0.875rem;
        transition: all 0.2s;
        cursor: pointer;
        border: none;
        text-decoration: none;
    }

        .skyschool-scope .btn:hover {
            transform: translateY(-1px);
            text-decoration: none;
        }

    .skyschool-scope .btn-primary {
        background: var(--primary);
        color: white;
    }

        .skyschool-scope .btn-primary:hover {
            background: var(--primary-dark);
            color: white;
        }

    .skyschool-scope .btn-secondary {
        background: var(--bg);
        color: var(--text);
        border: 1px solid var(--border);
    }

        .skyschool-scope .btn-secondary:hover {
            background: var(--surface);
        }

    .skyschool-scope .btn-full {
        width: 100%;
    }

    .skyschool-scope .btn-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }

    /* ===== Badges ===== */
    .skyschool-scope .badge {
        display: inline-flex;
        align-items: center;
        padding: 0.25rem 0.75rem;
        border-radius: 9999px;
        font-size: 0.75rem;
        font-weight: 500;
    }

    .skyschool-scope .badge-success {
        background: rgba(16,185,129,.1);
        color: var(--success);
    }

    .skyschool-scope .badge-warning {
        background: rgba(245,158,11,.1);
        color: var(--warning);
    }

    .skyschool-scope .badge-danger {
        background: rgba(239,68,68,.1);
        color: var(--danger);
    }

    .skyschool-scope .badge-info {
        background: rgba(59,130,246,.1);
        color: var(--info);
    }

    /* ===== Cards ===== */
    .skyschool-scope .card {
        background: var(--surface);
        border-radius: 12px;
        padding: 1.5rem;
        box-shadow: var(--shadow-sm);
        border: 1px solid var(--border);
    }

        .skyschool-scope .card h3 {
            margin: 0 0 1rem 0;
            font-size: 1.125rem;
            font-weight: 600;
            color: var(--text);
        }

    /* ===== Forms ===== */
    .skyschool-scope input[type="text"],
    .skyschool-scope input[type="email"],
    .skyschool-scope input[type="password"],
    .skyschool-scope input[type="date"],
    .skyschool-scope input[type="tel"],
    .skyschool-scope select,
    .skyschool-scope textarea {
        width: 100%;
        padding: 0.75rem 1rem;
        border: 1px solid var(--border);
        border-radius: 8px;
        font-size: 0.875rem;
        transition: border-color 0.2s;
        background: var(--surface);
        color: var(--text);
    }

        .skyschool-scope input:focus,
        .skyschool-scope select:focus,
        .skyschool-scope textarea:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(102,126,234,.1);
        }

    /* ===== Page headers ===== */
    .skyschool-scope .page-header {
        margin-bottom: 2rem;
    }

        .skyschool-scope .page-header h1 {
            margin: 0 0 0.5rem 0;
            font-size: 1.875rem;
            font-weight: 700;
            color: var(--text);
        }

        .skyschool-scope .page-header p {
            margin: 0;
            color: var(--text-muted);
            font-size: 0.875rem;
        }

    /* ===== Stats grid ===== */
    .skyschool-scope .stats-grid,
    .skyschool-scope .cards-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.25rem;
        margin-bottom: 2rem;
    }

    .skyschool-scope .stat-card {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 1.25rem;
        display: flex;
        align-items: center;
        gap: 1rem;
        box-shadow: var(--shadow-sm);
    }

    .skyschool-scope .stat-icon {
        width: 48px;
        height: 48px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

        .skyschool-scope .stat-icon svg {
            width: 24px;
            height: 24px;
            flex-shrink: 0;
        }

    .skyschool-scope .stat-content {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
    }

    .skyschool-scope .stat-value {
        font-size: 1.75rem;
        font-weight: 700;
        color: var(--text);
        line-height: 1;
    }

    .skyschool-scope .stat-label {
        font-size: 0.8rem;
        color: var(--text-muted);
    }

    /* ===== Toolbar ===== */
    .skyschool-scope .toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 1.5rem;
        gap: 1rem;
    }

    /* ===== Scrollbar ===== */
    .skyschool-scope ::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }

    .skyschool-scope ::-webkit-scrollbar-track {
        background: var(--bg);
    }

    .skyschool-scope ::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 4px;
    }

        .skyschool-scope ::-webkit-scrollbar-thumb:hover {
            background: var(--text-muted);
        }

/* ===== Alerta de error (login portales) ===== */
.admin-alert {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: #dc2626;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

    .admin-alert svg {
        width: 16px !important;
        height: 16px !important;
        flex-shrink: 0;
    }

/* ===== blazor-error-ui ===== */
#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0.6rem 1.5rem;
    background: #1e293b;
    color: #f1f5f9;
    font-size: 0.85rem;
    align-items: center;
    gap: 0.75rem;
    border-top: 2px solid #7c3aed;
}

    #blazor-error-ui[style*="display: block"],
    #blazor-error-ui[style*="display:block"] {
        display: flex !important;
    }

    #blazor-error-ui .reload {
        color: #a78bfa;
        font-weight: 600;
    }

    #blazor-error-ui .dismiss {
        margin-left: auto;
        cursor: pointer;
        opacity: .6;
    }

        #blazor-error-ui .dismiss:hover {
            opacity: 1;
        }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .skyschool-scope .main-container {
        margin-left: 0 !important;
    }

    .skyschool-scope .main-content {
        padding: 1rem;
    }

    .skyschool-scope .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .skyschool-scope .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Admin Pages Shared (header, toolbar, search) ===== */
.page-header {
    margin-bottom: 1.5rem;
}

    .page-header h1 {
        margin: 0 0 0.25rem;
        font-size: 1.6rem;
        font-weight: 700;
        color: #1f2937;
    }

    .page-header p {
        margin: 0;
        color: #6b7280;
        font-size: 0.875rem;
    }

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-admin-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.1rem;
    background: #7c3aed;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

    .btn-admin-primary:hover {
        background: #6d28d9;
        color: white;
        text-decoration: none;
    }

    .btn-admin-primary svg {
        width: 18px;
        height: 18px;
    }

    .btn-admin-primary:disabled {
        opacity: 0.55;
        cursor: not-allowed;
    }

.table-toolbar {
    margin-bottom: 1.25rem;
}

.toolbar-split {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: space-between;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.5rem 0.85rem;
    min-width: 240px;
    flex: 1;
    max-width: 400px;
}

    .search-box svg {
        width: 18px;
        height: 18px;
        color: #9ca3af;
        flex-shrink: 0;
    }

    .search-box input {
        border: none;
        background: transparent;
        font-size: 0.875rem;
        color: #1f2937;
        width: 100%;
    }

        .search-box input:focus {
            outline: none;
        }

        .search-box input::placeholder {
            color: #9ca3af;
        }

.filter-chips {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.chip {
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

    .chip:hover {
        border-color: #7c3aed;
        color: #7c3aed;
    }

.chip-active {
    background: #7c3aed;
    border-color: #7c3aed;
    color: white;
}

/* ===== Admin Table, States & Actions ===== */
.table-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.table-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.spinner {
    display: inline-block;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

.spinner-dark {
    width: 18px;
    height: 18px;
    border: 2px solid #e5e7eb;
    border-top-color: #7c3aed;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

    .admin-table thead tr {
        background: #f9fafb;
        border-bottom: 1px solid #e5e7eb;
    }

    .admin-table th {
        padding: 0.75rem 1rem;
        text-align: left;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #6b7280;
        white-space: nowrap;
    }

    .admin-table td {
        padding: 0.85rem 1rem;
        color: #1f2937;
        vertical-align: middle;
    }

    .admin-table tbody tr {
        border-bottom: 1px solid #f3f4f6;
        transition: background 0.12s;
    }

        .admin-table tbody tr:last-child {
            border-bottom: none;
        }

        .admin-table tbody tr:hover {
            background: #f9fafb;
        }

.table-empty {
    text-align: center;
    color: #9ca3af;
    padding: 2.5rem;
    font-size: 0.875rem;
}

.person-cell {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.estado-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    white-space: nowrap;
}

.estado-activo {
    background: rgba(16,185,129,0.12);
    color: #10b981;
}

.estado-pendiente {
    background: rgba(245,158,11,0.12);
    color: #f59e0b;
}

.estado-bloqueado {
    background: rgba(239,68,68,0.12);
    color: #ef4444;
}

.estado-eliminado {
    background: rgba(107,114,128,0.12);
    color: #6b7280;
}

.action-btns {
    display: flex;
    gap: 0.35rem;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

    .action-btn svg {
        width: 16px;
        height: 16px;
    }

.action-btn-edit {
    background: rgba(59,130,246,0.1);
    color: #3b82f6;
}

    .action-btn-edit:hover {
        background: #3b82f6;
        color: white;
    }

.action-btn-block {
    background: rgba(239,68,68,0.1);
    color: #ef4444;
}

    .action-btn-block:hover {
        background: #ef4444;
        color: white;
    }

.action-btn-user {
    background: rgba(124,58,237,0.1);
    color: #7c3aed;
}

    .action-btn-user:hover {
        background: #7c3aed;
        color: white;
    }

/* ===== Admin Materias & Secciones — Modal & Forms ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0.5;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    animation: fadeIn 0.15s ease;
}

.modal-card {
    background: white;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    width: 100%;
    max-width: 480px;
    animation: slideUp 0.18s ease;
    overflow: hidden;
}

.modal-card-lg {
    max-width: 560px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.35rem;
    border-bottom: 1px solid #f3f4f6;
}

    .modal-header h3 {
        margin: 0;
        font-size: 1rem;
        font-weight: 700;
        color: #1f2937;
    }

.modal-close {
    width: 30px;
    height: 30px;
    border: none;
    background: #f3f4f6;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    transition: background 0.15s;
}

    .modal-close:hover {
        background: #e5e7eb;
        color: #1f2937;
    }

    .modal-close svg {
        width: 16px;
        height: 16px;
    }

.modal-body {
    padding: 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 70vh;
    overflow-y: auto;
}

.form-group-modal {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

    .form-group-modal label {
        font-size: 0.82rem;
        font-weight: 600;
        color: #374151;
    }

    .form-group-modal input,
    .form-group-modal select,
    .form-group-modal textarea {
        padding: 0.55rem 0.75rem;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        font-size: 0.875rem;
        color: #1f2937;
        background: white;
        width: 100%;
        box-sizing: border-box;
        transition: border-color 0.15s, box-shadow 0.15s;
        resize: vertical;
    }

        .form-group-modal input:focus,
        .form-group-modal select:focus,
        .form-group-modal textarea:focus {
            outline: none;
            border-color: #7c3aed;
            box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.10);
        }

        .form-group-modal input.input-error,
        .form-group-modal select.input-error {
            border-color: #ef4444;
        }

.form-row-modal {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

    .form-row-modal .form-group-modal {
        min-width: 100px;
    }

.form-hint {
    font-size: 0.75rem;
    color: #9ca3af;
}

.required {
    color: #ef4444;
    margin-left: 2px;
}

.optional {
    font-size: 0.73rem;
    color: #9ca3af;
    font-weight: 400;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    padding: 1rem 1.35rem;
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
}

.btn-modal-secondary {
    padding: 0.5rem 1.1rem;
    border: 1px solid #e5e7eb;
    background: white;
    color: #374151;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

    .btn-modal-secondary:hover {
        background: #f3f4f6;
    }

.btn-modal-primary {
    padding: 0.5rem 1.25rem;
    background: #7c3aed;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

    .btn-modal-primary:hover:not(:disabled) {
        background: #6d28d9;
    }

    .btn-modal-primary:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.admin-alert-success {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 8px;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    color: #065f46;
}

.action-btn-activate {
    background: rgba(16, 185, 129, 0.10);
    color: #10b981;
}

    .action-btn-activate:hover {
        background: #10b981;
        color: white;
    }

.table-footer-count {
    padding: 0.65rem 1rem;
    border-top: 1px solid #f3f4f6;
    font-size: 0.78rem;
    color: #9ca3af;
    text-align: right;
}

.text-muted-cell {
    color: #6b7280;
    font-size: 0.82rem;
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Admin Materias — Specific ===== */
.materia-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .materia-avatar svg {
        width: 17px;
        height: 17px;
    }

.materia-codigo-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    background: rgba(14, 165, 233, 0.10);
    color: #0ea5e9;
    padding: 0.18rem 0.6rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
}

/* ===== Admin Secciones — Specific ===== */
.seccion-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: -0.02em;
}

.seccion-nombre {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1f2937;
}

.anio-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(124, 58, 237, 0.10);
    color: #7c3aed;
    padding: 0.18rem 0.6rem;
    border-radius: 6px;
    white-space: nowrap;
}

.nivel-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.18rem 0.55rem;
    border-radius: 6px;
    white-space: nowrap;
}

.nivel-primaria {
    background: rgba(16, 185, 129, 0.10);
    color: #059669;
}

.nivel-secundaria {
    background: rgba(245, 158, 11, 0.10);
    color: #d97706;
}

.grado-cell {
    font-weight: 700;
    font-size: 1rem;
    color: #374151;
    text-align: center;
}

.turno-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.18rem 0.55rem;
    border-radius: 6px;
    white-space: nowrap;
}

.turno-mañana {
    background: rgba(251, 191, 36, 0.15);
    color: #b45309;
}

.turno-tarde {
    background: rgba(249, 115, 22, 0.12);
    color: #c2410c;
}

.turno-noche {
    background: rgba(99, 102, 241, 0.12);
    color: #4338ca;
}

.capacidad-cell {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.875rem;
    color: #374151;
    font-weight: 600;
}

    .capacidad-cell svg {
        width: 15px;
        height: 15px;
        color: #9ca3af;
        flex-shrink: 0;
    }

.seccion-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-select {
    padding: 0.42rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #374151;
    background: white;
    cursor: pointer;
    transition: border-color 0.15s;
}

    .filter-select:focus {
        outline: none;
        border-color: #7c3aed;
        box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.10);
    }

.empty-state-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 10px;
    padding: 0.85rem 1.1rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    color: #92400e;
}

    .empty-state-banner svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        color: #f59e0b;
    }

    .empty-state-banner div {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
    }

    .empty-state-banner strong {
        font-weight: 700;
    }

    .empty-state-banner span {
        font-size: 0.8rem;
        color: #b45309;
    }

/* ═══════════════════════════════════════════════════
   MÓDULO: ALUMNOS
   ═══════════════════════════════════════════════════ */

.alumno-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(124,58,237,0.1);
    color: #7c3aed;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .alumno-avatar svg {
        width: 18px;
        height: 18px;
    }

.alumno-nombre {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1f2937;
}

.alumno-email {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 1px;
}

.codigo-tag {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #374151;
    font-family: monospace;
    letter-spacing: 0.03em;
}

.seccion-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nivel-chip {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    background: rgba(59,130,246,0.1);
    color: #3b82f6;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    width: fit-content;
}

.modal-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin-bottom: 0.75rem;
    margin-top: 0.25rem;
}

    .modal-section-title svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

.section-badge {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #7c3aed;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
}

.dni-lookup-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    margin-bottom: 0.75rem;
}

.btn-lookup {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    background: #7c3aed;
    color: white;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    height: 40px;
    flex-shrink: 0;
    transition: background 0.15s;
}

    .btn-lookup:hover:not(:disabled) {
        background: #6d28d9;
    }

    .btn-lookup:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .btn-lookup svg {
        width: 16px;
        height: 16px;
    }

.lookup-msg {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
}

.lookup-msg-info {
    background: #eff6ff;
    color: #3b82f6;
    border: 1px solid #bfdbfe;
}

.lookup-msg-warn {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.lookup-msg-error {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fecaca;
}

.persona-card-found {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.5rem;
}

.persona-found-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

    .persona-found-header svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

.persona-found-data {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    font-size: 0.85rem;
    color: #374151;
}

.detalle-alumno {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.detalle-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 0.5rem;
    font-size: 0.875rem;
}

    .detalle-row:last-child {
        border-bottom: none;
    }

.detalle-label {
    width: 130px;
    flex-shrink: 0;
    color: #9ca3af;
    font-weight: 500;
    font-size: 0.8rem;
}

.modal-error-msg {
    margin-top: 0.75rem;
    padding: 0.55rem 0.75rem;
    background: #fef2f2;
    color: #dc2626;
    border-radius: 8px;
    font-size: 0.83rem;
    border: 1px solid #fecaca;
}

/* -- Autocomplete alumnos -- */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 220px;
    overflow-y: auto;
    margin-top: 2px;
}

.autocomplete-item {
    padding: 0.55rem 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    transition: background 0.1s;
}

    .autocomplete-item:hover {
        background: #f5f3ff;
    }

.autocomplete-nombre {
    font-size: 0.85rem;
    color: #1f2937;
    font-weight: 500;
}

.autocomplete-codigo {
    font-size: 0.75rem;
    color: #9ca3af;
    font-family: monospace;
    flex-shrink: 0;
}

.alumno-selected-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.6rem;
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #1f2937;
}

.chip-clear {
    margin-left: auto;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1rem;
    padding: 0 0.2rem;
    line-height: 1;
}

    .chip-clear:hover {
        color: #ef4444;
    }

/* Autocomplete hint */
.autocomplete-hint {
    display: block;
    font-size: 0.72rem;
    color: #9ca3af;
    margin-top: 3px;
    padding-left: 2px;
}

/* ── Migrado desde AdminPersonas.razor.css ── */
.person-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.action-btn-del {
    background: rgba(239,68,68,0.1);
    color: #ef4444;
}

    .action-btn-del:hover {
        background: #ef4444;
        color: white;
    }

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pagination-info {
    font-size: 0.8rem;
    color: #9ca3af;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.pag-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 0.4rem;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #1f2937;
    border-radius: 7px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

    .pag-btn svg {
        width: 16px;
        height: 16px;
    }

    .pag-btn:hover:not(:disabled) {
        border-color: #7c3aed;
        color: #7c3aed;
    }

    .pag-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

.pag-btn-active {
    background: #7c3aed;
    border-color: #7c3aed;
    color: white;
}

/* ── Migrado desde AdminProfesores.razor.css ── */
.placeholder-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    margin-top: 1rem;
}

.placeholder-icon {
    width: 72px;
    height: 72px;
    background: rgba(124,58,237,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c3aed;
    margin-bottom: 1.25rem;
}

    .placeholder-icon svg {
        width: 36px;
        height: 36px;
    }

.placeholder-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.placeholder-section p {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.placeholder-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-admin-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: #f3f4f6;
    color: #7c3aed;
    border: 1px solid #7c3aed;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

    .btn-admin-secondary:hover {
        background: #7c3aed;
        color: white;
        text-decoration: none;
    }

/* ── Migrado desde AdminTutores.razor.css ── */
.tutor-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(16,185,129,0.1);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .tutor-avatar svg {
        width: 18px;
        height: 18px;
    }

.tutor-nombre {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1f2937;
}

.tutor-sub {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 1px;
}

.username-tag {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #15803d;
    font-family: monospace;
}

.user-estado-activo {
    font-size: 0.7rem;
    color: #10b981;
    margin-top: 2px;
}

.user-estado-bloqueado {
    font-size: 0.7rem;
    color: #ef4444;
    margin-top: 2px;
}

.alumnos-vinculados {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.alumnos-count-badge {
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #7c3aed;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.alumnos-names {
    font-size: 0.8rem;
    color: #374151;
    line-height: 1.4;
}

.portal-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    background: rgba(124,58,237,0.05);
    border: 1px solid rgba(124,58,237,0.15);
    font-size: 0.8rem;
    color: #4b5563;
    margin-bottom: 0.75rem;
}

.password-input-row {
    display: flex;
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

    .password-input-row input {
        flex: 1;
        border: none !important;
        border-radius: 0 !important;
        padding: 0.55rem 0.75rem;
        font-size: 0.875rem;
        background: white;
        outline: none;
    }

        .password-input-row input:focus {
            box-shadow: none;
        }

.btn-toggle-pass {
    padding: 0 0.65rem;
    background: #f9fafb;
    border: none;
    border-left: 1px solid #e5e7eb;
    cursor: pointer;
    color: #9ca3af;
    display: flex;
    align-items: center;
}

    .btn-toggle-pass:hover {
        background: #f3f4f6;
        color: #6b7280;
    }

.field-hint {
    font-size: 0.72rem;
    color: #9ca3af;
    margin-top: 3px;
    display: block;
}

.section-optional {
    font-size: 0.72rem;
    color: #9ca3af;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 0.25rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #374151;
    cursor: pointer;
    padding-top: 0.35rem;
}

    .checkbox-label input[type="checkbox"] {
        width: 15px;
        height: 15px;
        accent-color: #7c3aed;
        cursor: pointer;
        flex-shrink: 0;
    }

/* === Migrado desde LoginAdmin.razor.css === */
.admin-login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: white;
}

.admin-login-bg {
    background: linear-gradient(150deg, #7c3aed 0%, #4f46e5 60%, #312e81 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

    .admin-login-bg::before {
        content: '';
        position: absolute;
        top: -80px;
        right: -80px;
        width: 320px;
        height: 320px;
        border-radius: 50%;
        background: rgba(255,255,255,0.06);
    }

    .admin-login-bg::after {
        content: '';
        position: absolute;
        bottom: -60px;
        left: -60px;
        width: 250px;
        height: 250px;
        border-radius: 50%;
        background: rgba(255,255,255,0.05);
    }

.brand-panel {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.brand-logo {
    width: 72px;
    height: 72px;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    backdrop-filter: blur(8px);
}

    .brand-logo svg {
        width: 36px;
        height: 36px;
        color: white;
    }

.brand-panel h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    color: white;
}

.brand-panel p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin: 0 0 2.5rem 0;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
    max-width: 280px;
}

.brand-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.875rem;
}

    .brand-feature svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        opacity: 0.9;
    }

.admin-login-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 4rem;
    background: white;
}

.admin-login-header {
    margin-bottom: 2rem;
}

    .admin-login-header h1 {
        font-size: 1.6rem;
        font-weight: 800;
        color: #111827;
        margin: 0 0 0.4rem 0;
    }

    .admin-login-header p {
        color: #6b7280;
        font-size: 0.875rem;
        margin: 0;
    }

.admin-form-group {
    margin-bottom: 1.1rem;
}

    .admin-form-group label {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        font-size: 0.8rem;
        font-weight: 600;
        color: #374151;
        margin-bottom: 0.45rem;
    }

        .admin-form-group label svg {
            width: 14px;
            height: 14px;
            color: #7c3aed;
        }

    .admin-form-group input {
        width: 100%;
        padding: 0.75rem 1rem;
        background: #f9fafb;
        border: 1.5px solid #e5e7eb;
        border-radius: 10px;
        color: #111827;
        font-size: 0.9rem;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

        .admin-form-group input::placeholder {
            color: #9ca3af;
        }

        .admin-form-group input:focus {
            outline: none;
            border-color: #7c3aed;
            background: white;
            box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
        }

.admin-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
    margin-top: 1.5rem;
    background: #7c3aed;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

    .admin-login-btn:hover:not(:disabled) {
        background: #6d28d9;
        transform: translateY(-1px);
    }

    .admin-login-btn:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

    .admin-login-btn svg {
        width: 18px;
        height: 18px;
    }

.admin-login-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

    .back-link:hover {
        color: #7c3aed;
        text-decoration: none;
    }

    .back-link svg {
        width: 14px;
        height: 14px;
    }

@media (max-width: 768px) {
    .admin-login-page {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: linear-gradient(150deg, #7c3aed 0%, #4f46e5 60%, #312e81 100%);
        padding: 1.5rem;
    }

    .admin-login-bg {
        display: none;
    }

    .admin-login-card {
        width: 100%;
        max-width: 400px;
        padding: 2.5rem 2rem;
        background: white;
        border-radius: 20px;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
    }
}

/* === Migrado desde AdminCrearUsuario.razor.css === */

/* ===== WIZARD STEPPER ===== */
.wizard-stepper {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.25s;
}

    .step-circle svg {
        width: 18px;
        height: 18px;
    }

.step-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.step-active .step-circle {
    border-color: #7c3aed;
    background: #7c3aed;
    color: white;
}

.step-active .step-label {
    color: #7c3aed;
}

.step-done .step-circle {
    border-color: #10b981;
    background: #10b981;
    color: white;
}

.step-done .step-label {
    color: #10b981;
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    min-width: 32px;
    margin-bottom: 1.4rem;
    transition: background 0.25s;
}

.line-done {
    background: #10b981;
}

/* ===== WIZARD CARD ===== */
.wizard-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

.wizard-step-content {
    max-width: 680px;
}

.step-header {
    margin-bottom: 1.75rem;
}

    .step-header h2 {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--text);
        margin: 0.4rem 0 0.3rem 0;
    }

    .step-header p {
        color: var(--text-muted);
        font-size: 0.9rem;
        margin: 0;
    }

.step-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
}

.step-badge-purple {
    background: rgba(124,58,237,0.12);
    color: #7c3aed;
}

.step-badge-green {
    background: rgba(16,185,129,0.12);
    color: #10b981;
}

.step-badge-blue {
    background: rgba(59,130,246,0.12);
    color: #3b82f6;
}

.step-badge-orange {
    background: rgba(245,158,11,0.12);
    color: #f59e0b;
}

.step-badge-teal {
    background: rgba(20,184,166,0.12);
    color: #14b8a6;
}

/* ===== FORM ROWS ===== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group-lg {
    grid-column: span 2;
}

.form-group-full {
    grid-column: span 2;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

    .form-group label {
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--text);
    }

    .form-group input,
    .form-group select {
        padding: 0.6rem 0.9rem;
        border: 1px solid var(--border);
        border-radius: 8px;
        font-size: 0.9rem;
        background: var(--bg);
        color: var(--text);
        transition: border-color 0.2s;
    }

        .form-group input:focus,
        .form-group select:focus {
            outline: none;
            border-color: #7c3aed;
            box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
        }

        .form-group input[readonly] {
            opacity: 0.65;
            cursor: not-allowed;
        }

.form-error-msg {
    color: #ef4444;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(239,68,68,0.08);
    border-radius: 8px;
}

/* ===== INPUT CON BOTÓN ===== */
.input-with-btn {
    display: flex;
    gap: 0.5rem;
}

    .input-with-btn input {
        flex: 1;
    }

/* ===== RESULTADOS BÚSQUEDA ===== */
.result-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
}

.result-found {
    background: rgba(16,185,129,0.08);
    border-color: #10b981;
}

.result-not-found {
    background: rgba(245,158,11,0.08);
    border-color: #f59e0b;
}

.result-warning {
    background: rgba(245,158,11,0.08);
    border-color: #f59e0b;
}

.result-complete {
    background: rgba(59,130,246,0.08);
    border-color: #3b82f6;
}

.result-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.result-found .result-icon {
    background: #10b981;
    color: white;
}

.result-not-found .result-icon {
    background: #f59e0b;
    color: white;
}

.result-warning .result-icon {
    background: #f59e0b;
    color: white;
}

.result-complete .result-icon {
    background: #3b82f6;
    color: white;
}

.result-icon svg {
    width: 20px;
    height: 20px;
}

.result-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.result-title {
    font-weight: 700;
    font-size: 0.9rem;
}

.result-name {
    font-size: 1rem;
    font-weight: 600;
}

.result-detail {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== INFO BANNER ===== */
.info-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(59,130,246,0.08);
    border: 1px solid rgba(59,130,246,0.25);
    border-radius: 10px;
    font-size: 0.875rem;
    color: var(--text);
    margin-bottom: 1.25rem;
}

    .info-banner svg {
        width: 18px;
        height: 18px;
        color: #3b82f6;
        flex-shrink: 0;
    }

/* ===== ROLES GRID ===== */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.role-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg);
}

    .role-card input[type="checkbox"] {
        margin-top: 0.15rem;
        accent-color: #7c3aed;
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        cursor: pointer;
    }

    .role-card:hover {
        border-color: #7c3aed;
    }

.role-selected {
    border-color: #7c3aed !important;
    background: rgba(124,58,237,0.06) !important;
}

.role-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.role-name {
    font-weight: 700;
    font-size: 0.9rem;
}

.role-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.role-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    background: rgba(124,58,237,0.1);
    color: #7c3aed;
    padding: 0.1rem 0.5rem;
    border-radius: 20px;
    width: fit-content;
}

/* ===== STEP ACTIONS ===== */
.step-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.step-actions-center {
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

    .btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .btn svg {
        width: 18px;
        height: 18px;
    }

.btn-primary {
    background: #7c3aed;
    color: white;
}

    .btn-primary:hover:not(:disabled) {
        background: #6d28d9;
    }

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}

    .btn-secondary:hover:not(:disabled) {
        border-color: #7c3aed;
        color: #7c3aed;
    }

.btn-success {
    background: #10b981 !important;
}

    .btn-success:hover:not(:disabled) {
        background: #059669 !important;
    }

.form-hint-warn {
    font-size: 0.75rem;
    color: #f59e0b;
    display: block;
    margin-top: 0.25rem;
}

.form-hint-ok {
    font-size: 0.75rem;
    color: #10b981;
    display: block;
    margin-top: 0.25rem;
}

/* ===== SUCCESS ===== */
.wizard-success {
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: rgba(16,185,129,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: #10b981;
}

    .success-icon svg {
        width: 40px;
        height: 40px;
    }

.wizard-success h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.wizard-success p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.success-summary {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

    .summary-item:last-child {
        border-bottom: none;
    }

    .summary-item span {
        color: var(--text-muted);
    }

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-group-lg,
    .form-group-full {
        grid-column: span 1;
    }

    .wizard-stepper {
        gap: 0.25rem;
    }

    .step-label {
        display: none;
    }
}

/* === Migrado desde AdminDashboard.razor.css === */

/* ===== Stats grid ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .stat-icon svg {
        width: 24px;
        height: 24px;
    }

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Accesos rápidos ===== */
.admin-quick-actions {
    margin-top: 0.5rem;
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.quick-action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

    .quick-action-card:hover {
        border-color: #7c3aed;
        box-shadow: 0 4px 16px rgba(124,58,237,0.12);
        text-decoration: none;
        transform: translateY(-1px);
    }

.qa-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .qa-icon svg {
        width: 22px;
        height: 22px;
    }

.qa-purple {
    background: rgba(124,58,237,0.12);
    color: #7c3aed;
}

.qa-green {
    background: rgba(16,185,129,0.12);
    color: #10b981;
}

.qa-blue {
    background: rgba(59,130,246,0.12);
    color: #3b82f6;
}

.qa-orange {
    background: rgba(245,158,11,0.12);
    color: #f59e0b;
}

.qa-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.qa-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.qa-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.qa-arrow {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* === Migrado desde AdminUsuarios.razor.css === */
.roles-chips {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.role-tag {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: rgba(124,58,237,0.1);
    color: #7c3aed;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    text-transform: uppercase;
}

.tu-cuenta-badge {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: rgba(107,114,128,0.12);
    color: #6b7280;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    text-transform: uppercase;
    display: inline-block;
}

.action-cell {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.proximamente-msg {
    font-size: 0.67rem;
    color: #6b7280;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    padding: 0.18rem 0.45rem;
    white-space: nowrap;
    animation: proxFadeIn 0.18s ease;
}

@keyframes proxFadeIn {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Migrado desde PortalLogin.razor.css === */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    max-width: 1200px;
    width: 100%;
    height: 100vh;
    background: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-left {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
}

    .logo svg {
        width: 48px;
        height: 48px;
    }

.login-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
}

.login-header p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.login-form-section h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.user-type-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: var(--bg);
    padding: 0.5rem;
    border-radius: 12px;
}

.tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

    .tab svg {
        width: 20px;
        height: 20px;
    }

    .tab.active {
        background: var(--primary);
        color: white;
    }

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group label svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
}

    .remember-me input {
        width: auto;
        cursor: pointer;
    }

.forgot-password {
    font-size: 0.875rem;
    color: var(--primary);
    text-decoration: none;
}

    .forgot-password:hover {
        text-decoration: underline;
    }

.btn-login {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .btn-login svg {
        width: 20px;
        height: 20px;
    }

.login-footer {
    text-align: center;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
}

.login-as {
    font-size: 0.875rem;
    color: var(--text-muted);
}

    .login-as strong {
        color: var(--success);
    }

.help-section {
    margin-top: 2rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

    .help-section p {
        margin: 0;
        font-size: 0.875rem;
        color: var(--text-muted);
    }

    .help-section a {
        color: var(--primary);
        text-decoration: none;
    }

.admin-access-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-muted) !important;
    opacity: 0.35;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-decoration: none !important;
    transition: opacity 0.3s, color 0.3s;
}

    .admin-access-link:hover {
        opacity: 1;
        color: #7c3aed !important;
    }

    .admin-access-link svg {
        width: 12px;
        height: 12px;
    }

.login-right {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .login-right h2 {
        margin: 0 0 0.5rem 0;
        font-size: 2rem;
        color: white;
    }

.portal-subtitle {
    margin: 0 0 3rem 0;
    font-size: 1rem;
    opacity: 0.9;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .feature-icon svg {
        width: 24px;
        height: 24px;
    }

.feature-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    color: white;
}

.feature-content p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.9;
}

.portal-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

    .portal-footer p {
        margin: 0;
        font-size: 0.875rem;
        opacity: 0.8;
    }

@media (max-width: 1024px) {
    .login-container {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
    }

    .login-right {
        display: none;
    }
}

/* === Migrado desde TutorDashboard.razor.css === */

.stat-icon.students {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.stat-icon.attendance {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.stat-icon.absences {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.stat-icon.notifications {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.children-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.child-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg);
    border-radius: 8px;
}

.child-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .child-avatar svg {
        width: 24px;
        height: 24px;
    }

.child-info {
    flex: 1;
}

.child-name {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.child-grade {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.event-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg);
    border-radius: 8px;
}

.event-date {
    text-align: center;
    padding: 0.5rem;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    min-width: 60px;
}

.event-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.event-content {
    flex: 1;
    display: flex;
    align-items: center;
}

.event-title {
    font-weight: 500;
    color: var(--text);
}

/* === Migrado desde TutorMisHijos.razor.css === */

.children-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.child-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

    .child-card:hover {
        border-color: var(--primary);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .child-card.selected {
        border-color: var(--primary);
        background: rgba(79, 70, 229, 0.05);
    }

.child-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

    .child-card-avatar svg {
        width: 40px;
        height: 40px;
    }

.child-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
}

.child-card p {
    margin: 0 0 1rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.child-stats {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.child-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .child-stat-item .label {
        font-size: 0.875rem;
        color: var(--text-muted);
    }

    .child-stat-item .value {
        font-weight: 700;
        color: var(--success);
        font-size: 1rem;
    }

.detail-panel {
    position: fixed;
    right: 0;
    top: var(--topbar-height);
    width: 400px;
    height: calc(100vh - var(--topbar-height));
    background: var(--surface);
    border-left: 1px solid var(--border);
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    z-index: 50;
}

.detail-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .detail-header h2 {
        margin: 0;
        font-size: 1.25rem;
    }

.detail-body {
    padding: 1.5rem;
}

.detail-section {
    margin-bottom: 2rem;
}

    .detail-section h4 {
        margin: 0 0 1rem 0;
        font-size: 1rem;
        color: var(--text-muted);
    }

.info-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: 8px;
}

    .info-row .label {
        font-weight: 500;
        color: var(--text-muted);
    }

    .info-row .value {
        font-weight: 600;
        color: var(--text);
    }

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.summary-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

    .summary-icon.success {
        background: rgba(16, 185, 129, 0.1);
        color: var(--success);
    }

    .summary-icon.warning {
        background: rgba(245, 158, 11, 0.1);
        color: var(--warning);
    }

    .summary-icon.danger {
        background: rgba(239, 68, 68, 0.1);
        color: var(--danger);
    }

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.summary-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* === Migrado desde TutorAsistencias.razor.css === */

.filter-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.asistencias-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.asistencia-card {
    padding: 0;
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.student-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.student-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .student-avatar svg {
        width: 28px;
        height: 28px;
    }

.student-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.125rem;
}

.student-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.attendance-percentage {
    text-align: center;
}

.percentage-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--success);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
}

.attendance-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.stat-item {
    text-align: center;
}

.stat-value.success {
    color: var(--success);
}

.stat-value.warning {
    color: var(--warning);
}

.stat-value.danger {
    color: var(--danger);
}

.recent-records {
    padding: 1.5rem;
}

    .recent-records h4 {
        margin: 0 0 1rem 0;
        font-size: 0.875rem;
        color: var(--text-muted);
        text-transform: uppercase;
    }

.record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.record-date {
    font-size: 0.875rem;
    color: var(--text);
}

/* === Migrado desde TutorCalendario.razor.css === */

.calendario-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.calendario-card {
    padding: 1.5rem;
}

.calendario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

    .calendario-header h3 {
        margin: 0;
        font-size: 1.25rem;
    }

.calendario-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.day-header {
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-muted);
    padding: 0.5rem;
}

.day-cell {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

    .day-cell:hover:not(.empty) {
        background: var(--primary);
        color: white;
    }

    .day-cell.empty {
        background: transparent;
        cursor: default;
    }

    .day-cell.today {
        background: var(--primary);
        color: white;
        font-weight: 700;
    }

    .day-cell.has-event::after {
        content: '';
        position: absolute;
        bottom: 4px;
        width: 6px;
        height: 6px;
        background: var(--warning);
        border-radius: 50%;
    }

.day-number {
    font-size: 0.875rem;
}

.eventos-card {
    padding: 1.5rem;
}

    .eventos-card h3 {
        margin: 0 0 1.5rem 0;
    }

.eventos-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.evento-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg);
    border-radius: 8px;
}

.evento-date {
    text-align: center;
    padding: 0.5rem;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    min-width: 56px;
}

.evento-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.evento-month {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.evento-info {
    flex: 1;
}

    .evento-info h4 {
        margin: 0 0 0.25rem 0;
        font-size: 1rem;
    }

    .evento-info p {
        margin: 0;
        font-size: 0.875rem;
        color: var(--text-muted);
    }

.evento-type {
    display: flex;
    align-items: center;
}

@media (max-width: 1024px) {
    .calendario-container {
        grid-template-columns: 1fr;
    }
}

/* === Migrado desde TutorCuenta.razor.css === */

.cuenta-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
}

.profile-card {
    text-align: center;
}

.profile-header {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

    .profile-avatar svg {
        width: 50px;
        height: 50px;
    }

.profile-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.profile-header p {
    margin: 0;
    color: var(--text-muted);
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

    .info-item .label {
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
    }

    .info-item .value {
        font-size: 0.875rem;
        color: var(--text);
    }

.settings-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.children-list-simple {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.child-item-simple {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg);
    border-radius: 8px;
}

.child-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .child-avatar-small svg {
        width: 20px;
        height: 20px;
    }

.child-info-simple {
    flex: 1;
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg);
    border-radius: 8px;
}

.setting-info {
    flex: 1;
}

.setting-label {
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.setting-description {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border);
    transition: 0.3s;
    border-radius: 24px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background: white;
        transition: 0.3s;
        border-radius: 50%;
    }

input:checked + .slider {
    background: var(--primary);
}

    input:checked + .slider:before {
        transform: translateX(24px);
    }

.actions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

@media (max-width: 1024px) {
    .cuenta-grid {
        grid-template-columns: 1fr;
    }
}

/* === Migrado desde TutorJustificaciones.razor.css === */

.justificacion-form {
    margin-bottom: 2rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
}

.justificaciones-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.justificacion-item {
    padding: 0;
    overflow: hidden;
}

.justificacion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.justificacion-student {
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .justificacion-student h4 {
        margin: 0 0 0.25rem 0;
        font-size: 1rem;
    }

    .justificacion-student p {
        margin: 0;
        font-size: 0.875rem;
        color: var(--text-muted);
    }

.justificacion-body {
    padding: 1.5rem;
}

.justificacion-motivo {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: 6px;
}

.justificacion-descripcion {
    color: var(--text-muted);
    line-height: 1.6;
}

/* === Migrado desde TutorNotificaciones.razor.css === */

.notificaciones-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notificacion-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

    .notificacion-item:hover {
        transform: translateX(4px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .notificacion-item.unread {
        background: rgba(79, 70, 229, 0.05);
        border-left: 4px solid var(--primary);
    }

    .notificacion-item.read {
        opacity: 0.7;
    }

.notificacion-indicator {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    display: none;
}

.notificacion-item.unread .notificacion-indicator {
    display: block;
}

.notificacion-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .notificacion-icon svg {
        width: 24px;
        height: 24px;
    }

    .notificacion-icon.mensaje {
        background: rgba(59, 130, 246, 0.1);
        color: #3b82f6;
    }

    .notificacion-icon.ausencia {
        background: rgba(239, 68, 68, 0.1);
        color: #ef4444;
    }

    .notificacion-icon.info {
        background: rgba(245, 158, 11, 0.1);
        color: #f59e0b;
    }

.notificacion-content {
    flex: 1;
}

.notificacion-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.notificacion-content h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.notificacion-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.notificacion-content p {
    margin: 0 0 0.75rem 0;
    color: var(--text-muted);
    line-height: 1.5;
}

.notificacion-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* === Migrado desde ProfesorDashboard.razor.css === */

.stat-icon.messages {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* === Migrado desde ProfesorAsistencias.razor.css === */

.date-selector {
    display: flex;
    gap: 0.5rem;
}

.asistencia-table {
    display: flex;
    flex-direction: column;
}

.table-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg);
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    color: var(--text);
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

    .table-row:last-child {
        border-bottom: none;
    }

.col-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.student-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .student-avatar-small svg {
        width: 20px;
        height: 20px;
    }

.status-buttons {
    display: flex;
    gap: 0.5rem;
}

.status-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

    .status-btn.presente {
        color: var(--success);
    }

    .status-btn.tarde {
        color: var(--warning);
    }

    .status-btn.ausente {
        color: var(--danger);
    }

    .status-btn.active.presente {
        background: var(--success);
        color: white;
        border-color: var(--success);
    }

    .status-btn.active.tarde {
        background: var(--warning);
        color: white;
        border-color: var(--warning);
    }

    .status-btn.active.ausente {
        background: var(--danger);
        color: white;
        border-color: var(--danger);
    }

    .status-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

/* === Migrado desde ProfesorComunicados.razor.css === */

.new-comunicado-form {
    margin-bottom: 2rem;
}

.comunicados-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comunicado-item {
    position: relative;
}

.comunicado-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.comunicado-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

    .comunicado-badge.grupal {
        background: rgba(59, 130, 246, 0.1);
        color: #3b82f6;
    }

    .comunicado-badge.individual {
        background: rgba(245, 158, 11, 0.1);
        color: #f59e0b;
    }

.comunicado-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.comunicado-item h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1.125rem;
}

.comunicado-item p {
    color: var(--text-muted);
    margin: 0 0 1rem 0;
}

.comunicado-footer {
    display: flex;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.destinatarios {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* === Migrado desde ProfesorEstadisticas.razor.css === */

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-summary {
    text-align: center;
}

.big-stat {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin: 1rem 0;
}

.stat-change {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

    .stat-change.positive {
        color: var(--success);
    }

.cards-grid-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 1rem;
    height: 250px;
    padding: 1rem 0;
    margin-top: 1rem;
}

.bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.bar-container {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: flex-end;
}

.bar {
    width: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, #667eea 100%);
    border-radius: 8px 8px 0 0;
    transition: all 0.3s;
}

.bar-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.bar-value {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: 8px;
}

.ranking-position {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.ranking-name {
    flex: 1;
    font-weight: 500;
    color: var(--text);
}

.ranking-score {
    font-weight: 700;
    color: var(--success);
}

/* === Migrado desde ProfesorEstudiantes.razor.css === */

.toolbar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.search-input {
    flex: 1;
    max-width: 400px;
}

.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.student-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

    .student-card:hover {
        border-color: var(--primary);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .student-card.selected {
        border-color: var(--primary);
        background: rgba(79, 70, 229, 0.05);
    }

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* === Migrado desde ProfesorReportes.razor.css === */

.reportes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.reporte-card {
    text-align: center;
}

.reporte-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

    .reporte-icon svg {
        width: 40px;
        height: 40px;
    }

.reporte-card h3 {
    margin-bottom: 0.5rem;
}

.reporte-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.historial-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.historial-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg);
    border-radius: 8px;
}

.historial-icon {
    width: 48px;
    height: 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

    .historial-icon svg {
        width: 24px;
        height: 24px;
    }

.historial-info {
    flex: 1;
}

.historial-title {
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.historial-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* === Migrado desde Error.razor.css === */

.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    padding: 2rem;
}

.error-container {
    text-align: center;
    max-width: 500px;
    background: var(--surface);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.error-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger);
}

    .error-icon svg {
        width: 64px;
        height: 64px;
    }

.error-container h1 {
    font-size: 2rem;
    margin: 0 0 1rem 0;
    color: var(--danger);
}

.error-container h2 {
    font-size: 1.125rem;
    margin: 0 0 1.5rem 0;
    color: var(--text);
    font-weight: 400;
}

.error-details {
    padding: 1rem;
    background: var(--bg);
    border-radius: 8px;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

    .error-details code {
        color: var(--primary);
        font-weight: 600;
    }

/* === Migrado desde NotFound.razor.css === */

.not-found-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    padding: 2rem;
}

.not-found-container {
    text-align: center;
    max-width: 500px;
}

.not-found-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger);
}

    .not-found-icon svg {
        width: 64px;
        height: 64px;
    }

.not-found-container h1 {
    font-size: 6rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 1rem 0;
    line-height: 1;
}

.not-found-container h2 {
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
}

.not-found-container p {
    color: var(--text-muted);
    margin: 0 0 2rem 0;
}

/* ════════════════════════════════════════════════════════════
   CAMBIAR PASSWORD (Tutor / Profesor — reutilizable)
   ════════════════════════════════════════════════════════════ */

/* Wrapper para flujo obligatorio: pantalla completa centrada como login */
.cambiar-pass-auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f0ff 0%, #e8e0ff 100%);
    padding: 1.5rem;
}

/* Marca SkySchool en flujo obligatorio */
.cambiar-pass-brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.cambiar-pass-brand-logo {
    width: 36px;
    height: 36px;
    background: #7c3aed;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

    .cambiar-pass-brand-logo svg {
        width: 20px;
        height: 20px;
    }

.cambiar-pass-brand-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
}

.cambiar-pass-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: calc(100vh - 120px);
    padding: 2rem 1rem;
}

.cambiar-pass-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
}

.cambiar-pass-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.cambiar-pass-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(124,58,237,0.1);
    color: #7c3aed;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

    .cambiar-pass-icon svg {
        width: 30px;
        height: 30px;
    }

.cambiar-pass-header h1 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.4rem;
}

.cambiar-pass-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

    .cambiar-pass-subtitle.obligatorio {
        color: #b45309;
        background: #fffbeb;
        border: 1px solid #fde68a;
        border-radius: 8px;
        padding: 0.5rem 0.75rem;
        font-size: 0.82rem;
    }

.cambiar-pass-alert {
    margin-bottom: 1.25rem;
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.cambiar-pass-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.required-mark {
    color: #dc2626;
    margin-left: 2px;
}

/* Indicador de fortaleza */
.pass-strength-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 4px;
    margin-top: 6px;
    overflow: hidden;
}

.pass-strength-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s, background 0.3s;
}

    .pass-strength-fill.strength-debil {
        width: 33%;
        background: #ef4444;
    }

    .pass-strength-fill.strength-media {
        width: 66%;
        background: #f59e0b;
    }

    .pass-strength-fill.strength-fuerte {
        width: 100%;
        background: #10b981;
    }

.pass-strength-label {
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 3px;
    display: block;
}

    .pass-strength-label.strength-debil {
        color: #ef4444;
    }

    .pass-strength-label.strength-media {
        color: #f59e0b;
    }

    .pass-strength-label.strength-fuerte {
        color: #10b981;
    }

.cambiar-pass-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

    .cambiar-pass-actions .btn-admin-primary {
        flex: 1;
        justify-content: center;
    }

@media (max-width: 480px) {
    .cambiar-pass-card {
        padding: 1.5rem 1rem;
    }

    .cambiar-pass-actions {
        flex-direction: column-reverse;
    }

        .cambiar-pass-actions .btn-admin-secondary,
        .cambiar-pass-actions .btn-admin-primary {
            width: 100%;
            justify-content: center;
        }
}

/* ════════════════════════════════════════════════════════════
   PORTAL TUTOR — Dashboard, MisHijos, Asistencias
   ════════════════════════════════════════════════════════════ */

/* ── Hijo row en dashboard ── */
.hijo-dashboard-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: white;
    transition: background 0.15s, box-shadow 0.15s;
}

    .hijo-dashboard-row:hover {
        background: #f9fafb;
        box-shadow: 0 2px 8px rgba(0,0,0,.07);
    }

.hijo-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ede9fe;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #7c3aed;
}

    .hijo-avatar svg {
        width: 22px;
        height: 22px;
    }

.hijo-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}

.hijo-nombre {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hijo-seccion {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.hijo-estado-hoy {
    flex-shrink: 0;
}

.hijo-hora {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

/* ── Hijo card completa (MisHijos) ── */
.hijo-card-full {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.hijo-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: #fafafa;
}

.hijo-avatar-lg {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ede9fe;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #7c3aed;
}

    .hijo-avatar-lg svg {
        width: 28px;
        height: 28px;
    }

.hijo-card-info h3 {
    margin: 0 0 0.2rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.hijo-codigo {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.hijo-card-body {
    padding: 1.25rem 1.5rem;
}

.hijo-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.hijo-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.detail-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.hijo-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    background: #fafafa;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 640px) {
    .hijo-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hijo-card-header {
        flex-wrap: wrap;
    }
}

/* ===================================================================
   AdminDashboard — estilos adicionales
   Agregar al FINAL de wwwroot/css/skyschool.css
   =================================================================== */

/* ── Label de sección ── */
.dash-section-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted, #6b7280);
    margin-bottom: 0.75rem;
}

    .dash-section-label svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }

/* ── Grid 5 columnas para stats de asistencia ── */
.stats-grid-5 {
    grid-template-columns: repeat(5, 1fr) !important;
}

@media (max-width: 1200px) {
    .stats-grid-5 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .stats-grid-5 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .stats-grid-5 {
        grid-template-columns: 1fr !important;
    }
}

/* ── Variantes de color en stat-value ── */
.stat-green {
    color: #10b981 !important;
}

.stat-amber {
    color: #f59e0b !important;
}

.stat-red {
    color: #ef4444 !important;
}

/* ── Skeleton loader dentro de stat-card ── */
.stat-skeleton {
    width: 100%;
    height: 56px;
    border-radius: 8px;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ── Stat card con ring de % ── */
.stat-card-pct {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 1rem !important;
}

.stat-pct-ring {
    position: relative;
    width: 64px;
    height: 64px;
}

.pct-svg {
    width: 64px;
    height: 64px;
    transform: rotate(-90deg);
}

.pct-track {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 3;
}

.pct-fill {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 0.6s ease;
}

    .pct-fill.pct-green {
        stroke: #10b981;
    }

    .pct-fill.pct-amber {
        stroke: #f59e0b;
    }

    .pct-fill.pct-red {
        stroke: #ef4444;
    }

.pct-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
}

    .pct-label.pct-green {
        color: #10b981;
    }

    .pct-label.pct-amber {
        color: #f59e0b;
    }

    .pct-label.pct-red {
        color: #ef4444;
    }

.stat-sublabel {
    font-size: 0.65rem;
    color: var(--text-muted, #9ca3af);
    text-align: center;
    margin-top: 2px;
}

/* ── Layout inferior: actividad + accesos rápidos ── */
.dash-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    margin-top: 0.5rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .dash-bottom-grid {
        grid-template-columns: 1fr;
    }
}

.dash-activity-panel,
.dash-quicklinks-panel {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
}

/* ── Badges de marcación ── */
.badge-entrada {
    background: rgba(16,185,129,.12);
    color: #10b981;
}

.badge-salida {
    background: rgba(59,130,246,.12);
    color: #3b82f6;
}

.badge-tardanza {
    background: rgba(245,158,11,.12);
    color: #d97706;
}

.badge-duplicado {
    background: rgba(107,114,128,.12);
    color: #6b7280;
}

/* ── Botón secundario con icono spinner pequeño ── */
.spinner-sm {
    width: 14px;
    height: 14px;
    border-width: 2px;
}
/* ===================================================================
   Pre-Kiosco — estilos adicionales
   Agregar al FINAL de wwwroot/css/skyschool.css
   =================================================================== */

/* ── Info box informativo ── */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: rgba(59,130,246,.06);
    border: 1px solid rgba(59,130,246,.2);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-size: 0.82rem;
    color: #374151;
    line-height: 1.5;
}

    .info-box svg {
        width: 16px;
        height: 16px;
        color: #3b82f6;
        flex-shrink: 0;
        margin-top: 1px;
    }

/* ── Modal card grande (política acceso) ── */
.modal-card-lg {
    max-width: 580px !important;
}

/* ── Form row 2 columnas ── */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}

@media (max-width: 520px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }
}

/* ── Horario rango en tabla ── */
.horario-rango {
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    font-variant-numeric: tabular-nums;
}

/* ── Badge de minutos ── */
.badge-minutos {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 600;
}

.badge-min-amber {
    background: rgba(245,158,11,.12);
    color: #d97706;
}

.badge-min-gray {
    background: rgba(107,114,128,.12);
    color: #6b7280;
}

.badge-min-green {
    background: rgba(16,185,129,.12);
    color: #10b981;
}

/* ── Días badge ── */
.dias-badge {
    font-size: 0.72rem;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 6px;
}

/* ── Método badge en credenciales ── */
.metodo-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.metodo-nfc {
    background: rgba(124,58,237,.12);
    color: #7c3aed;
}

.metodo-qr {
    background: rgba(16,185,129,.12);
    color: #059669;
}

.metodo-huella {
    background: rgba(245,158,11,.12);
    color: #d97706;
}

/* ── Credencial valor (código) ── */
.credencial-valor {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.78rem;
    background: #f3f4f6;
    color: #374151;
    padding: 2px 7px;
    border-radius: 5px;
    border: 1px solid #e5e7eb;
    letter-spacing: .06em;
}

/* ── Selector de método NFC/QR ── */
.metodo-selector {
    display: flex;
    gap: 0.75rem;
}

.metodo-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: white;
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}

    .metodo-btn svg {
        width: 18px;
        height: 18px;
    }

    .metodo-btn:hover {
        border-color: #7c3aed;
        color: #7c3aed;
    }

.metodo-btn-active {
    border-color: #7c3aed !important;
    background: rgba(124,58,237,.06) !important;
    color: #7c3aed !important;
}

/* ===== AdminReporteAsistencia ===== */

/* Grid de filtros del reporte */
.reporte-filtros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.75rem;
    align-items: end;
}

/* Label + input dentro de los filtros */
.form-group-reporte {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group-reporte label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Cards de resumen (PUNTUAL / TARDANZA / SALIDA / DENEGADO / DUPLICADO) */
.reporte-resumen-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

@media (max-width: 900px) {
    .reporte-resumen-cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
    .reporte-resumen-cards { grid-template-columns: repeat(2, 1fr); }
    .reporte-filtros-grid  { grid-template-columns: 1fr 1fr; }
}

.reporte-resumen-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.reporte-resumen-icon  { font-size: 1.5rem; }
.reporte-resumen-valor { font-size: 1.75rem; font-weight: 700; color: #1f2937; line-height: 1; }
.reporte-resumen-label { font-size: 0.75rem; color: #6b7280; }

/* Badge tardanza (faltaba en skyschool.css) */
.estado-tardanza {
    background: rgba(245, 158, 11, 0.12);
    color: #92400e;
}

/* Pagina activa en paginador */
.pag-btn-active {
    background: #7c3aed;
    color: white;
    border-color: #7c3aed;
}
