/* ===== SECCIÓN PRINCIPAL CON IMAGEN DE FONDO ===== */
.league-detail-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;

    /* MODIFICACIONES PARA CALIDAD Y COMPLETITUD: */
    background-color: #000; /* Fondo negro para rellenar si la imagen no cubre todo con 'contain' */
    background-size: contain; /* Obliga a la imagen a verse completa, ajustándose al contenedor */
    background-position: center center; /* Centra la imagen exacta */
    background-repeat: no-repeat; /* Evita que la imagen se duplique */

    /* Regla opcional para maximizar nitidez en escalados (soporte variable en navegadores) */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.league-detail-section {
    /* Asegúrate de usar la nueva imagen de alta calidad aquí */
    background-image: url('/images/cancha2.jpg');
}

.league-detail-section .container {
    position: relative;
    z-index: 2;
}

/* ===== SECCIÓN detalle===== */
.detalle-encuentro-section py-5{
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;

    /* MODIFICACIONES PARA CALIDAD Y COMPLETITUD: */
    background-color: #000; /* Fondo negro para rellenar si la imagen no cubre todo con 'contain' */
    background-size: contain; /* Obliga a la imagen a verse completa, ajustándose al contenedor */
    background-position: center center; /* Centra la imagen exacta */
    background-repeat: no-repeat; /* Evita que la imagen se duplique */

    /* Regla opcional para maximizar nitidez en escalados (soporte variable en navegadores) */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.detalle-encuentro-section {
    /* Asegúrate de usar la nueva imagen de alta calidad aquí */
    background-image: url('/images/cancha11.jpg');
}

.detalle-encuentro-section .container {
    position: relative;
    z-index: 2;
}



/* El resto de tu CSS (fifa-card, buttons, etc.) permanece igual */
/* ===== TARJETA PRINCIPAL (TRANSPARENTE, SOLO BLUR) ===== */
.fifa-card {
    background: rgba(255, 255, 255, 0.1); /* Muy transparente, apenas un velo blanco */
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 215, 0, 0.5); /* Dorado semitransparente */
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1);
    color: white; /* Texto blanco para que contraste con la imagen */
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
}

.fifa-card:hover {
    border-color: rgba(255, 215, 0, 0.9);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px) scale(1.02);
}

/* Cabecera de la tarjeta (también transparente) */
.fifa-card .card-header {
    background: rgba(0, 0, 0, 0.2); /* Muy tenue para no tapar */
    border-bottom: 2px solid #ffd700;
    color: white;
    padding: 1.5rem 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Oswald', sans-serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.fifa-card .card-header h4 {
    font-size: 1.8rem;
}

/* ===== LOGO CON BORDE DORADO ===== */
.fifa-logo-wrapper {
    background: rgba(0, 0, 0, 0.2); /* Fondo oscuro tenue para resaltar el logo */
    border: 3px solid #ffd700;
    border-radius: 50%;
    width: 170px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    padding: 5px;
}

.fifa-card:hover .fifa-logo-wrapper {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.7), 0 0 0 3px #ffd700;
}

.fifa-logo-wrapper img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
}

/* ===== TARJETAS DE ESTADÍSTICAS (MUY TRANSPARENTES) ===== */
.fifa-stat-card {
    background: rgba(0, 0, 0, 0.3); /* Fondo oscuro translúcido para que resalte el texto */
    backdrop-filter: blur(5px);
    border: 1px solid #ffd700;
    border-radius: 16px;
    padding: 1rem 0.5rem;
    transition: all 0.2s;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.fifa-stat-card:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: white;
    transform: translateY(-3px);
}

.fifa-stat-card i {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

/* ===== BADGES DE PLAN ===== */
.fifa-badge {
    display: inline-block;
    padding: 0.5rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: 1px solid #ffd700;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.badge-free {
    border-color: #95a5a6;
}

.badge-premium {
    border-color: #ffd700;
}

/* ===== DIVISOR ===== */
.fifa-divider {
    border: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    margin: 1.8rem 0;
}

/* ===== BOTONES (SEMITRANSPARENTES) ===== */
.fifa-btn {
    display: inline-block;
    padding: 0.9rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    border: 2px solid #ffd700;
    cursor: pointer;
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    color: white;
}

.fifa-btn-primary {
    background: rgba(255, 215, 0, 0.3);
    border-color: #ffd700;
}

.fifa-btn-primary:hover {
    background: rgba(255, 215, 0, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255, 215, 0, 0.3);
}

.fifa-btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 215, 0, 0.7);
}

