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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0e1a;
    color: #e0e0e0;
    min-height: 100vh;
}

/* ===== NAVBAR ===== */
.navbar {
    background: linear-gradient(135deg, #0f1629 0%, #1a1f3a 100%);
    border-bottom: 1px solid rgba(0, 255, 136, 0.15);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    font-size: 1.5rem;
}

.nav-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    color: #8892b0;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-link:hover {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.08);
}

.nav-link.active {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.12);
}

.nav-logout {
    color: #ff6b6b;
}

.nav-logout:hover {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

.nav-admin {
    font-size: 0.8rem;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.section-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

/* ===== PODIUM ===== */
.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem 0;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.podium-medal {
    font-size: 2.5rem;
}

.podium-name {
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
}

.podium-score {
    font-weight: 800;
    font-size: 1.25rem;
    color: #00ff88;
}

.podium-bar {
    width: 100px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, rgba(0, 255, 136, 0.3) 0%, rgba(0, 255, 136, 0.05) 100%);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-bottom: none;
}

.bar-1 { height: 120px; }
.bar-2 { height: 90px; }
.bar-3 { height: 70px; }

/* ===== TOP 3 CARDS ===== */
.top3-cards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.top-card {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #141b2d 0%, #1a2340 100%);
    border: 1px solid rgba(0, 255, 136, 0.35);
    transition: all 0.2s;
}

.top-card:hover {
    border-color: rgba(0, 255, 136, 0.6);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
}

.top-card-rank {
    font-size: 1.75rem;
    margin-right: 1rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 12px;
}

.top-card-info {
    flex: 1;
}

.top-card-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
}

.top-card-score {
    font-weight: 800;
    font-size: 1.25rem;
    color: #0a0e1a;
    background: #00ff88;
    padding: 0.35rem 1rem;
    border-radius: 8px;
    min-width: 70px;
    text-align: center;
}

/* ===== RANKING LIST ===== */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ranking-row {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    background: #141b2d;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s;
}

.ranking-row:hover {
    background: #1a2340;
    border-color: rgba(0, 255, 136, 0.2);
}

.ranking-position {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #8892b0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ranking-name {
    flex: 1;
    font-weight: 500;
    font-size: 0.95rem;
    color: #e0e0e0;
}

.ranking-score {
    font-weight: 700;
    font-size: 1rem;
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    padding: 0.3rem 0.85rem;
    border-radius: 8px;
    min-width: 60px;
    text-align: center;
}

/* ===== ADMIN CONTROLS ===== */
.admin-controls {
    display: flex;
    gap: 0.35rem;
    margin-left: 0.75rem;
}

.btn-score {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-plus {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.btn-plus:hover {
    background: rgba(0, 255, 136, 0.3);
}

.btn-minus {
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.btn-minus:hover {
    background: rgba(255, 107, 107, 0.3);
}

/* ===== PUNTAJES ===== */
.puntajes-container {
    max-width: 1000px;
    margin: 0 auto;
}

.puntajes-subtitle {
    text-align: center;
    color: #8892b0;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.puntajes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.puntaje-card {
    background: linear-gradient(135deg, #141b2d 0%, #1a2340 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.puntaje-card:hover {
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 4px 24px rgba(0, 255, 136, 0.08);
    transform: translateY(-2px);
}

.puntaje-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: rgba(0, 255, 136, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.puntaje-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.puntaje-header h2 {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.puntaje-max {
    font-size: 0.8rem;
    font-weight: 700;
    color: #00ff88;
    background: rgba(0, 255, 136, 0.12);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    white-space: nowrap;
}

.puntaje-body {
    padding: 1.25rem 1.5rem;
}

.puntaje-body h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #8892b0;
    margin-bottom: 0.5rem;
    margin-top: 0.75rem;
}

.puntaje-body h3:first-child {
    margin-top: 0;
}

.puntaje-body ul {
    list-style: none;
    padding: 0;
}

.puntaje-body li {
    padding: 0.35rem 0;
    font-size: 0.9rem;
    color: #c0c8e0;
}

.puntaje-body li strong {
    color: #00ff88;
}

.puntaje-body p {
    font-size: 0.9rem;
    color: #c0c8e0;
    margin-bottom: 0.5rem;
}

/* ===== LOGIN ===== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.login-card {
    background: linear-gradient(135deg, #141b2d 0%, #1a2340 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-card h1 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.login-card p {
    color: #8892b0;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.login-error {
    background: rgba(255, 68, 68, 0.15);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff6b6b;
    padding: 0.75rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #8892b0;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.form-group input::placeholder {
    color: #4a5568;
}

.btn-login {
    width: 100%;
    padding: 0.85rem;
    background: #00ff88;
    color: #0a0e1a;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    margin-top: 0.5rem;
}

.btn-login:hover {
    background: #00e67a;
    box-shadow: 0 4px 16px rgba(0, 255, 136, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 0.75rem;
    }

    .nav-title {
        font-size: 0.85rem;
    }

    .podium {
        gap: 0.5rem;
    }

    .podium-bar {
        width: 70px;
    }

    .bar-1 { height: 80px; }
    .bar-2 { height: 60px; }
    .bar-3 { height: 45px; }

    .puntajes-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 1.5rem 1rem;
    }
}


/* ===== RECURSOS ===== */
.recursos-container {
    max-width: 800px;
    margin: 0 auto;
}

.recursos-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recurso-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #141b2d 0%, #1a2340 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s;
}

.recurso-card:hover {
    border-color: rgba(0, 255, 136, 0.35);
    box-shadow: 0 4px 24px rgba(0, 255, 136, 0.08);
    transform: translateY(-2px);
}

.recurso-icon {
    font-size: 2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 136, 0.08);
    border-radius: 14px;
    flex-shrink: 0;
}

.recurso-content {
    flex: 1;
}

.recurso-content h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.recurso-content p {
    font-size: 0.9rem;
    color: #8892b0;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.recurso-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: #00ff88;
    opacity: 0.8;
}

.recurso-card:hover .recurso-link {
    opacity: 1;
}


/* ===== TIMELINE ===== */
.timeline-container {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-month {
    margin-bottom: 2rem;
}

.timeline-month-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-month-badge {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    letter-spacing: 0.05em;
}

.timeline-month-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.timeline-events {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 0.5rem;
}

.timeline-event {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    background: #141b2d;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s;
}

.timeline-event:hover {
    background: #1a2340;
    border-color: rgba(0, 255, 136, 0.15);
}

.timeline-date {
    min-width: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #8892b0;
    padding-top: 0.15rem;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.35rem;
}

.timeline-dot.checkin {
    background: #3b82f6;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.timeline-dot.office {
    background: #8b5cf6;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

.timeline-dot.milestone {
    background: #00ff88;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.timeline-dot.special {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.timeline-info {
    flex: 1;
}

.timeline-info p {
    font-size: 0.9rem;
    color: #c0c8e0;
    line-height: 1.5;
}

.timeline-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tag-checkin {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.tag-office {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.tag-milestone {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
}

.tag-special {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.timeline-detail {
    list-style: none;
    padding: 0.5rem 0 0 0;
}

.timeline-detail li {
    font-size: 0.8rem;
    color: #8892b0;
    padding: 0.2rem 0;
    padding-left: 1rem;
    position: relative;
}

.timeline-detail li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #4a5568;
}
