/* ==================== RESET Y BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, 
        #0a0a0a 0%, 
        #1a1a1a 25%,
        #2d2d2d 50%,
        #1a1a1a 75%,
        #0a0a0a 100%);
    background-attachment: fixed;
    color: #ffffff;
    position: relative;
    min-height: 100vh;
    padding-bottom: 120px;
}

/* ==================== BACKGROUND DECORATIVO ==================== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(0, 188, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(3, 218, 198, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 152, 0, 0.05) 0%, transparent 50%);
    z-index: -1;
    opacity: 0.7;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20px 30px, rgba(0, 188, 212, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(3, 218, 198, 0.3), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 152, 0, 0.3), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(76, 175, 80, 0.3), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(156, 39, 176, 0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    z-index: -1;
    opacity: 0.3;
}

/* ==================== HEADER MEJORADO ==================== */
.dashboard-header {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.95) 0%, 
        rgba(45, 45, 45, 0.95) 100%);
    border-bottom: 3px solid #00bcd4;
    box-shadow: 0 8px 32px rgba(0, 188, 212, 0.3);
    position: relative;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-header h1 {
    font-size: 2rem;
    background: linear-gradient(45deg, #00bcd4, #03dac6, #00bcd4);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 188, 212, 0.5);
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.upload-btn {
    background: linear-gradient(45deg, #4caf50, #8bc34a, #4caf50);
    background-size: 200% 200%;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    animation: pulseGlow 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

@keyframes pulseGlow {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
        background-position: 0% 50%;
    }
    50% { 
        box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
        background-position: 100% 50%;
    }
}

.upload-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.upload-btn:hover::before {
    width: 300px;
    height: 300px;
}

.upload-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.6);
}

.slide-counter {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 188, 212, 0.3);
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.2);
}

/* ==================== SLIDESHOW MEJORADO ==================== */
.slideshow-container {
    position: relative;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    min-height: calc(100vh - 300px);
}

.slide {
    display: none;
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.98) 0%, 
        rgba(45, 45, 45, 0.98) 50%,
        rgba(26, 26, 26, 0.98) 100%);
    border-radius: 25px;
    padding: 2rem;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 188, 212, 0.2);
    animation: slideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

/* Efecto de brillo en slides */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 188, 212, 0.1), 
        transparent);
    transition: left 0.8s ease;
}

.slide:hover::before {
    left: 100%;
}

.slide.active {
    display: block;
    animation: slideInActive 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(60px) translateY(20px) rotateY(15deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0) rotateY(0deg);
    }
}

@keyframes slideInActive {
    from {
        opacity: 0;
        transform: translateX(60px) translateY(20px) rotateY(15deg);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0) rotateY(0deg);
        filter: blur(0px);
    }
}

.slide-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 188, 212, 0.4);
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
}

.slide-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00bcd4, #03dac6);
    animation: borderExpand 2s ease-out forwards;
}

@keyframes borderExpand {
    to { width: 100%; }
}

