/* =========================================
   ESTILOS BASE
   ========================================= */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    margin: 0;
    padding: 0;
}
.titulo-principal {
    margin: 0;
    font-size: 2.5rem; /* Esto hace que el título sea mucho más grande */
    font-weight: 900;
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2); /* Un pequeño sombreado elegante */
}

/* =========================================
   TARJETAS DE PARTIDOS
   ========================================= */
.tarjeta-partido {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 16px;
    width: 100%;
    max-width: 400px;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tarjeta-partido:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.tarjeta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.fase-tag {
    padding: 4px 8px;
    border-radius: 20px;
    font-weight: bold;
    background-color: #e3f2fd;
    color: #0d47a1;
}

.tiempo-limite {
    color: #757575;
    font-weight: 500;
}

/* =========================================
   EQUIPOS Y MARCADORES
   ========================================= */
.tarjeta-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.equipo {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 35%;
    text-align: center;
}

.nombre-equipo {
    font-weight: 600;
    color: #212121;
    font-size: 1.1rem;
}

.pronostico-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30%;
}

.input-score {
    width: 45px;
    height: 45px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
    border: 2px solid #bdbdbd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

.input-score:focus {
    border-color: #1976d2;
}

.input-score::-webkit-inner-spin-button,
.input-score::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.separador-vs {
    margin: 0 8px;
    font-weight: bold;
    color: #9e9e9e;
}

/* =========================================
   PIE DE TARJETA Y BOTONES
   ========================================= */
.tarjeta-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f5f5f5;
    padding-top: 12px;
}

.info-costo small {
    display: block;
    color: #757575;
    font-size: 0.75rem;
}

.info-costo strong {
    font-size: 1.1rem;
    color: #2e7d32;
}

.btn-pago {
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-pago.pendiente {
    background-color: #fff3e0;
    color: #e65100;
}

.btn-pago.pendiente:hover {
    background-color: #ffe0b2;
}

.btn-pago.pagado {
    background-color: #e8f5e9;
    color: #2e7d32;
    cursor: default;
}

/* =========================================
   ESTADOS DINÁMICOS (JS)
   ========================================= */
.tarjeta-bloqueada {
    background-color: #f5f5f5;
    opacity: 0.85;
}

.tarjeta-bloqueada .input-score {
    background-color: #e0e0e0;
    border-color: #bdbdbd;
    cursor: not-allowed;
    color: #757575;
}

.tarjeta-bloqueada .tiempo-limite {
    color: #c62828;
    font-weight: bold;
}

/* =========================================
   MODAL DE PAGO
   ========================================= */
.modal {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex; 
    justify-content: center; 
    align-items: center;
    z-index: 1000;
}

/* Esta es la clase clave que falta en tu pantalla para ocultar el código QR al inicio */
.modal.hidden {
    display: none;
}
/* Estilo para las banderas dinámicas */
.bandera-img {
    width: 45px;
    height: 30px;
    object-fit: cover; /* Evita que la imagen se estire feo */
    border-radius: 4px;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15); /* Una pequeña sombra elegante */
    border: 1px solid #eeeeee;
}