/* Sistema Integrado de Gestión Académica - IESPP "Federico Kaiser" */
/* Modern Visual Theme & Design System */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --font-main: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Paleta Principal */
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --primary-deep: #0c4a6e;
    --primary-light: #e0f2fe;
    --primary-gradient: linear-gradient(135deg, #0284c7 0%, #0369a1 50%, #075985 100%);
    
    /* Secundarios & Estados */
    --secondary: #059669;
    --secondary-dark: #047857;
    --secondary-light: #d1fae5;
    
    --accent: #6366f1;
    --accent-light: #e0e7ff;
    
    --warning: #d97706;
    --warning-light: #fef3c7;
    
    --danger: #dc2626;
    --danger-dark: #b91c1c;
    --danger-light: #fee2e2;
    
    /* Fondos & Superficies */
    --bg: #f8fafc;
    --bg-alt: #f1f5f9;
    --surface: #ffffff;
    --surface-hover: #f8fafc;
    
    /* Textos */
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    /* Bordes & Sombras */
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --border-dark: #cbd5e1;
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow: 0 4px 12px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 20px 35px -5px rgba(15, 23, 42, 0.10), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.25);
    
    --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   BARRA DE NAVEGACIÓN
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 24px;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    padding: 10px 28px;
    min-height: 68px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    flex-shrink: 0;
    transition: opacity 0.2s;
}
.navbar-brand:hover {
    opacity: 0.9;
}
.navbar-logo-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    overflow: hidden;
}
.navbar-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.navbar-title-wrap {
    display: flex;
    flex-direction: column;
}
.navbar-title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #ffffff;
}
.navbar-subtitle {
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.navbar-nav {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    flex: 1;
    min-width: 0;
}

.navbar-group { position: relative; }
.navbar-group details > summary {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
    cursor: pointer;
    list-style: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition);
}
.navbar-group details > summary::marker { content: ''; }
.navbar-group details > summary::-webkit-details-marker { display: none; }
.navbar-group details > summary::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s;
}
.navbar-group details[open] > summary::after {
    transform: rotate(225deg);
    margin-top: 3px;
}
.navbar-group details > summary:hover,
.navbar-group details[open] > summary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.navbar-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 100;
    min-width: 240px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.18), 0 4px 12px rgba(15, 23, 42, 0.08);
    animation: fadeInDropdown 0.15s ease-out;
}
@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.navbar-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 7px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: var(--transition);
}
.navbar-dropdown a:hover {
    background: #f1f5f9;
    color: var(--primary-dark);
    transform: translateX(2px);
}

.navbar-user {
    margin-left: auto;
    position: relative;
    flex-shrink: 0;
}
.navbar-user summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px 12px 5px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: var(--transition);
}
.navbar-user summary::-webkit-details-marker { display: none; }
.navbar-user summary:hover {
    background: rgba(255, 255, 255, 0.15);
}
.navbar-user .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7, #06b6d4);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.navbar-user-name {
    display: block;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    color: #f8fafc;
}
.navbar-user-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    padding: 8px;
    z-index: 100;
    animation: fadeInDropdown 0.15s ease-out;
}
.navbar-user-menu .navbar-user-rol {
    margin: 0;
    padding: 6px 12px 10px;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
}
.navbar-user-menu a {
    display: block;
    padding: 9px 12px;
    border-radius: 7px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}
.navbar-user-menu a:hover {
    background: #f1f5f9;
    color: var(--text-primary);
}
.navbar-user-menu a.salir {
    color: var(--danger);
    font-weight: 600;
}
.navbar-user-menu a.salir:hover {
    background: var(--danger-light);
}

@media (max-width: 900px) {
    .navbar { gap: 12px; padding-right: 16px; padding-left: 16px; }
    .navbar-title { font-size: 14px; }
    .navbar-nav { gap: 2px; }
    .navbar-group details > summary { padding-right: 8px; padding-left: 8px; }
    .navbar-user-name { max-width: 110px; }
}

