/* ==============================================
   home-fifa.css – Estilo FIFA glass ultra transparente
   Tarjetas compactas con neón dorado sutil
   ============================================== */

   /* ---------- FONDO DE PÁGINA (PLAYER) ---------- */
   .home-page-section-home {
       min-height: 100vh;
       background-image: url('/images/cancha3.png');
       background-size: cover;
       background-position: center;
       background-repeat: no-repeat;
       display: flex;
       align-items: center;
       justify-content: center;
       position: relative;
       padding: 2rem 0;
   }
   .home-page-section-home::before {
       content: '';
       position: absolute;
       top: 0;
       left: 0;
       width: 100%;
       height: 100%;
       background: rgba(0, 0, 0, 0.6);
       /* z-index ELIMINADO – esta era la causa del congelamiento */
   }
   .home-page-section-home .container {
       position: relative;

   }



  /* Antes (ejemplo para .player-market-list) */
  .player-market-list {
      background-image: url('/images/cancha3.png');
      background-size: cover;
      background-position: center;
  }
  .player-market-list::before {
      content: '';
      background: rgba(0,0,0,0.6);
  }

  /* Después (fusión en una sola línea) */
  .player-market-list {
      background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/images/cancha3.png');
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
  }

       .player-market-apply {
                min-height: 100vh;
                background-image: url('/images/cancha3.png');
                background-size: cover;
                background-position: center;
                background-repeat: no-repeat;
                display: flex;
                align-items: center;
                justify-content: center;
                position: relative;
                padding: 2rem 0;
            }
            .player-market-apply::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: rgba(0, 0, 0, 0.6);
                /* z-index ELIMINADO – esta era la causa del congelamiento */
            }
            .player-market-apply .container {
                position: relative;

            }

     /* ---------- FONDO DE PÁGINA (PLAYER) ---------- */
      .perfil-page-section {
          min-height: 100vh;
          background-image: url('/images/cancha3.png');
          background-size: cover;
          background-position: center;
          background-repeat: no-repeat;
          display: flex;
          align-items: center;
          justify-content: center;
          position: relative;
          padding: 2rem 0;
      }
      .perfil-page-section::before {
          content: '';
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background: rgba(0, 0, 0, 0.6);
          /* z-index ELIMINADO – esta era la causa del congelamiento */
      }
      .perfil-page-section .container {
          position: relative;

      }

   /* ---------- FONDO DE PÁGINA ---------- */
   .home-page-section,
   .home-page-section--index,
   .home-page-section-home,
   .home-page-section-player {
       min-height: 100vh;
       background-image: url('/images/cancha3.png');
       background-size: cover;
       background-position: center;
       background-repeat: no-repeat;
       display: flex;
       align-items: center;
       justify-content: center;
       position: relative;
       padding: 2rem 0;
   }

   .home-page-section::before,
   .home-page-section--index::before,
   .home-page-section-home::before,
   .home-page-section-player::before {
       content: '';
       position: absolute;
       inset: 0;
       background: radial-gradient(circle at top, rgba(255, 215, 0, 0.10), transparent 35%),
                   rgba(0, 0, 0, 0.62);
       z-index: 1;
   }

   .home-page-section .container,
   .home-page-section--index .container,
   .home-page-section-home .container,
   .home-page-section-player .container {
       position: relative;
       z-index: 2;
   }

/* ---------- FONDO DE PÁGINA (PLAYER) ---------- */
.home-page-section-player {
    min-height: 100vh;
    background-image: url('/images/cancha3.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem 0;
}
.home-page-section-player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* z-index ELIMINADO – esta era la causa del congelamiento */
}
.home-page-section-player .container {
    position: relative;

}
/* ==============================================
   home-fifa.css – Estilo FIFA glass para inicio
   Versión mejorada: tarjetas opacas, bordes dorados
   ============================================== */

