/* Estilos del body movidos a header.css */
#simulator {
    background: #fff;
    padding: 2em;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 3em;
    min-width: 300px;
}
label[for], label > b {
  font-size: 1.13em;
  font-weight: 600;
  margin-bottom: 3px;
  letter-spacing: 0.01em;
}
label {
    margin-right: 0.5em;
}

#filtro-posicion {
  padding-right: 30px !important;

  background: #fff !important;
  color: #222 !important;
  border: 1.5px solid #bbb !important;
  border-radius: 5px !important;
  padding: 6px 14px !important;
  min-width: 120px !important;
  min-height: 36px !important;
  font-size: 1em !important;
  font-weight: 500 !important;
  box-sizing: border-box !important;
  transition: border-color 0.18s;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  display: inline-block !important;
}
.select-arrow-pos {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #444;
  font-size: 1.22em;
  z-index: 2;
}

#filtro-posicion:focus, #filtro-posicion:hover {
  background: #fff !important;
  color: #222 !important;
  border-color: #2196f3 !important;
}


input {
    margin-bottom: 1em;
}

#popup-error-puja {
  display: none;
  position: fixed;
  top: 50vh;
  left: 50vw;
  transform: translate(-50%, -50%);
  min-width: 320px;
  max-width: 420px;
  background: #fff;
  border: 2.5px solid #d32f2f;
  color: #d32f2f;
  box-shadow: 0 4px 24px #0003;
  border-radius: 10px;
  padding: 22px 38px 22px 22px;
  font-size: 1.15em;
  font-weight: 500;
  z-index: 3000;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: popupErrorIn 0.25s;
}
#popup-error-puja .popup-close {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 1.4em;
  font-weight: bold;
  color: #d32f2f;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.18s;
}
#popup-error-puja .popup-close:hover {
  color: #a31515;
}
@keyframes popupErrorIn {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

button, .btn-filtro, .btn-limpiar-filtros, .btn-quitar-filtro {
  background: #2196f3;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  min-width: 120px;
  min-height: 36px;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-weight: 500;
  transition: background 0.18s;
}
button:hover, .btn-filtro:hover, .btn-limpiar-filtros:hover {
  background: #1769aa;
}
.btn-quitar-filtro {
  background: #c62828;
  color: #fff;
  font-size: 1.2em;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 50%;
  margin-left: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-quitar-filtro:hover {
  background: #a31515;
}
button:hover {
    background: #e65100;
}
#result {
    margin-top: 2em;
    font-size: 1.2em;
    font-weight: bold;
    color: #222;
}
#inicio, #equipos {
    background: #fff;
    padding: 2em;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 3em;
    min-width: 350px;
    text-align: center;
}
#club-logo-container {
  min-width: 350px;
  min-height: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1em 0;
}

#club-logo {
  max-width: 400px;
  max-height: 400px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