.slide-header h2 {
    font-size: 2rem;
    background: linear-gradient(45deg, #00bcd4, #03dac6, #00bcd4);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    flex: 1;
    min-width: 250px;
    animation: gradientShift 4s ease-in-out infinite;
}

.slide-header p {
    color: #b0bec5;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    width: 100%;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== FILTROS MEJORADOS ==================== */
.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filters select {
    background: linear-gradient(135deg, 
        rgba(45, 45, 45, 0.9), 
        rgba(60, 60, 60, 0.9));
    color: white;
    border: 2px solid #00bcd4;
    border-radius: 12px;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 120px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.filters select:hover {
    border-color: #03dac6;
    box-shadow: 0 0 25px rgba(0, 188, 212, 0.5);
    transform: translateY(-2px);
}

/* ==================== KPI CARDS MEJORADOS ==================== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background: linear-gradient(135deg, 
        rgba(30, 60, 114, 0.9) 0%, 
        rgba(42, 82, 152, 0.9) 50%,
        rgba(30, 60, 114, 0.9) 100%);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 
        0 15px 40px rgba(30, 60, 114, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.15), 
        transparent);
    transition: left 0.6s ease;
}

.kpi-card:hover::before {
    left: 100%;
}

.kpi-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 25px 60px rgba(30, 60, 114, 0.6),
        0 0 40px rgba(0, 188, 212, 0.3);
}

.kpi-icon {
    font-size: 3rem;
    color: #03dac6;
    text-shadow: 0 0 20px rgba(3, 218, 198, 0.7);
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { 
        transform: scale(1);
        text-shadow: 0 0 20px rgba(3, 218, 198, 0.7);
    }
    50% { 
        transform: scale(1.1);
        text-shadow: 0 0 30px rgba(3, 218, 198, 1);
    }
}

.kpi-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.kpi-content p {
    color: #b0bec5;
    font-size: 1rem;
}

/* ==================== CHARTS MEJORADOS ==================== */
.chart-container {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.03) 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    height: 400px;
    position: relative;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, 
        rgba(0, 188, 212, 0.1) 0%, 
        rgba(3, 218, 198, 0.1) 25%,
        rgba(0, 188, 212, 0.1) 50%,
        rgba(3, 218, 198, 0.1) 75%,
        rgba(0, 188, 212, 0.1) 100%);
    border-radius: 25px;
    z-index: -1;
    filter: blur(15px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.chart-container:hover::before {
    opacity: 1;
}

.chart-container:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(0, 188, 212, 0.2);
}

.chart-container canvas {
    max-height: 100% !important;
}

/* ==================== ANALYSIS TEXT MEJORADO ==================== */
.analysis-text {
    background: linear-gradient(135deg, 
        rgba(0, 188, 212, 0.15) 0%, 
        rgba(3, 218, 198, 0.15) 100%);
    border-left: 4px solid #00bcd4;
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
    position: relative;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.analysis-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #00bcd4, #03dac6);
    border-radius: 2px;
    animation: borderGrow 1.5s ease-out forwards;
}

@keyframes borderGrow {
    to { height: 100%; }
}

.analysis-text:hover {
    background: linear-gradient(135deg, 
        rgba(0, 188, 212, 0.2) 0%, 
        rgba(3, 218, 198, 0.2) 100%);
    transform: translateX(5px);
}

.analysis-text h4 {
    color: #03dac6;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(3, 218, 198, 0.3);
}

.analysis-text p {
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* ==================== NAVIGATION MEJORADA ==================== */
.navigation {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.98) 0%, 
        rgba(45, 45, 45, 0.98) 100%);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 188, 212, 0.3);
    z-index: 1000;
    max-width: 90vw;
    animation: navFloat 4s ease-in-out infinite;
}

@keyframes navFloat {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-3px); }
}

.nav-btn {
    background: linear-gradient(45deg, #00bcd4, #03dac6, #00bcd4);
    background-size: 200% 200%;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
    animation: buttonGlow 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

@keyframes buttonGlow {
    0%, 100% { 
        background-position: 0% 50%;
        box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
    }
    50% { 
        background-position: 100% 50%;
        box-shadow: 0 6px 20px rgba(0, 188, 212, 0.5);
    }
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.nav-btn:hover:not(:disabled)::before {
    width: 300px;
    height: 300px;
}

.nav-btn:hover:not(:disabled) {
    transform: scale(1.15);
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.6);
}

.nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    background: linear-gradient(45deg, #555, #666);
    animation: none;
}

.slide-indicators {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
}

.indicator:hover::before {
    background: rgba(0, 188, 212, 0.3);
}

.indicator.active {
    background: linear-gradient(45deg, #00bcd4, #03dac6);
    box-shadow: 
        0 0 20px rgba(0, 188, 212, 0.8),
        0 4px 15px rgba(0, 188, 212, 0.4);
    transform: scale(1.3);
    animation: activeIndicator 2s ease-in-out infinite;
}

@keyframes activeIndicator {
    0%, 100% { 
        box-shadow: 
            0 0 20px rgba(0, 188, 212, 0.8),
            0 4px 15px rgba(0, 188, 212, 0.4);
    }
    50% { 
        box-shadow: 
            0 0 30px rgba(0, 188, 212, 1),
            0 6px 20px rgba(0, 188, 212, 0.6);
    }
}

.indicator:hover:not(.active) {
    background: #03dac6;
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(3, 218, 198, 0.6);
}

/* ==================== TEACHER VERIFICATION MEJORADO ==================== */
.teacher-verification {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.03) 100%);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.teacher-verification label {
    display: block;
    margin-bottom: 1rem;
    color: #03dac6;
    font-size: 1.2rem;
    text-shadow: 0 2px 10px rgba(3, 218, 198, 0.3);
}

.teacher-verification input {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #00bcd4;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 1rem;
    margin-right: 1rem;
    min-width: 300px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.teacher-verification input:focus {
    outline: none;
    border-color: #03dac6;
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.5);
    transform: translateY(-2px);
}

.teacher-verification button {
    background: linear-gradient(45deg, #ff9800, #f57c00, #ff9800);
    background-size: 200% 200%;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
    animation: buttonPulse 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

@keyframes buttonPulse {
    0%, 100% { 
        background-position: 0% 50%;
        box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
    }
    50% { 
        background-position: 100% 50%;
        box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5);
    }
}

.teacher-verification button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.teacher-verification button:hover::before {
    width: 300px;
    height: 300px;
}

.teacher-verification button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 152, 0, 0.6);
}

/* ==================== PROMPT CONTENT MEJORADO ==================== */
.prompt-box {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.7) 0%, 
        rgba(20, 20, 20, 0.7) 100%);
    border: 2px solid #00bcd4;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 1rem;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: promptGlow 3s ease-in-out infinite;
}