@media (max-width: 680px) {
    .navbar { flex-wrap: wrap; gap: 6px 12px; padding: 10px 16px; }
    .navbar-brand { margin-right: auto; }
    .navbar-nav {
        order: 3;
        flex: 1 0 100%;
        flex-wrap: wrap;
        border-top: 1px solid rgba(255,255,255,0.16);
        padding-top: 6px;
    }
    .navbar-user { margin-left: 0; }
    .navbar-user-name { display: none; }
    .navbar-user summary { padding: 4px; }
    .navbar-dropdown { top: calc(100% + 5px); }
}

@media (max-width: 400px) {
    .navbar-title { font-size: 13px; }
    .navbar-nav { gap: 0; }
    .navbar-group details > summary { padding: 8px 7px; font-size: 13px; }
    .navbar-group details > summary::after { margin-left: 6px; }
    .navbar-user-name { max-width: 90px; }
}

/* ==========================================================================
   BANDA DE TÍTULO DE PÁGINA (PAGE HEADER)
   ========================================================================== */
.page-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    color: white;
    padding: 24px 0 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #38bdf8, var(--accent));
}
.page-header .container {
    padding: 0 24px;
    margin: 0 auto;
    max-width: 1200px;
}
.page-header-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 6px;
    transition: color 0.15s;
}
.page-header-back:hover {
    color: #38bdf8;
}
.page-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   CONTENEDOR & LAYOUT PRINCIPAL
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 28px auto 40px;
    padding: 0 24px;
    flex: 1;
    width: 100%;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
}

/* Banner de Bienvenida Visual */
.hero-banner {
    background: linear-gradient(135deg, #075985 0%, #0284c7 50%, #0369a1 100%);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    color: white;
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: var(--shadow-md), var(--shadow-glow);
    position: relative;
    overflow: hidden;
}
.hero-banner::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}
.hero-content h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}
.hero-content p {
    font-size: 14px;
    color: #e0f2fe;
    margin: 0;
    max-width: 650px;
    line-height: 1.5;
}
.hero-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.hero-pill {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   TARJETAS DE ESTADÍSTICAS (STAT CARDS)
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px 22px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-icon svg {
    width: 26px;
    height: 26px;
}

.stat-estudiantes .stat-icon {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1d4ed8;
}
.stat-cursos .stat-icon {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #6d28d9;
}
.stat-matriculas .stat-icon {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #047857;
}
.stat-pendientes .stat-icon {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
}
.stat-fichas .stat-icon {
    background: linear-gradient(135deg, #ffe4e6 0%, #fecdd3 100%);
    color: #be123c;
}

.stat-info {
    flex: 1;
}
.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 3px;
}

/* ==========================================================================
   TARJETAS DE MÓDULOS (DASHBOARD CARDS)
   ========================================================================== */
.card {
    background: var(--surface);
    padding: 26px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.card-header-flex {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}
.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--primary-light);
    color: var(--primary-dark);
}
.card-icon svg {
    width: 24px;
    height: 24px;
}
.card-icon.icon-docente {
    background: #ede9fe;
    color: #6d28d9;
}
.card-icon.icon-reportes {
    background: #d1fae5;
    color: #047857;
}
.card-icon.icon-cert {
    background: #fef3c7;
    color: #b45309;
}
.card-icon.icon-plan {
    background: #e0f2fe;
    color: #0369a1;
}
.card-icon.icon-admin {
    background: #f1f5f9;
    color: #334155;
}

.card h3 {
    color: var(--text-primary);
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.card-category {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}
.card p {
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
}
.card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

/* ==========================================================================
   BOTONES MODERNOS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 13.5px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1.3;
}
.btn:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
    transform: translateY(-1px);
}
.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: #0f172a;
    color: white;
}
.btn-secondary:hover {
    background-color: #1e293b;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.btn-success {
    background-color: var(--secondary);
    color: white;
}
.btn-success:hover {
    background-color: var(--secondary-dark);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.btn-outline {
    background: #ffffff;
    color: var(--text-secondary);
    border: 1px solid var(--border-dark);
}
.btn-outline:hover {
    background: #f8fafc;
    color: var(--primary-dark);
    border-color: var(--primary);
    box-shadow: var(--shadow-xs);
}

.btn-soft {
    background: var(--primary-light);
    color: var(--primary-dark);
}
.btn-soft:hover {
    background: #bae6fd;
    color: var(--primary-deep);
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}
.btn-danger:hover {
    background-color: var(--danger-dark);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12.5px;
    border-radius: 7px;
}

.btn-block {
    display: flex;
    width: 100%;
}

button.btn {
    width: auto;
}
.card-actions .btn {
    width: 100%;
}

/* ==========================================================================
   PANELES Y FORMULARIOS
   ========================================================================== */
.panel {
    background: var(--surface);
    padding: 26px 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}
.panel h2 {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}
.panel h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 14px;
}

