html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.btn-google {
    border: 1px solid #dc3545; /* rojo Bootstrap */
    color: #dc3545;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1.1rem;
    width: 100%;
    max-width: 280px;
    transition: all 0.3s ease;
}

.btn-google img {
    height: 48px;
    margin-right: 12px;
}

.btn-google:hover {
    background-color: #dc3545; /* rojo sólido */
    color: #fff; /* texto blanco */
}

:root {
    /* Colores principales */
    --bs-primary: #004d40; /* Verde oscuro tipo cancha */
    --bs-secondary: #ffeb3b; /* Amarillo tipo balón */
    --bs-dark: #212121; /* Negro elegante */
    --bs-light: #f5f5f5; /* Gris claro */
    /* Colores de texto */
    --bs-body-color: #212121;
    --bs-body-bg: #fafafa;
}

/* Navbar personalizado */
.navbar {
    background-color: var(--bs-primary) !important;
}

.navbar-brand, .nav-link {
    color: var(--bs-light) !important;
}

.nav-link:hover {
    color: var(--bs-secondary) !important;
}

/* Footer personalizado */
footer {
    background-color: var(--bs-dark) !important;
    color: var(--bs-light) !important;
}

footer a {
    color: var(--bs-secondary) !important;
    text-decoration: none;
}

footer a:hover {
    color: var(--bs-light) !important;
}

/* Eliminatorias */
.bracket {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

.bracket-column {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 22%;
    position: relative;
}

/* Tarjeta de partido */
.match {
    background: #f8f9fa;
    border: 2px solid #ccc;
    border-radius: 6px;
    padding: 8px;
    margin: 20px 0;
    text-align: center;
    font-weight: bold;
    position: relative;
}

/* Conector curvo hacia la siguiente fase */
.connector::after {
    content: "";
    position: absolute;
    right: -40px;
    top: 50%;
    width: 40px;
    height: 60px;
    border-top: 2px solid #000;
    border-right: 2px solid #000;
    border-radius: 0 30px 0 0;
}

/* Curva descendente para partidos inferiores */
.connector.lower::after {
    top: auto;
    bottom: 50%;
    border-top: none;
    border-bottom: 2px solid #000;
    border-right: 2px solid #000;
    border-radius: 0 0 30px 0;
}

/* Línea vertical central entre fases */
.bracket-column:not(:last-child)::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #000;
    margin: auto;
}

/* Responsive: vertical en móviles */
@media (max-width: 767px) {
    .bracket {
        flex-direction: column;
    }

    .bracket-column {
        width: 100%;
    }

        .connector::after,
        .connector.lower::after,
        .bracket-column::before {
            display: none;
        }
}

/* Brillo dorado animado */
.champion-glow {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    animation: glowPulse 2s infinite alternate;
    border: 3px solid gold;
}

@keyframes glowPulse {
    from {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    }

    to {
        box-shadow: 0 0 35px rgba(255, 215, 0, 1);
    }
}

/* Confeti */
#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 9999;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: red;
    animation: fall 3s linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Para ventana modal */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: 95%; /* que no ocupe todo el ancho */
    }

    .table {
        font-size: 0.85rem; /* texto más compacto */
    }

    .table img {
        width: 20px;
        height: 14px;
    }
}
