/* Reset y Variables - Diseño Profesional y Corporativo */
:root {
    --primary-color: #1E40AF;
    --primary-dark: #1E3A8A;
    --primary-light: #3B82F6;
    --secondary-color: #0F172A;
    --secondary-dark: #020617;
    --accent-color: #F59E0B;
    --accent-light: #FBBF24;
    --beach-sand: #FEF3C7;
    --beach-blue: #0EA5E9;
    --dark-blue: #0F172A;
    --white: #FFFFFF;
    --light-gray: #F8FAFC;
    --medium-gray: #E2E8F0;
    --dark-gray: #1E293B;
    --text-gray: #64748B;
    --text-dark: #0F172A;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    --gradient-primary: linear-gradient(135deg, #1E40AF 0%, #1E3A8A 100%);
    --gradient-secondary: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    --gradient-hero: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.95) 100%);
    --gradient-accent: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #FFFFFF;
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar - Diseño Profesional */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--medium-gray);
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    transition: transform 0.3s ease;
}

.nav-brand a:hover {
    transform: translateY(-2px);
}

.logo-icon {
    font-size: 2.2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 0.75rem;
    letter-spacing: -0.2px;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--gradient-primary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    transform-origin: center;
}

.nav-menu a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: var(--gradient-hero);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(30, 64, 175, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.96) 100%);
    color: var(--white);
    padding: 140px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hero Home con vídeo/imagen de fondo */
.hero-home {
    padding: 0;
    min-height: 100vh;
    position: relative;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 1;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.75) 100%);
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.08) 1px, transparent 0);
    background-size: 50px 50px;
    opacity: 0.4;
    animation: float 40s infinite linear;
    z-index: 3;
}

.hero::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -8%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 10s infinite ease-in-out;
    z-index: 3;
}

/* Efectos adicionales para hero-home */
.hero-home::before {
    opacity: 0.2;
}

.hero-home::after {
    opacity: 0.3;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    padding-top: 120px;
    padding-bottom: 80px;
}

.hero-home .hero-content {
    padding-top: 180px;
    padding-bottom: 100px;
}

.hero h1 {
    font-size: 3.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease-out;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    font-family: 'Poppins', sans-serif;
}

.hero-home h1 {
    font-size: 4.5rem;
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
}

.hero p {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    letter-spacing: -0.2px;
    animation: fadeInUp 0.8s 0.2s both ease-out;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-home p {
    font-size: 1.35rem;
    opacity: 0.98;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.5);
}

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

/* Buttons - Diseño Profesional */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    text-align: center;
    letter-spacing: -0.2px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3);
}

.btn-accent {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.35);
}

.btn-danger:active {
    transform: translateY(0);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
}

.btn-warning:active {
    transform: translateY(0);
}

/* Cards - Diseño Elegante y Profesional */
.card {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--medium-gray);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(30, 64, 175, 0.15);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-header {
    border-bottom: 1px solid var(--medium-gray);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.card-header h2 {
    color: var(--secondary-color);
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.8px;
    margin: 0;
    line-height: 1.3;
}

.card-header h3 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin: 0;
    line-height: 1.4;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    cursor: pointer;
}

/* Grid */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

thead {
    background: var(--secondary-color);
    color: var(--white);
}

th, td {
    padding: 1rem;
    text-align: left;
}

tbody tr {
    border-bottom: 1px solid var(--light-gray);
    transition: background 0.3s;
}

tbody tr:hover {
    background: var(--light-gray);
}

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

/* Badges */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-success {
    background: var(--success);
    color: var(--white);
}

.badge-danger {
    background: var(--danger);
    color: var(--white);
}

.badge-warning {
    background: var(--warning);
    color: var(--dark-gray);
}

.badge-info {
    background: var(--beach-blue);
    color: var(--white);
}

.badge-primary {
    background: var(--primary-color);
    color: var(--white);
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    border-color: var(--success);
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border-color: var(--danger);
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    border-color: var(--warning);
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    border-color: var(--beach-blue);
    color: #0c5460;
}