/* ---------- FONDO DE PÁGINA ---------- */
.home-page-section {
    min-height: 100vh;
    background-image: url('/images/cancha3.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem 0;
}

.home-page-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.home-page-section .container {
    position: relative;
    z-index: 2;
}


/* ---------- FONDO DE PÁGINA (detalle ncuentro ) ---------- */
.detalle-encuentro-section {
    min-height: 100vh;
    background-image: url('/images/cancha11.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem 0;
}
.detalle-encuentro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* z-index ELIMINADO – esta era la causa del congelamiento */
}
.detalle-encuentro-section .container {
    position: relative;

}



/* ---------- TARJETA BASE (borde dorado, fondo opaco) ---------- */
.fifa-card {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(8px) saturate(180%);
    -webkit-backdrop-filter: blur(8px) saturate(180%);
    border: 2px solid #ffd700 !important;
    border-radius: 1.5rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    color: white;
}

.fifa-card:hover {
    border-color: #ffd700;
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

/* Tarjeta específica para home (con imagen superior) */
.home-card {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(8px) saturate(180%);
    border: 2px solid #ffd700 !important;
    border-radius: 1.5rem !important;
    overflow: hidden;
    color: white;
}

.home-card .card-body {
    padding: 1.5rem;
}

/* ---------- TARJETAS PEQUEÑAS DE ESTADÍSTICAS ---------- */
.fifa-stat-card {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(8px) saturate(180%);
    border: 2px solid #ffd700 !important;
    border-radius: 1.5rem !important;
    padding: 1rem;
    color: white;
    transition: all 0.2s;
}

.fifa-stat-card:hover {
    transform: scale(1.02);
    border-color: #ffd700;
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.fifa-stat-card .stat-label {
    color: #ddd; /* gris más claro */
    text-shadow: var(--text-shadow-soft);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fifa-stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #ffd700;
    line-height: 1.2;
}

/* ---------- CONTENEDOR DEL LOGO (para home-card) ---------- */
.home-card-img-wrapper {
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid #ffd700;
    padding: 0.5rem;
}

.home-card-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.home-card:hover .home-card-img {
    transform: scale(1.08);
}

.home-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 215, 0, 0.3);
    color: #ffd700;
    font-size: 4rem;
    transition: all 0.3s ease;
}

.home-card:hover .home-card-img-placeholder {
    background: rgba(255, 215, 0, 0.4);
    transform: scale(1.05);
}

/* ---------- BADGES CON BORDE DORADO ---------- */
.badge {
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    border: 1px solid #ffd700 !important;
    background: rgba(0, 0, 0, 0.6) !important;
    color: white !important;
}

.badge.bg-success { border-color: #28a745 !important; }
.badge.bg-warning { border-color: #ffc107 !important; }
.badge.bg-danger { border-color: #dc3545 !important; }
.badge.bg-primary { border-color: #007bff !important; }
.badge.bg-info { border-color: #17a2b8 !important; }

/* ---------- TABLAS CON ESTILO FIFA ---------- */
.table-dark {
    background: transparent !important;
    color: white;
}

.table-dark thead th {
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 2px solid #ffd700;
    color: #ffd700;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table-dark tbody tr {
    background: rgba(0, 0, 0, 0.7);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    transition: background 0.2s;
}

.table-dark tbody tr:hover {
    background: rgba(255, 215, 0, 0.2);
}

.table-dark td, .table-dark th {
    border-color: rgba(255, 215, 0, 0.3);
    color: white;
    vertical-align: middle;
}

/* ---------- BOTONES ---------- */
.fifa-btn {
    display: inline-block;
    padding: 0.7rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    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.4);
    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);
    color: white;
}

.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);
    color: white;
}

.fifa-btn-success {
    background: rgba(40, 167, 69, 0.3);
    border-color: #28a745;
}

.fifa-btn-success:hover {
    background: rgba(40, 167, 69, 0.5);
}

.fifa-btn-danger {
    background: rgba(220, 53, 69, 0.3);
    border-color: #dc3545;
}

.fifa-btn-danger:hover {
    background: rgba(220, 53, 69, 0.5);
}

.fifa-btn-warning {
    background: rgba(255, 193, 7, 0.3);
    border-color: #ffc107;
}

.fifa-btn-warning:hover {
    background: rgba(255, 193, 7, 0.5);
}



/* ===== BOTÓN CANCELAR (ROJO NEÓN) - MISMA FORMA QUE CONFIRMAR ===== */
.fifa-btn-danger {
    background: rgba(220, 53, 69, 0.25) !important;   /* Fondo rojo translúcido */
    border: 2px solid #dc3545 !important;             /* Borde rojo sólido */
    box-shadow: 0 0 4px #dc3545, 0 0 10px rgba(220, 53, 69, 0.4), 0 8px 15px rgba(0,0,0,0.3) !important;
    backdrop-filter: blur(5px);
    color: white !important;
    transition: all 0.3s ease;
}

.fifa-btn-danger:hover,
.fifa-btn-danger:focus {
    background: rgba(220, 53, 69, 0.45) !important;
    border-color: #ff4d4d !important;                 /* Rojo más brillante al hover */
    box-shadow: 0 0 10px #dc3545, 0 0 18px #dc3545, 0 15px 25px rgba(220, 53, 69, 0.3) !important;
    transform: translateY(-3px);
}

/* Opcional: efecto de "activo" (cuando se hace clic) */
.fifa-btn-danger:active {
    transform: translateY(1px);
    box-shadow: 0 0 8px #dc3545, 0 0 15px #dc3545 !important;
}

/* ---------- TOASTS CON ESTILO FIFA ---------- */
.toast-header.bg-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    border-bottom: none;
}
.toast-header.bg-danger {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    border-bottom: none;
}
.toast-header.bg-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800) !important;
    border-bottom: none;
}
.toast-header.bg-info {
    background: linear-gradient(135deg, #17a2b8, #138496) !important;
    border-bottom: none;
}
.toast {
    border: none !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    overflow: hidden;
}
.toast-header {
    padding: 0.75rem 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.toast-body {
    background: #f8f9fa;
    color: #333;
    font-size: 1rem;
    padding: 1rem;
}
.toast-header .bi {
    filter: brightness(0) invert(1);
}
.toast-container {
    z-index: 1100 !important;
}

/* ---------- TARJETA DE CREAR LIGA ---------- */
.create-card {
    background: rgba(0, 0, 0, 0.6) !important;
    border: 2px dashed #ffd700 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
}
.create-card:hover {
    border: 2px solid #ffd700 !important;
    background: rgba(255, 215, 0, 0.15) !important;
}
.create-icon {
    font-size: 4rem;
    color: #ffd700;
    margin-bottom: 1rem;
    transition: transform 0.3s;
}
.create-card:hover .create-icon {
    transform: scale(1.1);
}
.create-card .card-title {
    font-size: 1.6rem;
    color: white;
}
.create-card .text-muted-custom {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* ---------- TARJETA DE CREAR LIGA COMPACTA ---------- */
.create-card-small .card-body {
    padding: 0.75rem !important;
}
.create-card-small .create-icon {
    font-size: 2rem !important;
    margin-bottom: 0.25rem !important;
}
.create-card-small .card-title {
    font-size: 1rem !important;
    margin-bottom: 0.25rem !important;
}
.create-card-small .card-text {
    font-size: 0.75rem !important;
    margin-bottom: 0.5rem !important;
}
.create-card-small .fifa-btn {
    padding: 0.25rem 0.75rem !important;
    font-size: 0.75rem !important;
}

/* ---------- RESALTADO PARA BÚSQUEDA ---------- */
.highlight-card {
    border: 4px solid #ffd700 !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8) !important;
    transition: all 0.3s ease;
    transform: scale(1.02);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .home-page-section .section-title {
        font-size: 2rem;
    }
    .home-card .card-title {
        font-size: 1.2rem;
    }
    .create-icon {
        font-size: 3rem;
    }
    .home-card-img-wrapper {
        height: 140px;
    }
}

/* ---------- TÍTULO ---------- */
.home-page-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 1rem;
}

.home-page-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #ffd700;
    border-radius: 3px;
    box-shadow: 0 0 8px #ffd700;
}

.text-gold {
    color: #ffd700 !important;
}

.fifa-modal {
    background-color: #1a1a1a !important;
    border: 2px solid #ffd700 !important;
    border-radius: 1rem;
    box-shadow: 0 0 15px #ffd700, 0 10px 30px rgba(0,0,0,0.5);
}
.fifa-modal .modal-header,
.fifa-modal .modal-footer {
    border-color: #ffd700;
    background-color: #222;
}
.fifa-modal .modal-body {
    background-color: #1a1a1a;
    color: white;
}


/* Botón desplegable con icono */
.home-toggle-btn[aria-expanded="true"] #toggleIcon {
    transform: rotate(180deg);
}

