
.bg-secondary-soft {
    background-color: rgba(208, 212, 217, 0.25) !important;
}
.rounded {
    border-radius: 5px !important;
}
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}
.px-4 {
    padding-right: 1.5rem !important;
    padding-left: 1.5rem !important;
}
.file-upload .square {
    height: 250px;
    width: 250px;
    margin: auto;
    vertical-align: middle;
    border: 1px solid #e5dfe4;
    background-color: #fff;
    border-radius: 5px;
}
.text-secondary {
    --bs-text-opacity: 1;
    color: rgba(208, 212, 217, 0.5) !important;
}
.btn-success-soft {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}
.btn-danger-soft {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}
.form-control {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.6;
    color: #29292e;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #e5dfe4;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 5px;
    -webkit-transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
    transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
}

body {
  margin: 0;
  background: #f8fafc;
}

/* Listado de inscripciones: aprovecha el espacio libre junto al menú lateral. */
.inscripciones-page {
  max-width: none;
}

#inscripciones-table {
  font-size: 0.9rem;
}

#inscripciones-table > :not(caption) > * > * {
  padding: 0.55rem 0.5rem;
}

#inscripciones-table td:nth-child(4) {
  white-space: nowrap;
}

#inscripciones-table td:nth-child(5) {
  overflow-wrap: anywhere;
}

#inscripciones-table td:nth-child(7) ul {
  min-width: 8rem;
  padding-left: 1.1rem;
}

/* Menú lateral */
.sidebar {
  position: fixed;
  z-index: 1050;
  top: 56px;
  left: 0;
  width: 60px;  /* ancho inicial (solo iconos) */
  height: 100vh;
  background-color: #3a3434; /* Azul Montequinto */
  transition: width 0.3s ease;
  overflow-x: hidden;
}

.sidebar:hover {
  width: 200px; /* ancho expandido */
}

/* Estilos de enlaces */
.sidebar .nav-link {
  padding: 10px 15px;
  transition: background 0.3s ease, color 0.3s ease;
}

.sidebar .nav-link:hover {
  background-color: orange;
  color: #1e3a8a !important;
  border-radius: 5px;
}

/* Ocultar texto al inicio */
.sidebar .nav-link span {
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.sidebar:hover .nav-link span {
  opacity: 1;
}

.mobile-navigation .nav-link {
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  font-size: 1.05rem;
}

.mobile-navigation .nav-link:hover,
.mobile-navigation .nav-link:focus {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.12);
}

.mobile-navigation .nav-link i {
  width: 1.5rem;
  text-align: center;
}

@media (max-width: 991.98px) {
  .content.container {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .navbar-club-logo {
    width: auto;
    max-width: 145px;
    height: 34px;
    object-fit: contain;
  }

  #menuMovil {
    width: min(82vw, 320px);
  }
}