/* Main Content */
.main-content {
    padding: 4rem 0 5rem;
    min-height: calc(100vh - 200px);
    background: linear-gradient(to bottom, #FFFFFF 0%, #F8F9FA 100%);
}

.page-header {
    text-align: center;
    margin-bottom: 4.5rem;
    padding-bottom: 2.5rem;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.page-header h1 {
    font-size: 2.75rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1.2;
}

.page-header p {
    font-size: 1.15rem;
    color: var(--text-gray);
    font-weight: 400;
    margin-top: 0.75rem;
    letter-spacing: -0.2px;
}

/* Dashboard */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card .stat-icon {
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.stat-card .stat-value {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    line-height: 1;
    letter-spacing: -1px;
}

.stat-card .stat-label {
    color: var(--text-gray);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer - Diseño Corporativo */
.footer {
    background: var(--gradient-secondary);
    color: var(--white);
    padding: 4rem 0 1.5rem;
    margin-top: 6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--accent-light);
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .navbar-hero .nav-menu {
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        top: 80px;
    }

    .navbar-hero .nav-menu a {
        color: var(--white);
    }

    .nav-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-home h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .hero-home p {
        font-size: 1.15rem;
    }

    .hero-home .hero-content {
        padding-top: 140px;
        padding-bottom: 60px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Match Card */
.match-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    border: 1px solid var(--medium-gray);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.match-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--primary-dark);
}

.match-card[style*="cursor: pointer"] {
    cursor: pointer;
}

.match-card[style*="cursor: pointer"]:hover {
    background: #f8f9fa;
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.team {
    flex: 1;
    text-align: center;
}

.team-name {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.team-score {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.vs {
    font-size: 1.5rem;
    color: var(--dark-gray);
    font-weight: 600;
}

.match-info {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
    font-size: 0.9rem;
    color: var(--dark-gray);
}

/* Player Card */
.player-card {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.player-card:hover {
    transform: translateY(-5px);
}

.player-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--light-gray);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.player-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.player-position {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* Tournament Hero - Diseño Profesional */
.tournament-hero {
    background: var(--gradient-secondary);
    color: var(--white);
    border: none;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.tournament-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.tournament-hero .card-header::after {
    background: var(--gradient-accent);
}

.tournament-hero .card-header h2,
.tournament-hero .card-header h3 {
    color: var(--white);
}

.tournament-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.tournament-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tournament-title h2 {
    color: var(--white);
    margin: 0;
}

.tournament-status {
    font-size: 1rem;
    padding: 8px 16px;
}

.tournament-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tournament-info-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    padding: 1.75rem;
    border-radius: 12px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.tournament-info-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.info-icon {
    font-size: 2.5rem;
}

.info-content {
    color: var(--white);
}

.info-content strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.info-content p {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.tournament-description {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.tournament-description h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.tournament-description p {
    color: var(--white);
    opacity: 0.95;
    line-height: 1.8;
}

/* Podium */
.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    margin: 2rem 0;
    padding: 2rem;
}

.podium-item {
    text-align: center;
    flex: 1;
    max-width: 200px;
}

.podium-1 {
    order: 2;
    transform: scale(1.1);
}

.podium-2 {
    order: 1;
}

.podium-3 {
    order: 3;
}

.podium-medal {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.podium-team {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.podium-points {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Match Card Small */
.match-card-small {
    background: var(--white);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--primary-color);
    border: 1px solid var(--medium-gray);
    transition: all 0.3s ease;
}

.match-card-small:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-left-width: 4px;
}

.match-teams-small {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.team-small {
    flex: 1;
}

.team-name-small {
    font-weight: 600;
    font-size: 0.95rem;
}

.team-score-small {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.vs-small {
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.match-info-small {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--dark-gray);
    margin-top: 0.5rem;
}

/* Classification Table */
.classification-table {
    font-size: 0.95rem;
}

.classification-table th {
    text-align: center;
    padding: 1rem 0.5rem;
}

.classification-table td {
    text-align: center;
    padding: 1rem 0.5rem;
}

.position-cell {
    font-weight: 700;
    width: 60px;
}

.medal {
    font-size: 1.5rem;
}

.team-cell {
    text-align: left !important;
    padding-left: 1rem !important;
}

.team-cell strong {
    color: var(--secondary-color);
}

.points-cell {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.top-position {
    background: linear-gradient(90deg, rgba(255, 211, 63, 0.1) 0%, rgba(255, 211, 63, 0.05) 100%);
    border-left: 4px solid var(--accent-color);
}

.positive {
    color: var(--success);
    font-weight: 600;
}

.negative {
    color: var(--danger);
    font-weight: 600;
}

/* Team Cards */
.team-card {
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.team-card-header {
    margin-bottom: 1.5rem;
}

.team-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

.team-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-logo-placeholder {
    font-size: 2.5rem;
}

.team-card-header h3 {
    color: var(--secondary-color);
    margin: 0;
    font-size: 1.3rem;
}

.team-card-body {
    text-align: left;
}

.team-card-body p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.team-card-body strong {
    color: var(--dark-gray);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .tournament-info-grid {
        grid-template-columns: 1fr;
    }
    
    .podium {
        flex-direction: column;
        align-items: center;
    }
    
    .podium-1,
    .podium-2,
    .podium-3 {
        order: 0;
        transform: none;
        max-width: 100%;
    }
    
    .classification-table {
        font-size: 0.85rem;
    }
    
    .classification-table th,
    .classification-table td {
        padding: 0.75rem 0.25rem;
    }
}

/* Mejoras adicionales profesionales */
.hero-content .btn {
    margin: 0.5rem;
}

/* Mejora de iconos */
i.fas, i.far {
    display: inline-block;
}

/* Mejoras en tablas */
table {
    border: 1px solid var(--medium-gray);
}

thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 1.25rem 1rem;
}

tbody td {
    padding: 1.25rem 1rem;
    font-size: 0.95rem;
}

/* Mejoras en badges */
.badge {
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Mejoras en formularios */
.form-control {
    border: 1px solid var(--medium-gray);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Mejoras en alertas */
.alert {
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Mejoras en responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .card {
        padding: 1.75rem;
    }
    
    .stat-card {
        padding: 2rem 1.5rem;
    }
}

/* Mejoras profesionales adicionales */
.hero-content {
    position: relative;
    z-index: 1;
}

/* Mejoras en iconos de información */
.tournament-info-item .info-icon i {
    font-size: 1.5rem;
}

/* Mejoras en podio */
.podium-medal {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.podium-team {
    font-size: 1rem;
    font-weight: 600;
}

.podium-points {
    font-size: 1.4rem;
    font-weight: 700;
}

/* Mejoras en match cards */
.match-card-small {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.match-card-small:hover {
    background: var(--white);
}

/* Mejoras en clasificación */
.medal {
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

/* Mejoras en responsive para móviles */
@media (max-width: 480px) {
    .hero {
        padding: 120px 0 100px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .tournament-info-item {
        padding: 1.25rem;
    }
}

/* Ajustes finales profesionales */
.tournament-hero {
    position: relative;
    z-index: 1;
}

.tournament-hero .tournament-title h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.8px;
}

.tournament-status {
    font-size: 0.85rem;
    padding: 6px 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Mejoras en iconos de Font Awesome */
.fas, .far {
    font-style: normal;
}

/* Mejoras en badges dentro de tournament-hero */
.tournament-hero .badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Mejoras en botones dentro de cards */
.card .btn {
    margin-top: 0.5rem;
}

/* Mejoras en match info */
.match-info {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.match-info i {
    margin-right: 6px;
    opacity: 0.7;
}

/* Mejoras en responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 100px 0 80px;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .card-header h2 {
        font-size: 1.5rem;
    }
    
    .card-header h3 {
        font-size: 1.25rem;
    }
}

/* Mejoras adicionales para hero con fondo */
.hero-home {
    position: relative;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Asegurar que el vídeo cubra toda la pantalla */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 1;
}

/* Asegurar que la imagen cubra toda la pantalla */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Overlay para mejorar legibilidad */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(30, 41, 59, 0.65) 100%);
    z-index: 2;
}

/* Ajustes para contenido sobre el fondo */
.hero-home .hero-content {
    position: relative;
    z-index: 10;
}

/* Efecto parallax sutil en scroll (opcional) */
@media (prefers-reduced-motion: no-preference) {
    .hero-image {
        will-change: transform;
    }
}

/* Mejoras en responsive para hero-home */
@media (max-width: 640px) {
    .hero-home {
        min-height: 90vh;
    }
    
    .hero-home .hero-content {
        padding-top: 120px;
        padding-bottom: 50px;
    }
    
    .hero-home h1 {
        font-size: 2.25rem;
    }
    
    .hero-home p {
        font-size: 1rem;
    }
    
    .navbar-hero {
        padding: 1rem 0;
    }
}

/* Animación de entrada para el contenido */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-home .hero-content > * {
    animation: heroFadeIn 1s ease-out;
}

.hero-home .hero-content > *:nth-child(2) {
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.hero-home .hero-content > *:nth-child(3) {
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

/* Dropdown Menu para Información */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 220px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 1px solid var(--medium-gray);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu li {
    margin: 0;
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-dropdown-menu a:hover {
    background: var(--light-gray);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.nav-dropdown-menu a i {
    width: 20px;
    text-align: center;
}

/* Navbar hero con dropdown */
.navbar-hero .nav-dropdown-menu {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-hero .nav-dropdown-menu a {
    color: rgba(255, 255, 255, 0.9);
}

.navbar-hero .nav-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-left-color: var(--accent-color);
}

/* Responsive para dropdown */
@media (max-width: 768px) {
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
        margin: 0.5rem 0 0 1rem;
        display: none;
    }
    
    .nav-dropdown.active .nav-dropdown-menu {
        display: block;
    }
    
    .nav-dropdown > a::after {
        content: '';
    }
}

/* Hover effects para tarjetas de información en home */
.card a > div:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-4px);
}

/* Grid responsive para información */
@media (max-width: 768px) {
    .grid.grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .grid.grid-4 {
        grid-template-columns: 1fr;
    }
}
