:root {
    --bg-main: #070b14;
    --bg-soft: #0f172a;
    --surface: rgba(15, 23, 42, 0.72);
    --surface-strong: #101827;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-soft: rgba(148, 163, 184, 0.2);
    --accent-red: #ef4444;
    --accent-red-dark: #dc2626;
    --accent-gold: #f59e0b;
    --shadow-soft: 0 14px 40px rgba(2, 6, 23, 0.35);
}

body.app-shell {
    font-family: "Inter", "Segoe UI", sans-serif;
    background: radial-gradient(circle at 20% 20%, rgba(239, 68, 68, 0.12), transparent 40%),
                radial-gradient(circle at 80% 0%, rgba(245, 158, 11, 0.12), transparent 35%),
                var(--bg-main);
    color: var(--text-main);
}

.main-content {
    min-height: 100vh;
}

.container,
.container-fluid {
    position: relative;
    z-index: 2;
}

.card,
.search-box,
.alumno-card,
.ficha-panel,
.panel-header,
.action-card,
.feature-card,
.gallery-card,
.auth-card {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: var(--surface);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
}

.btn,
.btn-hero-primary,
.btn-hero-outline,
.btn-hero-accent,
.btn-auth,
.ficha-btn {
    border-radius: 14px !important;
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn:hover,
.btn-hero-primary:hover,
.btn-hero-outline:hover,
.btn-hero-accent:hover,
.btn-auth:hover,
.ficha-btn:hover {
    transform: translateY(-2px);
}

.form-control,
.search-input,
select,
textarea {
    border-radius: 12px !important;
    border: 1px solid var(--border-soft) !important;
    background: rgba(15, 23, 42, 0.75) !important;
    color: var(--text-main) !important;
}

.form-control:focus,
.search-input:focus,
select:focus,
textarea:focus {
    border-color: rgba(239, 68, 68, 0.6) !important;
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.15) !important;
}

.form-control::placeholder,
.search-input::placeholder {
    color: var(--text-muted) !important;
}

.hero-section,
.features-section,
.gallery-section,
.cta-section,
.stats-section,
.auth-container,
.panel-container {
    background: transparent !important;
}

.hero-title,
.section-title,
.panel-title,
.auth-header h3 {
    letter-spacing: -0.03em;
}

.hero-subtitle,
.section-desc,
.panel-subtitle,
.search-desc,
.auth-header p,
.action-desc {
    color: var(--text-muted) !important;
}

.section-tag,
.badge,
.search-count {
    background: rgba(239, 68, 68, 0.14) !important;
    color: #fecaca !important;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.modern-sidebar {
    background: linear-gradient(180deg, rgba(7, 11, 20, 0.96) 0%, rgba(15, 23, 42, 0.96) 100%) !important;
    border-right: 1px solid var(--border-soft);
}

.sidebar-header {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.92), rgba(124, 45, 18, 0.9)) !important;
}

.nav-link-custom {
    border-radius: 12px;
}

.nav-link-custom:hover,
.nav-link-custom.active {
    background: rgba(239, 68, 68, 0.16) !important;
    border-color: rgba(239, 68, 68, 0.32) !important;
}

.hamburger-btn {
    background: linear-gradient(135deg, var(--accent-red), #7f1d1d) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.app-footer {
    background: rgba(7, 11, 20, 0.75);
    border-top: 1px solid var(--border-soft);
}

@media (max-width: 992px) {
    .panel-container,
    .auth-container {
        padding-top: 5rem;
    }
}
