/* ===== ESTILOS BASE (tomados del index.html) ===== */
:root {
    --electric-blue: #3b82f6;
    --flame-orange: #f59e0b;
    --cosmic-purple: #8b5cf6;
    --neon-green: #10b981;
    --laser-red: #ef4444;
    --hot-pink: #ec4899;
    --deep-space: #0f172a;
    --starlight: #f8fafc;
    --sun-yellow: #fbbf24;
    --ocean-teal: #0d9488;
}

@keyframes floatIn {
    0% { opacity: 0; transform: translateY(30px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
    50% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.5); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.animate-float {
    animation: floatIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
}

.animate-glow {
    animation: glowPulse 3s infinite;
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ===== TARJETAS ÉPICAS ===== */
.epic-stat {
    background: white;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.epic-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--electric-blue), var(--cosmic-purple), var(--hot-pink));
    transform: scaleX(0);
    transition: transform 0.5s ease;
    transform-origin: left;
}

.epic-stat:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 45px -15px rgba(59, 130, 246, 0.3);
}

.epic-stat:hover::before {
    transform: scaleX(1);
}

/* ===== BADGES ===== */
.epic-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.epic-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

.epic-badge:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.2);
}

.epic-badge.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; }
.epic-badge.purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); color: white; }
.epic-badge.green { background: linear-gradient(135deg, #10b981, #059669); color: white; }
.epic-badge.orange { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }
.epic-badge.red { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; }
.epic-badge.yellow { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #1e293b; }

/* ===== BOTONES ===== */
.epic-button {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.epic-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.epic-button:hover::before {
    width: 300px;
    height: 300px;
}

.epic-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -8px rgba(0,0,0,0.2);
}

.epic-button.primary {
    background: linear-gradient(135deg, var(--electric-blue), var(--cosmic-purple));
    color: white;
}

.epic-button.success {
    background: linear-gradient(135deg, var(--neon-green), #059669);
    color: white;
}

.epic-button.warning {
    background: linear-gradient(135deg, var(--flame-orange), #d97706);
    color: white;
}

.epic-button.danger {
    background: linear-gradient(135deg, var(--laser-red), #dc2626);
    color: white;
}

.epic-button.outline {
    background: transparent;
    border: 2px solid var(--electric-blue);
    color: var(--electric-blue);
}

.epic-button.outline:hover {
    background: var(--electric-blue);
    color: white;
}

/* ===== TABLA ÉPICA ===== */
.epic-table-container {
    background: white;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.epic-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.epic-table thead tr {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white;
}

.epic-table th {
    padding: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.epic-table th:first-child {
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}

.epic-table th:last-child {
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}

.epic-table tbody tr {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    cursor: pointer;
}

.epic-table tbody tr:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 15px 30px -10px rgba(59, 130, 246, 0.2);
    background: linear-gradient(to right, white, #f8fafc);
}

.epic-table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.epic-table td:first-child {
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}

.epic-table td:last-child {
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}

/* ===== AVATAR ===== */
.epic-avatar {
    width: 40px;
    height: 40px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--electric-blue), var(--cosmic-purple));
    transition: all 0.3s ease;
}

.epic-avatar:hover {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 0 20px var(--electric-blue);
}

.epic-avatar.large {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    border-radius: 20px;
}

/* ===== BUSCADOR ===== */
.epic-search-box {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.epic-search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    transition: color 0.3s ease;
}

.epic-search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border-radius: 50px;
    border: 2px solid #e2e8f0;
    background: white;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.epic-search-box input:focus {
    outline: none;
    border-color: var(--electric-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.epic-search-box input:focus + i {
    color: var(--electric-blue);
}

/* ===== FILTROS ===== */
.epic-filter-chip {
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.epic-filter-chip:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.epic-filter-chip.active {
    background: linear-gradient(135deg, var(--electric-blue), var(--cosmic-purple));
    color: white;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

/* ===== PROGRESS BAR ===== */
.epic-progress {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.epic-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(90deg, var(--electric-blue), var(--cosmic-purple));
    position: relative;
    overflow: hidden;
}

.epic-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,255,255,0.3) 50%,
        transparent 100%);
    animation: shimmer 2s infinite;
}

/* ===== CABECERA GRADIENTE ===== */
.epic-gradient-header {
    background: linear-gradient(135deg, #1e3a8a, #1e40af, #2563eb);
    color: white;
    border-radius: 30px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.epic-gradient-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: spinSlow 20s linear infinite;
}

.epic-gradient-header::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139,92,246,0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: spinSlow 25s linear infinite reverse;
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== NEON GLOW ===== */
.neon-glow {
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5),
                 0 0 20px rgba(139, 92, 246, 0.3),
                 0 0 30px rgba(236, 72, 153, 0.2);
}