@keyframes promptGlow {
    0%, 100% { 
        border-color: #00bcd4;
        box-shadow: 
            0 15px 40px rgba(0, 0, 0, 0.5),
            0 0 20px rgba(0, 188, 212, 0.3);
    }
    50% { 
        border-color: #03dac6;
        box-shadow: 
            0 15px 40px rgba(0, 0, 0, 0.5),
            0 0 30px rgba(3, 218, 198, 0.5);
    }
}

.prompt-box h3 {
    color: #03dac6;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    text-shadow: 0 2px 10px rgba(3, 218, 198, 0.4);
}

.prompt-box pre {
    color: #e0e0e0;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #00bcd4;
}

/* ==================== LOADING OVERLAY MEJORADO ==================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(20px);
    animation: overlayFadeIn 0.3s ease;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.loading-content {
    text-align: center;
    color: white;
    background: rgba(26, 26, 26, 0.9);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 188, 212, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.loading-content i {
    font-size: 4rem;
    color: #00bcd4;
    margin-bottom: 1rem;
    animation: loadingSpin 1s linear infinite;
}

@keyframes loadingSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-content p {
    font-size: 1.3rem;
    color: #e0e0e0;
    animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ==================== ANIMACIONES DE ENTRADA ==================== */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aplicar animaciones escalonadas */
.kpi-card:nth-child(1) { animation: slideInFromLeft 0.6s ease-out 0.1s both; }
.kpi-card:nth-child(2) { animation: slideInFromLeft 0.6s ease-out 0.2s both; }
.kpi-card:nth-child(3) { animation: slideInFromRight 0.6s ease-out 0.3s both; }
.kpi-card:nth-child(4) { animation: slideInFromRight 0.6s ease-out 0.4s both; }

.chart-container { animation: slideInFromBottom 0.8s ease-out 0.5s both; }
.analysis-text { animation: slideInFromBottom 0.6s ease-out 0.7s both; }

/* ==================== RESPONSIVE DESIGN MEJORADO ==================== */
@media (max-width: 768px) {
    body {
        padding-bottom: 120px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .slideshow-container {
        padding: 0 1rem;
        margin: 1rem auto;
        min-height: calc(100vh - 280px);
    }
    
    .slide {
        padding: 1.5rem;
        margin-bottom: 1rem;
        border-radius: 20px;
    }
    
    .slide-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .slide-header h2 {
        font-size: 1.6rem;
        min-width: auto;
    }
    
    .kpi-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .kpi-card {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .chart-container {
        height: 320px;
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .navigation {
        bottom: 15px;
        padding: 0.6rem 1.2rem;
        gap: 0.7rem;
        max-width: 95vw;
        border-radius: 40px;
    }
    
    .nav-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    
    .indicator {
        width: 12px;
        height: 12px;
    }
    
    .slide-indicators {
        gap: 0.6rem;
    }
    
    .teacher-verification input {
        min-width: 280px;
        margin-bottom: 1rem;
        margin-right: 0;
    }
    
    .filters {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    body {
        padding-bottom: 110px;
    }
    
    .dashboard-header h1 {
        font-size: 1.6rem;
    }
    
    .slide-header h2 {
        font-size: 1.4rem;
    }
    
    .kpi-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.2rem;
    }
    
    .kpi-icon {
        font-size: 2.5rem;
    }
    
    .chart-container {
        height: 280px;
        padding: 1rem;
    }
    
    .teacher-verification input {
        min-width: 250px;
    }
    
    .navigation {
        bottom: 10px;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
        border-radius: 35px;
    }
    
    .nav-btn {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .slide-indicators {
        gap: 0.5rem;
    }
}

/* ==================== SCROLLBAR MEJORADO ==================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #00bcd4, #03dac6);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 188, 212, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #03dac6, #00bcd4);
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.5);
}

/* ==================== MEJORAS DE ACCESIBILIDAD ==================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================== EFECTOS DE ENFOQUE MEJORADOS ==================== */
button:focus, select:focus, input:focus, .indicator:focus {
    outline: 2px solid #03dac6;
    outline-offset: 2px;
}

/* ==================== MEJORAS FINALES ==================== */
.slide:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 30px 90px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(0, 188, 212, 0.2);
}

/* Efecto de cristal mejorado */
.slide, .navigation, .kpi-card, .chart-container {
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
}

/* Sombras más dramáticas */
.slide {
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.4),
        0 16px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.navigation {
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.7),
        0 10px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 0 1px rgba(0, 188, 212, 0.3);
}