
        /* ============================================================
        MODAL COMPLETO
        ============================================================ */
        .modal {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.85);
            opacity: 0;
            pointer-events: none;
            transition: opacity .35s ease;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 999999;
            padding: 20px;
        }

        .modal.active {
            display: flex !important;
            opacity: 1 !important;
            pointer-events: auto !important;
        }

        .modal-content {
            background: linear-gradient(135deg, #ff214f, #000000);
            padding: 20px;
            border-radius: 12px;
            border-color: darkgoldenrod;
            max-width: 450px;
            width: 90%;
            text-align: center;
            animation: zoomIn .35s ease;
            color: #fff;
        }

        .modal-content img {
            width:70%;
            border-radius: 12px;
            margin-bottom: 16px;
            display: block;      /* Necesario para poder centrar */
            margin: 0 auto;      /* Centra horizontalmente */
        }

        @keyframes zoomIn {
            from { transform: scale(.7); opacity: 0; }
            to   { transform: scale(1); opacity: 1; }
        }

        .modal-info {
            margin-top: 10px;

    width: 100%;              /* 🔥 Se ajusta al contenedor */
    max-width: 100%; 
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;      /* Centra todo */
}

        .modal-info h3 {
            font-size: 35px;
            font-weight: 700;
            margin-bottom: 5px;
        }

        .modal-info p {
            font-size: 20px;
            opacity: .6;
            margin-bottom: 1px;
        }
        .modal-logo {
            width: 100px;
            height: 100px;
            object-fit: contain;
            margin: 0 auto 10px auto;
            display: block;
        }

.modal-open {
  overflow: hidden;
}

.modal-open .modal {
  overflow-x: hidden;
  overflow-y: auto;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  outline: 0;
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 0.5rem;
  pointer-events: none;
}

.modal.fade .modal-dialog {
  -webkit-transition: -webkit-transform 0.3s ease-out;
  transition: -webkit-transform 0.3s ease-out;
  transition: transform 0.3s ease-out;
  transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
  -webkit-transform: translate(0, -50px);
      -ms-transform: translate(0, -50px);
          transform: translate(0, -50px);
}

@media (prefers-reduced-motion: reduce) {
  .modal.fade .modal-dialog {
    -webkit-transition: none;
    transition: none;
  }
}

.modal.show .modal-dialog {
  -webkit-transform: none;
      -ms-transform: none;
          transform: none;
}

.modal-dialog-scrollable {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  max-height: calc(100% - 1rem);
}

.modal-dialog-scrollable .modal-content {
  max-height: calc(100vh - 1rem);
  overflow: hidden;
}

.modal-dialog-scrollable .modal-header,
.modal-dialog-scrollable .modal-footer {
  -webkit-flex-shrink: 0;
      -ms-flex-negative: 0;
          flex-shrink: 0;
}

.modal-dialog-scrollable .modal-body {
  overflow-y: auto;
}

.modal-dialog-centered {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  min-height: calc(100% - 1rem);
}

.modal-dialog-centered::before {
  display: block;
  height: calc(100vh - 1rem);
  content: "";
}

.modal-dialog-centered.modal-dialog-scrollable {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  height: 100%;
}

.modal-dialog-centered.modal-dialog-scrollable .modal-content {
  max-height: none;
}

.modal-dialog-centered.modal-dialog-scrollable::before {
  content: none;
}

.modal-content {
  position: relative;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.15rem;
  outline: 0;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background-color: #000;
}

.modal-backdrop.fade {
  opacity: 0;
}

.modal-backdrop.show {
  opacity: 0.5;
}

.modal-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
      -ms-flex-align: start;
          align-items: flex-start;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 1rem 1rem;
  border-bottom: 1px solid #495057;
  border-top-left-radius: 0.15rem;
  border-top-right-radius: 0.15rem;
}

.modal-header .close {
  padding: 1rem 1rem;
  margin: -1rem -1rem -1rem auto;
}

.modal-title {
  margin-bottom: 0;
  line-height: 1.5;
}

.modal-body {
  position: relative;
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  padding: 1rem;
}