#toggleIcon {
    transition: transform 0.28s ease;
}

/* ---------- BLOQUE DESPLEGABLE ---------- */
.leagues-section {
    transition: max-height 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1), opacity 0.3s ease;
    max-height: 2000px;  /* valor suficientemente grande */
    opacity: 1;
 overflow-y: auto;
    overflow-x: hidden;/* evita que el contenido desborde */
}

.leagues-section.collapsed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Eliminar márgenes/paddings de todos los hijos cuando colapsado */
.leagues-section.collapsed,
.leagues-section.collapsed * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.container.no-padding-bottom {
    padding-bottom: 0 !important;
}

.container:has(.leagues-section.collapsed) {
    padding-bottom: 0 !important;
}

/* ---------- TÍTULO PRINCIPAL ---------- */
.home-page-section .section-title,
.home-page-section--index .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #ffd700;
    text-shadow:
        0 0 6px rgba(255, 215, 0, 0.85),
        0 0 14px rgba(255, 215, 0, 0.55),
        0 2px 10px rgba(0, 0, 0, 0.85);
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
}

.home-page-section .section-title::after,
.home-page-section--index .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(120px, 30vw);
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.9);
}

.text-gold {
    color: #ffd700 !important;
}

.neon-gold {
    text-shadow:
        0 0 6px rgba(255, 215, 0, 0.85),
        0 0 14px rgba(255, 215, 0, 0.55),
        0 2px 10px rgba(0, 0, 0, 0.85);
}