.formulario-contenedor {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    max-width: 600px;
    margin: auto;
    box-shadow: var(--shadow-md);
}
.formulario-contenedor h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 18px;
}
label {
    display: block;
    font-weight: 600;
    margin-bottom: 7px;
    font-size: 13.5px;
    color: var(--text-secondary);
}
input[type="text"], 
input[type="number"], 
input[type="date"], 
input[type="password"], 
input[type="email"],
select, 
textarea {
    width: 100%;
    padding: 10px 14px;
    box-sizing: border-box;
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #ffffff;
    color: var(--text-primary);
    transition: var(--transition);
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

fieldset {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    background: #fafbfc;
}
legend {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-deep);
    padding: 2px 10px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
}

/* ==========================================================================
   TABLAS MODERNAS
   ========================================================================== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-top: 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
}
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    margin-top: 10px;
}
th, td {
    padding: 12px 16px;
    text-align: left;
    font-size: 13.5px;
    border-bottom: 1px solid var(--border);
}
th {
    background-color: #f8fafc;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-top: 1px solid var(--border);
    border-bottom: 2px solid var(--border);
}
tr:last-child td {
    border-bottom: none;
}
tr:hover td {
    background-color: #f8fafc;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.badge-success { background: var(--secondary-light); color: var(--secondary-dark); }
.badge-danger { background: var(--danger-light); color: var(--danger-dark); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-info { background: var(--primary-light); color: var(--primary-dark); }
.badge-muted { background: #e2e8f0; color: var(--text-muted); }

/* Alertas */
.alert-success {
    color: var(--secondary-dark);
    background: var(--secondary-light);
    border: 1px solid #a7f3d0;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 18px;
}
.alert-error {
    color: var(--danger-dark);
    background: var(--danger-light);
    border: 1px solid #fecaca;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 18px;
}

/* ==========================================================================
   PANTALLA DE LOGIN
   ========================================================================== */
.login-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #072138;
    background-image: 
        radial-gradient(circle at 18% 22%, rgba(2, 132, 199, 0.45) 0%, transparent 48%),
        radial-gradient(circle at 82% 78%, rgba(99, 102, 241, 0.35) 0%, transparent 52%),
        radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.8) 0%, #071524 100%);
    padding: 24px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

/* Patrón de fondo geométrico con iconos temáticos de educación (libros, birretes, compás, graduación) */
.login-bg-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.12;
    background-repeat: repeat;
    background-size: 160px 160px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='%23ffffff'%3E%3C!-- Birrete de graduación --%3E%3Cpath d='M36 28 L56 18 L76 28 L56 38 Z' stroke='%23ffffff' stroke-width='1.5' fill='none'/%3E%3Cpath d='M44 32 L44 42 C44 47 68 47 68 42 L68 32' stroke='%23ffffff' stroke-width='1.5' fill='none'/%3E%3Cpath d='M76 28 L79 38' stroke='%23ffffff' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='79' cy='40' r='1.5'/%3E%3C!-- Libro abierto --%3E%3Cpath d='M110 32 C118 28 126 28 134 32 L134 48 C126 44 118 44 110 48 Z' stroke='%23ffffff' stroke-width='1.5' fill='none'/%3E%3Cpath d='M110 32 C102 28 94 28 86 32 L86 48 C94 44 102 44 110 48 Z' stroke='%23ffffff' stroke-width='1.5' fill='none'/%3E%3Cline x1='110' y1='32' x2='110' y2='48' stroke='%23ffffff' stroke-width='1.5'/%3E%3C!-- Lápiz / Pluma --%3E%3Cpath d='M25 105 L45 85 L53 93 L33 113 L23 115 Z' stroke='%23ffffff' stroke-width='1.5' fill='none'/%3E%3Cline x1='28' y1='102' x2='36' y2='110' stroke='%23ffffff' stroke-width='1.2'/%3E%3C!-- Certificado / Diploma con cinta --%3E%3Crect x='96' y='96' width='32' height='22' rx='2' stroke='%23ffffff' stroke-width='1.5' fill='none'/%3E%3Cline x1='102' y1='103' x2='122' y2='103' stroke='%23ffffff' stroke-width='1.2'/%3E%3Cline x1='102' y1='108' x2='116' y2='108' stroke='%23ffffff' stroke-width='1.2'/%3E%3Ccircle cx='118' cy='112' r='2.5' stroke='%23ffffff' stroke-width='1.2' fill='none'/%3E%3C!-- Átomos / Conocimiento / Estrellas decorativas --%3E%3Ccircle cx='76' cy='82' r='2' fill='%23ffffff'/%3E%3Ccircle cx='20' cy='52' r='1.5' fill='%23ffffff'/%3E%3Ccircle cx='145' cy='78' r='1.5' fill='%23ffffff'/%3E%3Ccircle cx='140' cy='140' r='2' fill='%23ffffff'/%3E%3Ccircle cx='68' cy='140' r='1.5' fill='%23ffffff'/%3E%3C/g%3E%3C/svg%3E");
    animation: floatingBackground 60s linear infinite;
}