.modal-footer {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  padding: 1rem;
  border-top: 1px solid #495057;
  border-bottom-right-radius: 0.15rem;
  border-bottom-left-radius: 0.15rem;
}

.modal-footer > :not(:first-child) {
  margin-left: .25rem;
}

.modal-footer > :not(:last-child) {
  margin-right: .25rem;
}

.modal-scrollbar-measure {
  position: absolute;
  top: -9999px;
  width: 50px;
  height: 50px;
  overflow: scroll;
}

@media (min-width: 576px) {
  .modal-dialog {
    max-width: 500px;
    margin: 1.75rem auto;
  }
  .modal-dialog-scrollable {
    max-height: calc(100% - 3.5rem);
  }
  .modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 3.5rem);
  }
  .modal-dialog-centered {
    min-height: calc(100% - 3.5rem);
  }
  .modal-dialog-centered::before {
    height: calc(100vh - 3.5rem);
  }
  .modal-sm {
    max-width: 300px;
  }
}

@media (min-width: 992px) {
  .modal-lg,
  .modal-xl {
    max-width: 800px;
  }
}

@media (min-width: 1200px) {
  .modal-xl {
    max-width: 1140px;
  }
}
/* ============================================================
   NUEVO DISEÑO DE MODAL EN DOS COLUMNAS (NO ROMPE EL EXISTENTE)
   ============================================================ */

.modal-content.two-columns {
    display: flex !important;
    flex-direction: row;
    gap: 20px;
    max-width: 1500px !important;
    height: 700px !important;
    width: 90% !important;
    background: linear-gradient(135deg, #ff214f, #000000) !important;
    color: #fff !important;
}

/* Columna izquierda */
.left-section {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
    flex-shrink: 1;
    max-width: 100%;          /* 🔥 Evita que se salga */
    overflow: hidden;         /* 🔥 Corta contenido que intente desbordarse */
}

/* Columna derecha - Video */
.right-section {
    flex: 2;
    min-height: 600px;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

#modalVideo {
    width: 100%;
    height: 100%;
    border: none;
}

/* Vista móvil */
@media (max-width: 768px) {
    .modal-content.two-columns {
        flex-direction: column !important;
    }

    .right-section {
        min-height: 200px;
    }
}
#modalSocial {
    display: flex;
    justify-content: center;   /* Centra horizontalmente */
    align-items: center;        /* Centra verticalmente (opcional) */
    gap: 10px;                  /* Espacio entre iconos */
    width: 100%;                /* Asegura que ocupe el ancho disponible */
    margin-top: 10px;           /* Separación con el resto del contenido */
}
#modalSocial a {
    font-size: 22px;      /* Tamaño del icono */
    color: white;
    text-decoration: none;
}
#modalSocial a:hover {
    opacity: 0.7;
}
@media (max-width: 768px) {

    /* Estructura general del modal */
    .modal-content.two-columns {
        flex-direction: column !important;
        height: auto !important;
        max-width: 95% !important;
        padding: 15px;
    }

    /* COLUMNA IZQUIERDA */
    .left-section {
        width: 100% !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    /* Imagen del jugador */
    #modalImg {
        width: 70% !important;
        max-width: 350px;  /* Mantiene proporción normal en móvil */
        height: auto !important;
        object-fit: contain !important;
        border-radius: 10px;
    }

    /* LOGO DEL EQUIPO */
    #modalLogo {
        width: 50px !important;   /* <<< CONTROLAS EL TAMAÑO AQUÍ */
        height: auto !important;
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }

    /* Texto centrado */
    .modal-info {
        text-align: center;
        width: 100%;
    }

    /* Redes sociales centradas */
    #modalSocial {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 10px;
    }
}

/* Contenedor horizontal para logo + bandera */
.logo-flag-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Logo — NO LO TOCO */
.modal-logo {
    height: 60px;
    width: auto;
}

/* Bandera SVG redonda */
.modal-flag {
    width: 38px;
    height: 38px;
    border-radius: 100%;
    object-fit: cover;
    overflow: hidden;
    border: 2px solid white;
    display: none; /* escondida si no hay bandera */
}