.fifa-btn-outline:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: white;
    transform: translateY(-2px);
}

/* ===== TEXTO MUTED ===== */
.fifa-muted-text {
  color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    font-style: italic;
    text-shadow: var(--text-shadow-soft);
}
//* =====================================================F
    ESTILO UNIFICADO: TARJETAS MUY TRANSPARENTES CON NEÓN SUTIL
    ===================================================== */

 /* Tarjetas principales */
 .fifa-card,
 .home-card,
 .fifa-stat-card,
 .create-card {
     background: rgba(0, 0, 0, 0.1) !important;         /* Fondo casi invisible */
     backdrop-filter: blur(8px) saturate(180%) !important;
     -webkit-backdrop-filter: blur(8px) saturate(180%) !important;
     border: 2px solid #ffd700 !important;              /* Borde dorado sólido */
     box-shadow: 0 0 5px #ffd700, 0 0 10px #ffd700, 0 10px 30px rgba(0,0,0,0.3) !important; /* Neón suave + sombra */
     transition: all 0.3s ease;
 }

 /* Efecto hover: resplandor un poco más intenso y elevación */
 .fifa-card:hover,
 .home-card:hover,
 .fifa-stat-card:hover,
 .create-card:hover {
     border-color: #ffd700 !important;
     box-shadow: 0 0 8px #ffd700, 0 0 15px #ffd700, 0 15px 40px rgba(0,0,0,0.4) !important;
     transform: translateY(-4px);
 }

 /* Ajuste para la tarjeta con imagen superior (home-card) */
 .home-card-img-wrapper {
     background: rgba(0, 0, 0, 0.1) !important;         /* Mantiene transparencia */
     border-bottom: 2px solid #ffd700 !important;
 }

 /* Logo circular con borde neón suave */
 .fifa-logo-wrapper {
     background: rgba(0, 0, 0, 0.1) !important;
     border: 3px solid #ffd700 !important;
     box-shadow: 0 0 5px #ffd700, 0 0 10px #ffd700 !important;
 }

 /* Badges y divisores con borde dorado y fondo transparente */
 .fifa-badge,
 .badge {
     background: rgba(0, 0, 0, 0.2) !important;
     border: 1px solid #ffd700 !important;
     color: white !important;
     backdrop-filter: blur(4px);
 }

 .fifa-divider {
     background: linear-gradient(90deg, transparent, #ffd700, transparent) !important;
     height: 2px;
     box-shadow: 0 0 5px #ffd700;
 }

 /* Botones con fondo transparente y borde neón suave */
 .fifa-btn {
     background: rgba(0, 0, 0, 0.2) !important;
     border: 2px solid #ffd700 !important;
     box-shadow: 0 0 4px #ffd700, 0 8px 15px rgba(0,0,0,0.3) !important;
     backdrop-filter: blur(5px);
     color: white !important;
 }

 .fifa-btn-primary {
     background: rgba(255, 215, 0, 0.15) !important;
 }

 .fifa-btn-primary:hover {
     background: rgba(255, 215, 0, 0.25) !important;
     box-shadow: 0 0 8px #ffd700, 0 15px 25px rgba(255,215,0,0.2) !important;
 }

 /* ===== ESTILOS PARA INPUTS DEL LOGIN (FIFA NEÓN) ===== */

 /* Inputs normales: borde azul neón */
 .fifa-card .form-control {
     background: rgba(0, 0, 0, 0.3) !important;
     border: 2px solid #00ffff !important;
     color: white !important;
     box-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff !important;
     transition: all 0.3s ease;
 }

 /* Al enfocar, intensificamos el neón */
 .fifa-card .form-control:focus {
     border-color: #00ffff !important;
     box-shadow: 0 0 8px #00ffff, 0 0 15px #00ffff !important;
     outline: none;
 }

 /* Inputs con error (clase is-invalid): borde rojo neón */
 .fifa-card .form-control.is-invalid {
     border-color: #ff3333 !important;
     box-shadow: 0 0 5px #ff3333, 0 0 10px #ff3333 !important;
     background-image: none !important;  /* Quita el icono de error de Bootstrap */
     padding-right: 0.75rem !important;
 }

 /* Inputs válidos (opcional): pueden seguir azules */
 .fifa-card .form-control.is-valid {
     border-color: #00ffff !important;
     box-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff !important;
     background-image: none !important;
     padding-right: 0.75rem !important;
 }

 /* Botón de mostrar contraseña (ojito) en color neón */
 .fifa-card .position-relative .btn-link {
     color: #00ffff !important;
     border: none;
     background: transparent;
     text-shadow: 0 0 5px #00ffff;
 }

 /* Mensajes de error personalizados */
 .fifa-card .invalid-feedback {
     color: #ff9999;
     font-weight: bold;
     text-shadow: 0 0 3px #ff0000;
 }
 /* ===== REFUERZO DE LEGIBILIDAD PARA TEXTO SOBRE FONDOS OSCUROS ===== */

 /* Texto general en secciones con fondo de imagen */
.hero-bg, .league-detail-section, .fifa-card, .home-card, .fifa-stat-card {
    color: #fff;
    text-shadow: var(--text-shadow-soft); /* 1px 1px 3px rgba(0,0,0,0.7) */
}

 /* Títulos y encabezados con mayor énfasis */
h1, h2, h3, h4, h5, h6, .card-header, .fw-bold {
    text-shadow: var(--text-shadow-strong); /* 2px 2px 4px rgba(0,0,0,0.9), 0 0 8px rgba(255,215,0,0.3) */
}

 /* Etiquetas de formulario */
 label, .form-label {
     color: #fff;
     font-weight: 600;
     text-shadow: 2px 2px 3px #000;
 }

 /* Inputs y textareas - el texto debe ser blanco y legible */
 input, textarea, select {
     color: #fff !important;
     background: rgba(0,0,0,0.5) !important;
     border: 1px solid #ffd700;
     text-shadow: 1px 1px 2px #000;
 }

 /* Placeholders más visibles */
 input::placeholder, textarea::placeholder {
     color: rgba(255,255,255,0.7) !important;
     text-shadow: 1px 1px 2px #000;
 }

 /* Texto en tarjetas estadísticas */
.fifa-stat-card .stat-value {
    color: #fff;
    text-shadow: var(--text-shadow-soft);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
}

 /* Badges y textos pequeños */
 .badge, .small, .fifa-muted-text {
     color: #fff;
     text-shadow: 1px 1px 2px #000;
 }

 /* Enlaces dentro de áreas con overlay */
 a:not(.btn):not(.fifa-btn) {
     color: #ffd700;
     text-shadow: 1px 1px 2px #000;
     font-weight: 500;
 }

 a:not(.btn):not(.fifa-btn):hover {
     color: #fff;
     text-decoration: underline;
 }

 /* Ajuste para mensajes de error (invalid-feedback) */
 .invalid-feedback {
     color: #ffb3b3;
     text-shadow: 1px 1px 2px #000;
     font-weight: 600;
 }

:root {
    --text-shadow-soft: 1px 1px 3px rgba(0, 0, 0, 0.7);
    --text-shadow-strong: 2px 2px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(255, 215, 0, 0.3);
    --text-glow-gold: 0 0 5px #ffd700, 0 0 10px #ffd700;
}

.badge {
    color: #fff !important;
    text-shadow: var(--text-shadow-soft);
}
/* Si quieres que los badges de warning tengan texto oscuro, pero mejor mantener blanco */
.badge.bg-warning {
    color: #fff !important; /* o #000 si prefieres, pero con fondo amarillo claro se lee mejor negro */
}