:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --dark-bg: #212529;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

a {
    text-decoration: underline dotted;
}

/* ==================== NAVBAR ==================== */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 15px rgba(102, 126, 234, 0.3);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
    padding: 0;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.navbar-dark .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-section h1 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
}

.hero-section.compact {
    padding: 2rem 0;
}

.hero-section.compact h1 {
    font-size: 2rem;
    margin-bottom: 0;
}

/* ==================== TARJETAS DE CLASIFICACIÓN ==================== */
.classification-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.classification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

.classification-card h2 {
    color: #667eea;
    font-weight: 600;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.classification-card h2 i {
    margin-right: 0.5rem;
    font-size: 2rem;
}

/* ==================== BOTONES ==================== */
.btn-custom {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    color: white;
}

.btn-secondary-custom {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.btn-secondary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.6);
    color: white;
}

.btn-outline-custom {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.btn-outline-custom:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

/* ==================== BARRA DE BÚSQUEDA ==================== */
.search-box {
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    max-width: 300px;
}

.search-box:focus {
    background-color: white;
    border-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ==================== TABLA DE RESULTADOS ==================== */
.results-table {
    background: white;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.results-table table {
    margin-bottom: 0;
}

.results-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.results-table thead th {
    padding: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    font-size: 0.9rem;
}

.results-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.results-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
}

.results-table tbody tr:last-child {
    border-bottom: none;
}

.results-table tbody td {
    padding: 1rem 1.2rem;
    vertical-align: middle;
}

/* Posición */
.position-cell {
    font-weight: 700;
    font-size: 1.2rem;
    color: #667eea;
    width: 80px;
    text-align: center;
}

/* Nombre */
.name-cell {
    font-size: 1rem;
    color: #333;
}

/* Puntuación */
.score-cell {
    font-weight: 600;
    font-size: 1.1rem;
    color: #764ba2;
    text-align: center;
    width: 120px;
}

/* Destacar top 3 */
.results-table tbody tr:nth-child(1) .position-cell {
    color: #FFD700;
    font-size: 1.4rem;
}

.results-table tbody tr:nth-child(2) .position-cell {
    color: #C0C0C0;
    font-size: 1.3rem;
}

.results-table tbody tr:nth-child(3) .position-cell {
    color: #CD7F32;
    font-size: 1.2rem;
}

.results-table tbody tr:nth-child(1) {
    background-color: #fffbf0;
}

.results-table tbody tr:nth-child(2) {
    background-color: #f8f9fa;
}

.results-table tbody tr:nth-child(3) {
    background-color: #fff8f0;
}

/* ==================== SEPARADOR ==================== */
.divider {
    height: 3px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    margin: 3rem 0;
    border: none;
}

/* ==================== ANIMACIONES ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }

    .hero-section.compact h1 {
        font-size: 1.5rem;
    }

    .classification-card {
        padding: 1.5rem;
    }

    .button-container {
        flex-direction: column;
    }

    .btn-custom {
        width: 100%;
    }

    .navbar-brand img {
        height: 40px;
    }

    .results-table thead th,
    .results-table tbody td {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .position-cell {
        width: 60px;
        font-size: 1rem;
    }

    .score-cell {
        width: 100px;
        font-size: 1rem;
    }
}