/* Tabs */

    /* Contenedor de tabs */
     .nav-tabs {
      border-bottom: none;
      gap: 12px;
      justify-content: center;
      box-shadow: 0 4px 12px rgb(0 0 0 / 0.05);
      border-radius: 12px;
      background: #fff;
      padding: 8px 20px;
    } 

    /* Pestañas */
     .nav-tabs .nav-link {
      border: none;
      border-radius: 10px;
      color: #495057;
      font-weight: 600;
      padding: 10px 24px;
      transition: background-color 0.3s, color 0.3s;
      box-shadow: 0 0 0 rgba(0,0,0,0);
    } 

    /* Hover suave */
     .nav-tabs .nav-link:hover {
      background-color: #e4e9f7;
      color: #0d6efd;
      box-shadow: 0 4px 8px rgb(13 110 253 / 0.2);
    } 

    /* Pestaña activa destacada */
     .nav-tabs .nav-link.active {
      background: linear-gradient(90deg, #4f46e5, #3b82f6);
      color: white !important;
      box-shadow: 0 8px 20px rgb(59 130 246 / 0.4);
      font-weight: 700;
    } 

    /* Contenido con fondo blanco y sombra */
     .tab-content {
      background: white;
      border-radius: 12px;
      padding: 30px;
      margin-top: 25px;
      box-shadow: 0 8px 24px rgb(0 0 0 / 0.1);
      min-height: 200px;
    } 

    /* Encabezados más limpios */
     .tab-content h2 {
      font-weight: 700;
      color: #1e293b;
      margin-bottom: 15px;
    } 

     .tab-content p {
      color: #475569;
      font-size: 1.05rem;
      line-height: 1.6;
    } 


.form-check-input {
    transform: scale(1.5); /* 1.5 = 150% del tamaño original */
    margin-right: 0.5rem;  /* espacio entre checkbox y label */
}

.persona-cabecera {
  align-items: stretch;
}

.persona-foto-card,
.persona-datos-card {
  border: 0;
  border-radius: 1.25rem;
}

.persona-foto {
  width: 100%;
  max-width: 320px;
  max-height: 420px;
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}

.persona-foto-placeholder {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  min-height: 320px;
  background: linear-gradient(135deg, #e2e8f0, #f8fafc);
  font-size: 6rem;
}

.persona-datos-grid {
  color: #334155;
}

.persona-datos-grid strong {
  color: #0f172a;
}

.persona-roles-tabs {
  gap: 0.75rem;
  justify-content: center;
  border: 0;
}

.persona-roles-tabs .nav-item {
  margin-bottom: 0;
}

.persona-roles-tabs .nav-link {
  border-radius: 999px;
  border: 1px solid #dbe4ee;
  background: #fff;
  color: #334155;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.persona-roles-tabs .nav-link:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.persona-roles-tabs .nav-link.active {
  background: linear-gradient(135deg, #0d6efd, #2563eb);
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

.persona-roles-content .card {
  border-radius: 1.1rem;
}


#CAMPO PARA EQUIPO
.campo-balonmano {
    position: relative;
    min-height: 650px;
    background: #198754;
    border: 4px solid white;
    border-radius: 24px;
    overflow: hidden;
}

.linea-central {
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    background: white;
    transform: translateX(-50%);
}

.circulo-central {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 4px solid white;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.area-6m {
    position: absolute;
    width: 250px;
    height: 350px;
    border: 4px solid white;
    top: 50%;
    transform: translateY(-50%);
}

.area-6m.izquierda {
    left: -125px;
    border-radius: 0 180px 180px 0;
}

.area-6m.derecha {
    right: -125px;
    border-radius: 180px 0 0 180px;
}

.area-9m {
    position: absolute;
    width: 500px;
    height: 600px;
    border: 4px dashed white;
    top: 50%;
    transform: translateY(-50%);
}

.area-9m.izquierda {
    left: -250px;
    border-radius: 0 300px 300px 0;
}

.area-9m.derecha {
    right: -250px;
    border-radius: 300px 0 0 300px;
}

.porteria {
    position: absolute;
    width: 12px;
    height: 100px;
    background: white;
    top: 50%;
    transform: translateY(-50%);
}

.porteria.izquierda {
    left: 0;
}

.porteria.derecha {
    right: 0;
}

.zona-posicion {
    position: absolute;
    min-width: 130px;
    max-width: 220px;
    padding: .5rem;
    border-radius: 12px;
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(3px);
    text-align: center;
}

.zona-titulo {
    font-weight: 700;
    font-size: .85rem;
    margin-bottom: .4rem;
}

.zona-vacia {
    font-size: .75rem;
    color: #6c757d;
}

.zona-portero {
    left: 6%;
    top: 50%;
    transform: translateY(-50%);
}

.zona-extremo-izq {
    left: 70%;
    top: 2%;
}

.zona-lateral-izq {
    left: 38%;
    top: 5%;
}

.zona-central {
    left: 40%;
    top: 35%;
}

.zona-pivote {
    left: 64%;
    top: 34%;
}

.zona-lateral-der {
    left: 38%;
    bottom: 5%;
}

.zona-extremo-der {
    left: 70%;
    bottom: 2%;
}

.jugador-mini {
    display: inline-block;
    width: 80px;
    margin: .25rem;
    text-align: center;
    vertical-align: top;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    padding: .5rem;
}

.jugador-mini-foto,
.jugador-mini-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.jugador-mini-nombre {
    font-size: .72rem;
    font-weight: 600;
    margin-top: .2rem;
    line-height: 1.1;
}

.staff-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.staff-card {
    width: 110px;
    text-align: center;
}

.staff-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.staff-card {
    width: 150px;
    min-height: 190px;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 18px;
    background: #fff;
    text-align: center;
    transition: all .15s ease;
}

.staff-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

.staff-foto,
.staff-placeholder {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    margin: 0 auto .75rem;
}

.staff-foto {
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 14px rgba(0,0,0,.22);
}

.staff-placeholder {
    background: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
    box-shadow: 0 4px 14px rgba(0,0,0,.22);
}

.staff-nombre {
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: .75rem;
}

.staff-actions {
    display: flex;
    justify-content: center;
    gap: .35rem;
}



.dorsales-panel {
    max-width: 760px;
    padding: 18px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
}

.dorsales-grid {
    display: grid;
    grid-template-columns: repeat(12, 48px);
    gap: 8px;
    align-items: stretch;
}

.dorsal-opcion input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dorsal-opcion label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 6px;
    margin: 0;
    border: 1px solid #0d6efd;
    border-radius: 7px;
    color: #0d6efd;
    background-color: #fff;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease-in-out;
}

.dorsal-opcion label:hover {
    color: #fff;
    background-color: #0d6efd;
}

.dorsal-opcion input:checked + label {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.18);
}

.dorsal-sin-asignar {
    grid-column: span 2;
}

.dorsal-sin-asignar label {
    color: #6c757d;
    border-color: #6c757d;
    padding-left: 12px;
    padding-right: 12px;
}

.dorsal-sin-asignar label:hover,
.dorsal-sin-asignar input:checked + label {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

@media (max-width: 768px) {
    .dorsales-grid {
        grid-template-columns: repeat(6, 44px);
        gap: 6px;
    }

    .dorsal-sin-asignar {
        grid-column: span 2;
    }
}

/*
.mapa-dorsales {
    display: grid;
    grid-template-columns: repeat(10, minmax(110px, 1fr));
    border-top: 2px solid #212529;
    border-left: 2px solid #212529;
    background-color: #fff;
    overflow-x: auto;
}

.dorsal-celda {
    min-height: 92px;
    border-right: 2px solid #212529;
    border-bottom: 2px solid #212529;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

.dorsal-cabecera {
    padding: 5px;
    text-align: center;
    font-weight: 700;
    background-color: #b8d5ec;
    border-bottom: 1px solid #212529;
}

.dorsal-contenido {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 6px;
    text-align: center;
}

.jugador-dorsal {
    display: block;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.15;
    transition: opacity 0.15s ease-in-out;
}

.jugador-dorsal:hover {
    text-decoration: underline;
}

.dorsal-vacio {
    color: #adb5bd;
    font-size: 0.8rem;
}

.con-varios {
    background-color: #fff8e1;
}

.categoria-1 {
    color: #6aa84f;
}

.categoria-2 {
    color: #6aa84f;
}

.categoria-3 {
    color: #ff9900;
}

.categoria-4 {
    color: #6aa84f;
}

.categoria-5 {
    color: #ff0000;
}

.categoria-6 {
    color: #0000ff;
}

.leyenda-dorsales {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.leyenda {
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 600;
    color: white;
}

.categoria-senior {
    background-color: blue;
}

.categoria-juvenil {
    background-color: red;
}

.categoria-cadete {
    background-color: #6aa84f;
}

.categoria-infantil {
    background-color: #ff9900;
}

.categoria-alevin {
    background-color: #6f42c1;
}

.categoria-benjamin {
    background-color: #20c997;
}

@media (max-width: 1200px) {
    .mapa-dorsales {
        grid-template-columns: repeat(5, minmax(120px, 1fr));
    }
}

@media (max-width: 768px) {
    .mapa-dorsales {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
    }
}
.filtro-categoria {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #ffffff;
    font-weight: 600;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.indicador-categoria {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.filtro-categoria:not(.activo) {
    opacity: 0.4;
    background-color: #f8f9fa;
}

.jugador-dorsal-card.categoria-oculta {
    display: none;
}

.filtro-categoria:hover {
    opacity: 0.8;
}

.dorsal-contenido {
    min-height: 90px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}


.jugador-dorsal-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

.jugador-dorsal-card:active {
    cursor: grabbing;
}


.jugador-dorsal-foto,
.jugador-dorsal-placeholder {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
}

.jugador-dorsal-foto {
    object-fit: cover;
}

.jugador-dorsal-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
    color: #6c757d;
}

.jugador-dorsal-datos {
    min-width: 0;
}

.jugador-dorsal-nombre {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.1;
}

.jugador-dorsal-categoria {
    font-size: 0.72rem;
    line-height: 1.1;
}

.dorsal-vacio {
    margin: auto;
    color: #adb5bd;
    font-size: 0.75rem;
}

.dorsal-actualizado {
    animation: dorsalActualizado 0.8s ease;
}

@keyframes dorsalActualizado {
    0% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.7);
    }

    100% {
        box-shadow: 0 0 0 8px rgba(25, 135, 84, 0);
    }
}

.jugador-dorsal-card {
    display: flex;
    align-items: center;
    padding: 6px;
    border: 1px solid #dee2e6;
    border-left-width: 5px;
    border-left-style: solid;
    border-radius: 7px;
    background-color: #fff;
}

.jugador-dorsal-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    padding: 0 5px 0 0;
    color: #6c757d;
    cursor: grab;
    font-size: 1.2rem;
}

.jugador-dorsal-handle:active {
    cursor: grabbing;
}

.jugador-dorsal-enlace {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.jugador-dorsal-enlace:hover {
    color: inherit;
    text-decoration: none;
}
    */

.mapa-dorsales {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 8px;
}

.dorsal-celda {
    min-width: 0;
    min-height: 145px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid #adb5bd;
    border-radius: 8px;
}

.dorsal-cabecera {
    flex: 0 0 auto;
    padding: 5px 8px;
    text-align: center;
    font-weight: 700;
    background-color: #d6e9f8;
    border-bottom: 1px solid #adb5bd;
}

.dorsal-contenido {
    flex: 1;
    min-width: 0;
    min-height: 105px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px;
}

.jugador-dorsal-card{
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    padding:8px 6px;
    border-left:5px solid;
    border-radius:8px;
    background:#fff;
    box-shadow:0 2px 5px rgba(0,0,0,.15);
}

.jugador-dorsal-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.16);
}

.jugador-dorsal-card.categoria-oculta {
    display: none;
}

.jugador-dorsal-handle {
    position:absolute;
    top:4px;
    left:4px;
    color:#777;
    cursor:grab;
}

.jugador-dorsal-handle:active {
    cursor: grabbing;
}

.jugador-dorsal-enlace {
    display:flex;
    flex-direction:column;
    align-items:center;
    width:100%;
    color:inherit;
    text-decoration:none;
}

.jugador-dorsal-enlace:hover {
    color: inherit;
    text-decoration: none;
}

.jugador-dorsal-foto,
.jugador-dorsal-placeholder {
   width:48px;
    height:48px;
    border-radius:50%;
    object-fit:cover;
    margin-top:6px;
    margin-bottom:6px;
}

.jugador-dorsal-foto {
    object-fit: cover;
}

.jugador-dorsal-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
    color: #6c757d;
}

.jugador-dorsal-datos {
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.jugador-dorsal-nombre {
    width:100%;
    text-align:center;
    font-size:.78rem;
    font-weight:700;
    line-height:1.1;
}

.jugador-dorsal-categoria {
    width:100%;
    text-align:center;
    font-size:.68rem;
    font-weight:600;
    line-height:1.1;
    margin-top:3px;
}

.dorsal-vacio {
    margin: auto;
    color: #adb5bd;
    font-size: 0.75rem;
    text-align: center;
}

/* Zona de jugadores sin dorsal */

.sin-dorsal-bloque {
    width: 100%;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid #adb5bd;
    border-radius: 8px;
}

.sin-dorsal-cabecera {
    padding: 10px 14px;
    font-weight: 600;
    background-color: #f1f3f5;
    border-bottom: 1px solid #adb5bd;
}

.sin-dorsal-contenido {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
}

.sin-dorsal-contenido .jugador-dorsal-card {
    width: 100px;
    flex: 0 0 100px;
}

.sin-dorsal-contenido .dorsal-vacio {
    width: 100%;
    margin: auto;
}

/* Efecto al guardar */

.dorsal-actualizado {
    animation: dorsalActualizado 0.8s ease;
}

@keyframes dorsalActualizado {
    0% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.7);
    }

    100% {
        box-shadow: 0 0 0 8px rgba(25, 135, 84, 0);
    }
}

/* Adaptación a distintos tamaños */

@media (max-width: 1400px) {
    .mapa-dorsales {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .mapa-dorsales {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .mapa-dorsales {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .mapa-dorsales {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sin-dorsal-contenido .jugador-dorsal-card {
        width: 100%;
        flex-basis: 100%;
    }
}

.filtro-categoria {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #ffffff;
    font-weight: 600;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.indicador-categoria {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.filtro-categoria:not(.activo) {
    opacity: 0.4;
    background-color: #f8f9fa;
}


.filtro-categoria:hover {
    opacity: 0.8;
}

.leyenda-dorsales {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