@keyframes floatingBackground {
    0% { background-position: 0 0; }
    100% { background-position: 160px 160px; }
}

/* Efectos visuales de luz suave y desenfocada */
.login-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.login-orb-1 {
    width: 480px;
    height: 480px;
    background: rgba(14, 165, 233, 0.22);
    top: -120px;
    right: -100px;
}
.login-orb-2 {
    width: 420px;
    height: 420px;
    background: rgba(99, 102, 241, 0.18);
    bottom: -120px;
    left: -100px;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.2);
    padding: 42px 36px;
    max-width: 420px;
    width: 100%;
    position: relative;
    z-index: 10;
}
.login-logo-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: white;
    border-radius: 20px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
}
.login-logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.login-card h2 {
    text-align: center;
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.login-card .login-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 13.5px;
    margin-bottom: 24px;
    font-weight: 500;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 24px 20px;
    color: var(--text-muted);
    font-size: 12.5px;
    border-top: 1px solid var(--border);
    background: #ffffff;
    margin-top: auto;
}

/* ==========================================================================
   ESTILOS GENERALES DE IMPRESIÓN Y DOCUMENTOS OFICIALES
   ========================================================================== */
.doc-box table,
.doc-box-landscape table,
.doc-oficial table,
.plan-print-box table,
#print-area table {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0;
    background: transparent !important;
}

.doc-box th, .doc-box td,
.doc-box-landscape th, .doc-box-landscape td,
.doc-oficial th, .doc-oficial td,
.plan-print-box th, .plan-print-box td,
#print-area th, #print-area td {
    border: 1px solid #111111 !important;
    color: #000000 !important;
    font-size: inherit;
    letter-spacing: normal !important;
    text-transform: none;
    line-height: 1.25 !important;
}

@media print {
    *, *::before, *::after {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    html, body {
        background: #ffffff !important;
        color: #000000 !important;
        display: block !important;
        min-height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .navbar, .page-header, .no-print, .site-footer, .alert-success, .alert-error {
        display: none !important;
    }

    .container {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: none !important;
        display: block !important;
    }

    .panel {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .doc-box, .doc-box-landscape, .doc-oficial, .plan-print-box, #print-area {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border: none !important;
        box-shadow: none !important;
        background: #ffffff !important;
    }

    .doc-header-logos {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .doc-firmas-boleta,
    .doc-firmas-ficha,
    .doc-firmas-nomina,
    .doc-firmas-acta,
    .doc-firmas-cert,
    .doc-firmas-egresado,
    .doc-firmas-seg,
    .doc-firmas,
    .signatures {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    table {
        page-break-inside: auto;
    }
    tr {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
}

@media (max-width: 768px) {
    .hero-banner { padding: 22px; }
    .hero-content h2 { font-size: 20px; }
    .navbar { padding: 10px 16px; }
    .container { padding: 0 16px; margin-top: 18px; }
}
