/* ==========================================================
   ESTILOS GENERALES - ANIVERSARIO ESCUELA PORONGO
   ========================================================== */

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

:root {
    --primary-color: #1e3a8a;
    --primary-gradient: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --festive-gradient: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #d97706 100%);
    --silver-gradient: linear-gradient(135deg, #9ca3af 0%, #e5e7eb 50%, #6b7280 100%);
    --bronze-gradient: linear-gradient(135deg, #b45309 0%, #f97316 50%, #78350f 100%);
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar */
.navbar-custom {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding: 0.85rem 1.5rem;
}

.brand-badge {
    background: var(--primary-gradient);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.25);
}

.nav-link {
    font-weight: 600;
    color: #475569 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: #1e3a8a !important;
    background: #eff6ff;
}

/* Hero Festive Banner */
.hero-festive {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #312e81 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 3.5rem 1rem 4.5rem;
    border-radius: 0 0 32px 32px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
}

.hero-festive::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 10%, transparent 20%);
    background-size: 30px 30px;
    opacity: 0.6;
    pointer-events: none;
}

/* Champion / Winner Showcase Card */
.champion-card {
    background: #ffffff;
    border: 3px solid #fbbf24;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.2);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.champion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(245, 158, 11, 0.3);
}

.champion-ribbon {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--gold-gradient);
    color: #78350f;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 40px;
    transform: rotate(45deg);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.trophy-glow {
    font-size: 4rem;
    color: #f59e0b;
    filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.6));
    animation: bounce 2s infinite;
}

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

/* Podium Items */
.podium-box {
    background: white;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
    position: relative;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.podium-rank-1 {
    border-color: #f59e0b;
    background: linear-gradient(to bottom, #fffbeb, #ffffff);
}

.podium-rank-2 {
    border-color: #94a3b8;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
}

.podium-rank-3 {
    border-color: #d97706;
    background: linear-gradient(to bottom, #fff7ed, #ffffff);
}

.rank-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: white;
}

.rank-1 { background: var(--gold-gradient); color: #78350f; }
.rank-2 { background: var(--silver-gradient); color: #1f2937; }
.rank-3 { background: var(--bronze-gradient); color: white; }
.rank-other { background: #94a3b8; color: white; }

/* Cards & Components */
.card-custom {
    background: #ffffff;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.card-custom:hover {
    box-shadow: var(--card-hover-shadow);
}

.section-header {
    margin-bottom: 2rem;
    position: relative;
}

.section-title {
    font-weight: 800;
    font-size: 1.75rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-subtitle {
    color: #64748b;
    font-size: 0.95rem;
}

/* Activity Cards */
.activity-card {
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    background: white;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.activity-category-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    background: #e2e8f0;
    color: #475569;
}

.pulse-badge {
    animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { transform: scale(1.03); box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Alliance Color Pill */
.alliance-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
}

.alliance-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

/* Progress bar inside table */
.score-progress {
    height: 10px;
    border-radius: 5px;
    background-color: #f1f5f9;
    overflow: hidden;
}

/* Daily Summary Timeline */
.daily-timeline-card {
    border-left: 5px solid #3b82f6;
    border-radius: 14px;
    background: white;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: var(--transition);
}

.daily-timeline-card:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Custom Table */
.table-custom {
    border-collapse: separate;
    border-spacing: 0 8px;
}

.table-custom tbody tr {
    background: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    border-radius: 10px;
    transition: var(--transition);
}

.table-custom tbody tr:hover {
    background: #f8fafc;
    transform: scale(1.005);
}

.table-custom td, .table-custom th {
    border: none;
    padding: 1rem 1.25rem;
    vertical-align: middle;
}

.table-custom thead th {
    background: transparent;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* Confetti Button */
.btn-confetti {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: white;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    padding: 0.6rem 1.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.btn-confetti:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4);
    color: white;
}

/* Footer */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 2.5rem 0 1.5rem;
    margin-top: 4rem;
}

footer a {
    color: #cbd5e1;
    text-decoration: none;
}

footer a:hover {
    color: #38bdf8;
}


/* ==========================================================
   ESTILOS ESPECIALES - DUELO SUPERHÉROES VS VILLANOS
   ========================================================== */

.duel-arena {
    background: linear-gradient(135deg, #0b132b 0%, #1c2541 50%, #3a0ca3 100%);
    border-radius: 28px;
    padding: 2.5rem 1.5rem;
    color: white;
    box-shadow: 0 15px 35px rgba(11, 19, 43, 0.4);
    position: relative;
    overflow: hidden;
}

.duel-arena::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.duel-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 1.75rem;
    transition: var(--transition);
}

.duel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.duel-card-heroes {
    border-color: rgba(13, 110, 253, 0.5);
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.2);
}

.duel-card-villanos {
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
}

.vs-badge-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444 0%, #f59e0b 100%);
    color: white;
    font-size: 1.4rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.7);
    letter-spacing: 1px;
    margin: 0 auto;
    border: 3px solid #ffffff;
    animation: vsPulse 2s infinite;
}

@keyframes vsPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(239, 68, 68, 0.6); }
    50% { transform: scale(1.1); box-shadow: 0 0 35px rgba(245, 158, 11, 0.9); }
}

.duel-health-bar {
    height: 18px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
    display: flex;
}