#equiposContainer {
    display: flex;
    justify-content: space-around;
    gap: 2em;
    margin-top: 1em;
    flex-wrap: wrap;
}
.equipo {
    border: 2px solid #2196f3;
    border-radius: 8px;
    padding: 1em;
    background: #e3f2fd;
    min-width: 220px;
}
.equipo h3 {
    color: #1565c0;
}
.jugadores-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5em;
}
.jugadores-table th, .jugadores-table td {
    border: 1px solid #90caf9;
    padding: 0.3em 0.5em;
    font-size: 0.98em;
}
.jugadores-table th {
    background: #bbdefb;
}
#volverBtn {
    margin-top: 2em;
    background: #607d8b;
}
#volverBtn:hover {
    background: #37474f;
}
.ficha-jugador-container {
    background: #fff;
    padding: 2em;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 3em;
    min-width: 350px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.ficha-jugador-header {
    display: flex;
    align-items: center;
    gap: 1.5em;
    margin-bottom: 1.5em;
}
/* Estilos para el avatar del jugador */
.ficha-jugador-avatar {
  border-radius: 50%;
  background: #eee;
  width: 72px;
  height: 72px;
}

/* Estilos para los bloques de atributos */
.atributos-col h5 {
  margin: 0 0 10px 0;
  color: #1976d2;
  font-size: 0.95em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.atributo-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.95em;
  color: #555;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px dashed #f0f0f0;
  white-space: nowrap; /* Evita saltos de línea en los atributos */
}

.atributo-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.atributo-nombre {
  color: #666;
}

.atributo-valor {
  font-weight: 600;
  color: #1976d2;
  font-size: 1.01em;
}
.ficha-volver-btn {
    margin-top: 2em;
    background: #607d8b;
    color: #fff;
    border: none;
    padding: 0.7em 1.2em;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}
.ficha-volver-btn:hover {
    background: #37474f;
}
.jugador-link {
    cursor: pointer;
    text-decoration: underline;
    color: #1976d2;
}
.jugador-link:hover {
    color: #0d47a1;
}
.ficha-jugador-atrs-main {
    display: flex;
    gap: 2em;
    align-items: flex-start;
    flex-wrap: wrap;
}
.ficha-jugador-atrs-basicos {
    min-width: 140px;
    margin-right: 2em;
}
.ficha-jugador-atrs-dobles {
    display: flex;
    gap: 1.5em;
}
.ficha-jugador-atrs-col8 {
    min-width: 120px;
}
.ficha-jugador-equipo-link {
    font-size: 1.1em;
    color: #1565c0;
    cursor: pointer;
    text-decoration: underline;
}
.ficha-jugador-equipo-link:hover {
    color: #0d47a1;
}
.ficha-jugador-atrs-col9 {
    flex: 1 1 0;
    min-width: 180px;
    padding: 0 1em 0 0;
}
.equipo-lista-container {
    background: #fff;
    padding: 2em;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 3em;
    min-width: 350px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.equipo-lista-header {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 1.2em;
}
.equipo-lista-header-link {
    color: #1565c0;
    text-decoration: underline;
    cursor: pointer;
}
.equipo-lista-header-link:hover {
    color: #0d47a1;
}
.equipo-lista-jugadores {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2em;
    justify-content: center;
}
.equipo-lista-jugador {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 8px;
    padding: 1em;
    min-width: 180px;
    max-width: 210px;
    text-align: center;
}
.equipo-lista-jugador img {
    border-radius: 50%;
    background: #eee;
    width: 48px;
    height: 48px;
}
.equipo-lista-nombre {
    font-weight: bold;
    margin-top: 0.5em;
    cursor: pointer;
    text-decoration: underline;
    color: #1976d2;
}
.equipo-lista-nombre:hover {
    color: #0d47a1;
}
.equipo-lista-pos {
    color: #1976d2;
    font-size: 0.98em;
}
.equipo-lista-btn {
    margin-top: 2em;
    background: #607d8b;
    color: #fff;
    border: none;
    padding: 0.7em 1.2em;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}
.equipo-lista-btn:hover {
    background: #37474f;
}

#fichasEquipoA, #fichasEquipoB {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
    min-width: 355px;
    max-width: 440px;
}
.ficha-sim {
    min-width: 340px !important;
    max-width: 410px !important;
    white-space: normal !important;
}
.stats-jugador {
    margin-top: 7px;
    font-size: 0.97em;
    background: #ff9800;
    color: #111;
    border-radius: 6px;
    padding: 2px 7px;
    display: inline-block;
}

/* Colores para los valores de atributos */
.valor-atributo-1 { color: #111; font-weight: bold; }
.valor-atributo-2 { color: #222; }
.valor-atributo-3 { color: #444; }
.valor-atributo-4 { color: #666; }
.valor-atributo-5 { color: #888; }
.valor-atributo-6 { color: #1976d2; }
.valor-atributo-7 { color: #388e3c; }
.valor-atributo-8 { color: #43a047; }
.valor-atributo-9 { color: #00897b; }
.valor-atributo-10 { color: #fbc02d; }
.valor-atributo-11 { color: #ffa000; }
.valor-atributo-12 { color: #ff7043; }
.valor-atributo-13 { color: #ff5722; }
.valor-atributo-14 { color: #ff6f00; font-weight: bold; text-shadow: 0 0 2px #fff176; }

.tabla-medias-atributos {
    min-width: 200px;
    background: #fff8e1;
    border-radius: 10px;
    box-shadow: 0 2px 8px #0001;
    padding: 10px 16px;
    margin: 0 0 12px 0;
    font-size: 1em;
}
.tabla-medias-atributos table {
    width: 100%;
    border-collapse: collapse;
}
.tabla-medias-atributos td {
    padding: 3px 8px;
    border-bottom: 1px solid #ffe0b2;
}
.tabla-medias-atributos tr:last-child td {
    border-bottom: none;
}
.tabla-medias-atributos h3 {
    text-align: center;
    font-size: 1.15em;
    margin-top: 0;
}

/* Bloques de atributos/* === Finanzas Economía === */
.eco-balance-box {
  background: #e3f2fd;
  padding: 18px 28px;
  border-radius: 12px;
  font-size: 1.4em;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px #1976d21a;
  border-left: 7px solid #1976d2;
}
.eco-label {
  color: #1976d2;
  font-weight: bold;
  letter-spacing: 0.5px;
}
.eco-balance {
  color: #2e7d32;
  font-weight: bold;
  font-size: 1.2em;
}
.eco-semana {
  font-size: 1.15em;
  color: #666;
  margin-bottom: 16px;
  margin-top: 6px;
}
.eco-finanzas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.eco-col {
  background: #fafbfc;
  border-radius: 10px;
  box-shadow: 0 1px 6px #1976d210;
  padding: 22px 18px 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.eco-col h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.15em;
  color: #1976d2;
  border-left: 4px solid #1976d2;
  padding-left: 10px;
  font-weight: bold;
}
.eco-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  font-size: 1em;
  border-bottom: 1px solid #e3e3e3;
  gap: 32px; /* más separación entre nombre y cantidad */
}
.eco-row span:first-child {
  flex: 1 1 60%;
}
.eco-row span:last-child {
  flex: 0 0 auto;
  min-width: 72px;
  text-align: right;
  letter-spacing: 0.5px;
  margin-left: 16px;
}
.eco-row:last-child {
  border-bottom: none;
}
.eco-total {
  margin-top: 14px;
  font-weight: bold;
  background: #e3f2fd;
  padding: 7px 12px;
  border-radius: 7px;
  color: #1976d2;
  display: flex;
  justify-content: space-between;
  font-size: 1.09em;
}
.eco-ingresos-total {
  background: #e8f5e9;
  color: #388e3c;
}
.eco-gastos-total {
  background: #ffebee;
  color: #c62828;
}
.eco-efectivo-disponible {
  font-size: 1.2em;
  font-weight: bold;
  color: #2e7d32;
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  background: #e3f2fd;
  padding: 7px 12px;
  border-radius: 7px;
}
@media (max-width: 800px) {
  .eco-finanzas-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.entrenador-ficha {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px #0001;
  padding: 1.7em 2.6em 1.1em 2.6em;
  margin-bottom: 1.5em;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 95%;
  max-width: 800px;
  min-width: 260px;
}
.entrenador-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.8em;
  background: #f7f8fa;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px #0001;
  padding: 0;
  display: block;
}
.entrenador-nombre {
  font-size: 1.35em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 0.3em;
}
.entrenador-pais {
  color: #888;
  font-size: 1.05em;
  margin-bottom: 0.5em;
  display: flex;
  align-items: center;
  gap: 0.4em;
  justify-content: center;
}
.entrenador-edad {
  color: #444;
  font-size: 1.01em;
  margin-bottom: 0.3em;
}
.entrenador-atrib {
  font-size: 1.04em;
  margin-bottom: 0.2em;
  color: #333;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 1.2em;
}
.entrenador-atrib span {
  text-align: left;
  flex: 1 1 60%;
}
.entrenador-atrib a, .entrenador-atrib b, .entrenador-atrib .nivel-link {
  text-align: right;
  flex: 1 1 40%;
  white-space: nowrap;
}
.entrenador-salario {
  font-weight: bold;
  color: #1976d2;
  margin-top: 0.8em;
  font-size: 1.08em;
  letter-spacing: 0.5px;
  text-align: center;
}
.nivel-link {
  cursor: pointer;
  text-decoration: underline dotted 1.5px #bbb;
  font-weight: bold;
}
.ficha-bloque, .ficha-bloque-sim {
  background: #f7f8fa;
  border-radius: 10px;
  padding: 10px 16px 10px 13px;
  box-shadow: 0 1px 4px #0001;
  font-size: 1em;
  margin-bottom: 0px;
}
.ficha-bloque-titulo {
  font-weight: bold;
  color: #1e90ff;
  font-size: 1.08em;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.ficha-bloque-atrs {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ficha-bloque-atributo {
  font-size: 1em;
  margin-bottom: 0px;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-left: 4px;
  background: #e74c3c; /* rojo por defecto */
  box-shadow: 0 0 2px #0002;
  border: 1px solid #fff;
  vertical-align: middle;
}
.status-dot.online {
  background: #4caf50;
}
.status-dot.offline {
  background: #e74c3c;
}

.menu-section-usuario {
  display: block;
  color: orange;
  text-decoration: none;
  padding-left: 16px;
  font-size: 1em;
  transition: color 0.2s;
  font-weight: bold;
}
.menu-section-usuario:hover {
  color: #ff9800;
  text-decoration: underline;
}

.club-link-ciudad, .club-link-pais {
  display: inline-block;
  color: orange;
  text-decoration: none;
  padding-left: 0;
  font-size: 1em;
  font-weight: bold;
  transition: color 0.2s;
}
.club-link-ciudad:hover, .club-link-pais:hover {
  color: #ff9800;
  text-decoration: underline;
}

#club-layout {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  align-items: stretch;
}

#club-layout {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  box-sizing: border-box;
}
/* Estilos antiguos de la barra lateral eliminados */
#sidebar-container {
  display: none; /* Ocultamos el contenedor antiguo */
}

#sidebar {
  /* Estilos para la nueva barra lateral */
  width: 230px;
  color: #fff;
  min-height: 100vh;
  padding: 24px 8px 0 8px;
}

/* --- Tarjetas de transferencias activas --- */
.transfer-card {

  background: #fff;
  border: 1.5px solid #dde2e6;
  border-radius: 8px;
  box-shadow: 0 1px 6px #26315918;
  padding: 16px 22px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 1.09em;
  font-family: inherit;
  color: #222;
  transition: box-shadow 0.18s, border 0.18s;
}
.transfer-card:hover {
  box-shadow: 0 4px 18px #1976d22a;
  border-color: #1976d2;
}
.transfer-card .jugador-link {
  color: #1976d2;
  text-decoration: underline;
  font-weight: 500;
}
.transfer-card .jugador-link:hover {
  color: #0d47a1;
}
.transfer-card .transfer-nombre {
  font-weight: bold;
  margin-right: 12px;
  min-width: 110px;
}
.transfer-card .transfer-precio {
  color: #1976d2;
  font-weight: bold;
  margin-left: auto;
  font-size: 1.11em;
}

/* Fondo pastel para ventas y compras */
.venta-card {
  background: #e8fce8;
  border-color: #b6e2b6;
}
.compra-card {
  background: #fffbe6;
  border-color: #ffe9a7;
}

#club-main {
  flex: 1 1 0%;
  padding: 38px 40px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px #0001;
  margin: 34px 30px 34px 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

/* Mobile override for club-main */
@media (max-width: 768px) {
  #club-main {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: block !important;
  }
}

#sidebar .menu-section, #sidebar-container .menu-section {
  margin-bottom: 9px;
}
#sidebar .menu-section:first-child, #sidebar-container .menu-section:first-child {
  margin-top: 38px !important;
}
#sidebar .menu-section h3, #sidebar-container .menu-section h3 {
  position: relative;
  padding-left: 19px;
  background: #263159;
  color: #fff;
  font-size: 1.03em;
  font-weight: bold;
  margin: 0 0 7px 0;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
#sidebar .menu-section h3::before, #sidebar-container .menu-section h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 6px;
  height: 1.2em;
  background: #1976d2;
  border-radius: 3px;
  display: inline-block;
}

#sidebar .menu-section a, #sidebar-container .menu-section a {
  display: block;
  margin-bottom: 4px;
  color: #b3e5fc;
  text-decoration: none;
  padding-left: 16px;
  font-size: 1em;
  transition: color 0.2s;
}
#sidebar .menu-section a:hover, #sidebar-container .menu-section a:hover {
  color: #fff;
  text-decoration: underline;
}


#club-main {
  flex: 1 1 0%;
  padding: 38px 40px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px #0001;
  margin: 34px 30px 34px 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

/* Mobile override for club-main */
@media (max-width: 768px) {
  #club-main {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: block !important;
  }
}

.menu-section {
  margin-bottom: 9px;
}


.menu-section a {
  display: block;
  margin-bottom: 4px;
  color: #b3e5fc;
  text-decoration: none;
  padding-left: 16px;
  font-size: 1em;
  transition: color 0.2s;
}
.menu-section a:hover {
  color: #fff;
  text-decoration: underline;
}

#club-nombre {
  font-size: 2.2em;
  font-weight: 700;
  color: #263159;
  margin-bottom: 8px;
}
.club-nombre-link a {
  color: #263159;
  text-decoration: none;
  font-size: inherit;
  font-weight: inherit;
  transition: color 0.18s;
}
.club-nombre-link a:hover {
  color: #1976d2;
  text-decoration: underline;
}

/* Layout para plantilla.html */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f6f7fb;
}

.container-flex {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 100vh;
  width: 100vw;
  box-sizing: border-box;
}
#sidebar-menu {
  min-width: 220px;
  max-width: 260px;
  background: #f8f9fa;
  border-right: 1px solid #e0e0e0;
  min-height: 100vh;
  height: 100vh;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 10;
  padding: 0 0 0 0;
}
.main-content {
  flex: 1;
  padding: 32px 24px;
  background: #fff;
  min-height: 100vh;
  box-sizing: border-box;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}
.tabla-jugadores {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.tabla-jugadores th, .tabla-jugadores td {
  border: 1px solid #e0e0e0;
  padding: 8px 10px;
  text-align: left;
}
.tabla-jugadores th {
  background: #263159;
  color: #fff;
}
.tabla-jugadores tr:nth-child(even) {
  background: #f6f7fb;
}

.ficha-jugador {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  background: #f7f8fa;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  margin-bottom: 28px;
  padding: 20px 28px;
  box-shadow: 0 2px 8px #0001;
  gap: 28px;
  max-width: 650px;
}
.ficha-avatar {
  min-width: 90px;
  max-width: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ficha-avatar img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid #26315933;
  background: #fff;
  object-fit: cover;
}
.ficha-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ficha-info h2 {
  margin: 0 0 6px 0;
  font-size: 1.5em;
  color: #263159;
}
.ficha-linea {
  font-size: 1.09em;
  margin-bottom: 2px;
}
.ficha-bandera img {
  vertical-align: middle;
  margin-left: 6px;
  border-radius: 2px;
  box-shadow: 0 1px 2px #0002;
}
.ficha-atributos {
  font-size: 0.98em;
  color: #444;
  margin-top: 6px;
  background: #f1f3fa;
  padding: 7px 10px;
  border-radius: 7px;
}

/* Fichas tipo simulador */
.ficha-jugador-sim {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px #0001;
  margin-bottom: 36px;
  padding: 24px 32px 20px 32px;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ficha-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
}
.ficha-avatar-sim {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #1e90ff33;
  background: #f3f7fa;
  object-fit: cover;
  box-shadow: 0 1px 6px #0002;
}
.ficha-header-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ficha-nombre-sim {
  font-size: 1.25em;
  font-weight: bold;
  line-height: 1.2;
}
.ficha-estrella {
  color: gold;
  font-size: 1.1em;
  margin-left: 8px;
}
.ficha-posicion-sim {
  font-size: 1.1em;
  color: #1e90ff;
  margin-bottom: 2px;
}
.ficha-nacionalidad-sim {
  font-size: 0.9em;
  font-weight: normal;
  color: #555;
  vertical-align: middle;
  margin-left: 4px;
}
.ficha-nacionalidad-sim img {
  height: 18px;
  width: 24px;
  margin-left: 2px;
  vertical-align: text-bottom;
}
.ficha-bloques-sim {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 18px 24px !important;
  margin-top: 8px !important;
  font-size: 1em !important;
}
.ficha-bloques-sim.tactica-grid {
  display: none !important;
}
.ficha-bloques-sim.tactica-grid.mostrar {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 18px 24px !important;
  margin-top: 8px !important;
  font-size: 1em !important;
}

.ficha-salario-sim {
  font-size: 0.97em;
  color: #2e7d32;
  margin-bottom: 3px;
  margin-top: 2px;
  font-weight: 500;
}

.ficha-bloques-sim.tactica-grid {
  display: none !important;
}
.ficha-bloques-sim.tactica-grid.mostrar {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 18px 24px !important;
  margin-top: 8px !important;
  font-size: 1em !important;
}
.ficha-bloque, .ficha-bloque-sim {
  font-size: 1em;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f7f8fa;
  margin-bottom: 4px;
}
.ficha-bloque-sim {
  font-size: 1em;
  padding: 8px 10px;
}
.ficha-bloque-titulo {
  font-size: 1em;
  font-weight: 600;
  margin-bottom: 4px;
}
.ficha-bloque-atributo {
  font-size: 1em;
  margin-bottom: 2px;
  padding: 0 4px;
}

.ficha-bloques-sim.tactica-grid .ficha-bloque-atributo {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  display: block;
}

.tactica-main {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}
.tactica-content-cols {
  display: flex !important;
  flex-direction: row !important;
  gap: 36px !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  width: 100% !important;
  max-width: 1200px;
  margin: 0 !important;
  padding: 0 24px !important;
  box-sizing: border-box;
}
.tactica-col-pista {
  flex: 0 0 440px !important;
  margin: 0 !important;
}
.tactica-col-fichas {
  flex: 1 !important;
  min-width: 320px !important;
}
.pista-container {
  align-items: flex-start !important;
}

.tactica-preferencias {
  background: #f6faf6;
  border: 1.5px solid #b7e1b7;
  border-radius: 9px;
  padding: 20px 18px 10px 18px;
  max-width: 440px;
  margin: 0 0 20px 0 !important;
}
.opciones-tacticas {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.opcion-tactica {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 11px 10px 0;
  border-radius: 7px;
  transition: box-shadow 0.18s, background 0.18s;
  cursor: pointer;
  border: 2px solid transparent;
}
.opcion-tactica input[type="radio"] {
  margin-top: 5px;
  accent-color: #1dbb2e;
  width: 20px;
  height: 20px;
}
.opcion-tactica.selected {
  background: #e8ffe8;
  border-color: #1dbb2e;
  box-shadow: 0 2px 10px #1dbb2e22;
}
.opcion-titulo {
  font-weight: bold;
  font-size: 1.05em;
  margin-bottom: 2px;
  display: block;
}
.opcion-desc {
  font-size: 0.97em;
  color: #222;
  display: block;
  margin-top: 2px;
  max-width: 340px;
}

.tactica-preferencias-defensa {
  border-color: #e84e9c;
}
.opcion-tactica-defensa.selected {
  border: 2.5px solid #e84e9c !important;
  background: #fde3f2 !important;
}
#btn-guardar-defensivas {
  background: #e84e9c;
  color: #fff;
  border: none;
}
#btn-guardar-defensivas:hover {
  filter: brightness(1.07);
}

/* --- CAPITÁN: botón y ficha --- */
.capitan-btn {
  display: inline-flex;
  align-items: center;
  background: #eee;
  color: #1565c0;
  border: 2px solid #b0bec5;
  border-radius: 6px;
  padding: 0.18em 0.7em 0.18em 0.5em;
  font-size: 0.96em;
  margin-left: 10px;
  margin-right: 2px;
  cursor: pointer;
  transition: background 0.2s, border 0.2s;
}
.capitan-btn .capitan-check {
  display: inline-block;
  margin-left: 4px;
  font-weight: bold;
  color: #2196f3;
  font-size: 1.1em;
}
.capitan-btn.selected {
  background: #2196f3;
  color: #fff;
  border-color: #1976d2;
}
.capitan-btn.selected .capitan-check {
  color: #fff;
}
.ficha-jugador-sim.capitan {
  border: 2.5px solid #2196f3 !important;
  box-shadow: 0 0 0 2px #90caf9;
}
.capitan-radio {
  accent-color: #2196f3;
  margin-right: 4px;
}