.home-intro {
    color: #00e5ff;
    font-size: clamp(1rem, 1.7vw, 1.25rem);
    text-shadow: 0 0 6px rgba(0, 229, 255, 0.65);
    max-width: 900px;
    margin: 0 auto;
}

/* ---------- BADGES ---------- */
.badge {
    font-weight: 600;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #ffd700 !important;
    background: rgba(0, 0, 0, 0.60) !important;
    color: #fff !important;
}

.badge.bg-success { border-color: #28a745 !important; }
.badge.bg-warning { border-color: #ffc107 !important; color: #111 !important; }
.badge.bg-danger   { border-color: #dc3545 !important; }
.badge.bg-primary  { border-color: #007bff !important; }
.badge.bg-info     { border-color: #17a2b8 !important; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .home-page-section .section-title,
    .home-page-section--index .section-title {
        font-size: 2rem;
    }

    .home-card .card-title {
        font-size: 1.2rem;
    }

    .create-icon {
        font-size: 3rem;
    }

    .home-card-img-wrapper {
        height: 140px;
    }

    .home-action-btn {
        width: 100%;
        max-width: 320px;
    }

    .home-page-section--index .league-card-item .card-body {
        padding: 0.9rem;
    }
}

.leagues-section.collapsed,
.leagues-section.collapsed * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* ===== FOOTER FIFA ESTILO OSCURO ===== */
.fifa-footer {
    background: #0a0f1e !important;
    color: #eef5ff !important;
    border-top: 2px solid rgba(255, 215, 0, 0.5);
    margin-top: 0 !important; /* elimina el mt-5 original */
    position: relative;
    z-index: 2;
}

.fifa-footer a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.2s;
}

.fifa-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Asegura que el footer no tenga fondo blanco heredado */
footer.fifa-footer {
    background: #0a0f1e !important;
}
/* para la foto  */
.profile-img-wrapper {
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.profile-img-wrapper:hover {
    box-shadow: 0 0 30px rgba(255,215,0,0.8), inset 0 0 20px rgba(255,215,0,0.4);
    transform: scale(1.02);
}
.profile-img-wrapper:hover img {
    transform: scale(1.08);
}

.profile-img-wrapper {
    outline: 2px solid rgba(255,215,0,0.5);
    outline-offset: 2px;
}