﻿/* ESTILOS PERSONALIZADOS (Evitando conflictos con Bootstrap) */
:root {
    --futsal-dark: #0a0e17;
    /* Fondo principal oscuro */
    --futsal-red: #e60000;
    --futsal-blue: #0044ff;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--futsal-dark);
    color: #ffffff;
    overflow-x: hidden;
}

/* NAVBAR PERSONALIZADA */
.navbar-futsal {
    background-color: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.btn-login {
    background: linear-gradient(45deg, var(--futsal-red), #ff4d4d);
    border: none;
    color: white;
    font-weight: bold;
    padding: 8px 25px;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(230, 0, 0, 0.4);
        color: white;
    }

/* SECCIÓN HERO (BANNER) */
.hero-section {
    padding-top: 80px;
    /* Espacio para el navbar */
    background-color: var(--futsal-dark);
    position: relative;
}

.hero-banner-img {
    width: 100%;
    max-height: 70vh;
    object-fit: cover;
    /* Mantiene la proporción sin deformar */
    object-position: center;
    border-bottom: 3px solid var(--futsal-blue);
    box-shadow: 0 10px 30px rgba(0, 68, 255, 0.2);
}

/* SECCIÓN INFORMACIÓN */
.info-section {
    padding: 5rem 0;
    background: radial-gradient(circle at center, #111827 0%, var(--futsal-dark) 100%);
}

.glow-image-container {
    position: relative;
    display: inline-block;
}

    /* Efecto de luz detrás del logo redondo */
    .glow-image-container::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 105%;
        height: 105%;
        border-radius: 50%;
        background: linear-gradient(45deg, var(--futsal-red), var(--futsal-blue));
        z-index: 0;
        filter: blur(20px);
        opacity: 0.7;
        animation: pulseGlow 3s infinite alternate;
    }

.info-image {
    position: relative;
    z-index: 1;
    border-radius: 50%;
    /* Hace la imagen redonda */
    border: 4px solid #1f2937;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

@keyframes pulseGlow {
    0% {
        opacity: 0.5;
        filter: blur(15px);
    }

    100% {
        opacity: 0.9;
        filter: blur(25px);
    }
}

/* SECCIÓN DE CLUBES (GLASSMORPHISM) */
.clubs-section {
    padding: 4rem 0 6rem;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%231f2937" fill-opacity="0.4"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

.club-card {
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .club-card:hover {
        transform: translateY(-10px);
        border-color: var(--futsal-blue);
        box-shadow: 0 10px 20px rgba(0, 68, 255, 0.15);
    }

.club-logo {
    height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.5));
}

/* FOOTER */
.footer-futsal {
    background-color: #05070a;
    border-top: 2px solid var(--futsal-red);
    padding: 2rem 0;
    text-align: center;
}

/* ============================================================================== */
/* ESTILOS DEL DIAGRAMA DE TORNEO Y BRACKETS */
/* ============================================================================== */
.torneo-section {
    background: radial-gradient(circle at center, #0f172a 0%, var(--futsal-dark) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.select-futsal {
    background-color: #111827;
    border: 1px solid #374151;
    color: #ffffff;
    border-radius: 10px;
    padding: 10px 15px;
}

    .select-futsal:focus {
        background-color: #1f2937;
        color: #ffffff;
        border-color: var(--futsal-blue);
        box-shadow: 0 0 10px rgba(0, 68, 255, 0.4);
    }

/* BADGES DE FASE */
.phase-badge {
    padding: 10px 15px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.phase-blue {
    background: rgba(0, 68, 255, 0.2);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.4);
}

.phase-green {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.4);
}

.phase-yellow {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.4);
}

.phase-red {
    background: rgba(230, 0, 0, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
}

/* GRID DEL BRACKET */
.bracket-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 991px) {
    .bracket-grid {
        grid-template-columns: 1fr;
    }
}

/* CAJAS DE SERIE */
.serie-box {
    background: rgba(17, 24, 39, 0.7);
    border-radius: 16px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.serie-a {
    box-shadow: 0 0 20px rgba(0, 68, 255, 0.15);
    border-top: 3px solid #3b82f6;
}

.serie-b {
    box-shadow: 0 0 20px rgba(0, 68, 255, 0.15);
    border-top: 3px solid #3b82f6;
}

.serie-header {
    text-align: center;
    font-weight: 900;
    color: #60a5fa;
    font-size: 1.1rem;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* TARJETAS DE ENFRENTAMIENTOS DE GRUPOS */
.match-card-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 8px 10px;
    margin-bottom: 8px;
}

.match-pos-badge {
    background: rgba(0, 68, 255, 0.3);
    color: #60a5fa;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 6px;
    min-width: 28px;
    text-align: center;
}

.team-pill {
    display: flex;
    align-items: center;
    flex: 1;
    overflow: hidden;
}

    .team-pill.team-left {
        justify-content: flex-start;
    }

    .team-pill.team-right {
        justify-content: flex-end;
    }

    .team-pill img {
        width: 24px;
        height: 24px;
        object-fit: contain;
        border-radius: 4px;
    }

    .team-pill span {
        font-size: 0.78rem;
        font-weight: 600;
        color: #e5e7eb;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 90px;
    }

.vs-pill {
    font-size: 0.7rem;
    font-weight: 900;
    color: #ef4444;
    padding: 0 8px;
}

/* PLAYOFFS TITULOS */
.playoff-section-title {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.green-title {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.yellow-title {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.red-title {
    background: rgba(230, 0, 0, 0.15);
    color: #ef4444;
    border: 1px solid rgba(230, 0, 0, 0.3);
}

/* TARJETAS DE PLAYOFF (NEÓN) */
.playoff-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(17, 24, 39, 0.85);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

    .playoff-card.cuartos {
        border-left: 3px solid #10b981;
        box-shadow: 0 0 15px rgba(16, 185, 129, 0.08);
    }

    .playoff-card.semis {
        border-left: 3px solid #f59e0b;
        box-shadow: 0 0 15px rgba(245, 158, 11, 0.08);
    }

    .playoff-card.final {
        border: 2px solid #ef4444;
        box-shadow: 0 0 25px rgba(230, 0, 0, 0.25);
        background: linear-gradient(180deg, rgba(31, 41, 55, 0.9) 0%, rgba(17, 24, 39, 0.95) 100%);
    }

.tag-label {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
}

.score-badge {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 900;
    font-size: 0.85rem;
    padding: 2px 8px;
    border-radius: 6px;
    margin: 0 4px;
}