/* ==========================================================================
   Plataforma de Gestión - Jornada de Especialidades 2026 | Universidad SABES
   Design System & Bespoke Theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --sabes-navy-deep: #0a192f;
    --sabes-navy: #0f2b48;
    --sabes-blue: #1e3e62;
    --sabes-cyan: #00b4d8;
    --sabes-cyan-glow: #90e0ef;
    --sabes-accent: #f59e0b;
    --sabes-coral: #ff6b6b;
    --sabes-emerald: #10b981;
    --sabes-purple: #8b5cf6;
    
    --bg-light: #f8fafc;
    --bg-surface: #ffffff;
    --border-color: #e2e8f0;
    --text-primary: #0f172a;
    --text-muted: #64748b;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);
    --shadow-glow: 0 0 20px rgba(0, 180, 216, 0.25);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

/* Glassmorphism Styles */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.glass-dark {
    background: rgba(15, 43, 72, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Navigation Bar */
.navbar-sabes {
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.navbar-sabes .nav-link {
    color: #cbd5e1;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}

.navbar-sabes .nav-link:hover,
.navbar-sabes .nav-link.active {
    color: var(--sabes-cyan);
}

.sabes-logo-img {
    height: 40px;
    width: auto;
}

/* Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, #0a192f 0%, #0f2b48 45%, #1e3e62 100%);
    position: relative;
    overflow: hidden;
    color: #ffffff;
    padding: 90px 0 70px 0;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.2) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.hero-gradient::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 30%, var(--sabes-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Event Countdown */
.countdown-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    text-align: center;
    min-width: 80px;
}

.countdown-box .num {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--sabes-cyan);
    line-height: 1;
    font-family: var(--font-heading);
}

.countdown-box .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

/* Activity Cards */
.activity-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.activity-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: #cbd5e1;
}

.activity-card.enrolled-active {
    border: 2px solid var(--sabes-emerald);
    background: #f0fdf4;
}

.activity-card.clash-conflict {
    opacity: 0.65;
    border: 1px dashed var(--sabes-coral);
    background: #fff5f5;
}

.badge-conferencia {
    background-color: #e0f2fe;
    color: #0369a1;
    font-weight: 600;
}

.badge-taller {
    background-color: #fef3c7;
    color: #b45309;
    font-weight: 600;
}

.badge-microplatica {
    background-color: #f3e8ff;
    color: #7e22ce;
    font-weight: 600;
}

/* Progress bar for capacity */
.capacity-progress {
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.capacity-progress .progress-fill {
    height: 100%;
    transition: width 0.4s ease;
}

/* Time Slot Blocks in Schedule Builder */
.slot-header {
    background: linear-gradient(90deg, var(--sabes-navy) 0%, var(--sabes-blue) 100%);
    color: #ffffff;
    border-radius: var(--radius-md);
    padding: 10px 18px;
    font-weight: 600;
    font-family: var(--font-heading);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}

/* Speaker Directory Cards */
.speaker-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.25s ease;
}

.speaker-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.speaker-avatar-wrap {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 3px solid var(--sabes-cyan);
    background: #e2e8f0;
}

.speaker-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Admin Dashboard Cards */
.kpi-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.kpi-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* Student Digital Certificate */
.certificate-frame {
    background: #ffffff;
    border: 12px double var(--sabes-navy);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.certificate-seal {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px solid #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.75rem;
    color: #b45309;
    font-weight: 700;
    text-transform: uppercase;
    background: #fffbeb;
}

@media (max-width: 768px) {
    .certificate-frame {
        border-width: 6px;
        padding: 20px 12px;
    }
    .certificate-seal {
        width: 76px;
        height: 76px;
        font-size: 0.6rem;
    }
}

/* Pulse animation for live indicators */
.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--sabes-emerald);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 1.8s infinite;
    display: inline-block;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Sidebar for Admin and Student Dashboards */
.app-sidebar {
    background: var(--sabes-navy-deep);
    color: #ffffff;
    min-height: 100vh;
}

.app-sidebar .nav-link {
    color: #94a3b8;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.app-sidebar .nav-link:hover,
.app-sidebar .nav-link.active {
    color: #ffffff;
    background: rgba(0, 180, 216, 0.15);
    border-left: 3px solid var(--sabes-cyan);
}

.app-sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

/* Print styling for Agenda and Certificate */
@media print {
    .no-print, header, footer, .btn, .navbar, .app-sidebar {
        display: none !important;
    }
    body {
        background: #ffffff !important;
    }
    .certificate-frame {
        box-shadow: none !important;
        border: 4px double #000 !important;
        padding: 20px !important;
        page-break-inside: avoid;
    }
}

/* High Contrast Utilities & Badge Legibility */
.text-navy {
    color: #002b49 !important;
}
.bg-navy {
    background-color: #002b49 !important;
    color: #ffffff !important;
}
.text-cyan {
    color: #00b4d8 !important;
}
.badge-navy {
    background-color: #002b49 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: 1px solid rgba(0, 180, 216, 0.3) !important;
}
.badge-contrast {
    background-color: #0c2340 !important;
    color: #ffffff !important;
    border: 1px solid rgba(0, 180, 216, 0.4) !important;
    font-weight: 700 !important;
}

/* Dual Logo Layout */
.sabes-logo-img {
    object-fit: var(--img-logo-fit, contain) !important;
    object-position: var(--img-logo-pos, center) !important;
    max-height: 46px;
    width: auto;
}
.event-logo-img {
    object-fit: var(--img-ev-logo-fit, contain) !important;
    object-position: var(--img-ev-logo-pos, center) !important;
    max-height: 44px;
    width: auto;
}

/* Footer Button High Contrast */
.footer-btn-portal {
    background: rgba(0, 180, 216, 0.12) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    font-weight: 600 !important;
    transition: all 0.2s ease-in-out;
}
.footer-btn-portal:hover {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
}
.footer-btn-admin {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(251, 191, 36, 0.45) !important;
    font-weight: 600 !important;
    transition: all 0.2s ease-in-out;
}
.footer-btn-admin:hover {
    background: #f59e0b !important;
    color: #1e293b !important;
    border-color: #f59e0b !important;
}
.footer-btn-cert {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    font-weight: 600 !important;
    transition: all 0.2s ease-in-out;
}
.footer-btn-cert:hover {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: #ffffff !important;
}

