
  .rotateMe {
    -webkit-transition: -webkit-transform 1s ease-out;
    -moz-transition: -moz-transform 1s ease-out;
    transition: transform 1s ease-out;
   }
   .rotateMe:hover {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    transform: rotate(360deg);
   }



/* ====== Reset & Layout ====== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif; color: #222; }
.container { max-width: 1100px; margin: 24px auto; padding: 0 16px; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }

/* ====== Titles ====== */
h1 { font-size: 1.6rem; margin: 0; }
h2 { font-size: 1.25rem; margin: 16px 0 8px; }

/* ====== Buttons / Links ====== */
a.accion, .btn {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid #d0d7de;
  background: #f6f8fa;
  color: #0b69c7;
  font-weight: 600;
  transition: transform 0.06s ease, background 0.2s ease, border-color 0.2s ease;
}
a.accion:hover, .btn:hover { background: #eef2f6; border-color: #b8c2cc; }
a.accion:active, .btn:active { transform: translateY(1px); }

/* Variantes */
.btn-primary { background: #0b69c7; color: #fff; border-color: #0b69c7; }
.btn-primary:hover { background: #095aa9; border-color: #095aa9; }
.btn-danger { background: #ffe5e5; color: #b00020; border-color: #ffbdbd; }
.btn-danger:hover { background: #ffdcdc; border-color: #ffb0b0; }

/* Enlaces “deshabilitados” que usamos para mensajes */
.disabled-action { color: #8f9aa6; cursor: not-allowed; text-decoration: none; }
.badge-alert {
  display: inline-block; padding: 4px 8px; border-radius: 6px;
  background: #ffe5e5; color: #d60000; border: 1px solid #d60000; font-weight: 700; font-size: 0.9rem;
}

/* ====== Tables ====== */
.table-wrap { overflow: auto; border-radius: 12px; border: 1px solid #e6e8eb; background: #fff; }
table.table { width: 100%; border-collapse: collapse; min-width: 760px; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid #eef1f4; }
.table th { text-align: left; background: #f8fafc; color: #415365; font-weight: 700; }
.table tbody tr:hover { background: #fafcff; }

/* Cols útiles */
.col-actions { white-space: nowrap; }

/* ====== Forms ====== */
form.form { display: grid; gap: 12px; max-width: 720px; }
.form .row { display: grid; gap: 12px; grid-template-columns: repeat(12, 1fr); }
.form label { font-weight: 600; color: #334155; }
.form input[type="text"],
.form input[type="date"],
.form input[type="time"],
.form input[type="number"],
.form select,
.form textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #414f5c;
  border-radius: 8px;
  background: #ffffff;
  outline: none;
}
.form textarea { min-height: 100px; resize: vertical; }
.form .actions { display: flex; gap: 8px; }

/* Helpers de columnas (usa lo que necesites) */
.col-12 { grid-column: span 12; }
.col-6  { grid-column: span 6; }
.col-4  { grid-column: span 4; }
.col-3  { grid-column: span 3; }
.col-2  { grid-column: span 2; }

/* ====== Alerts / Flash ====== */
.alert { padding: 10px 12px; border-radius: 8px; border: 1px solid; }
.alert-info { background: #e7f1ff; color: #084298; border-color: #b6d4fe; }
.alert-success { background: #e8f5e9; color: #1b5e20; border-color: #c8e6c9; }
.alert-error { background: #fdecea; color: #b3261e; border-color: #f5c2c0; }

/* ====== Footer ====== */
.footer { margin-top: 24px; font-size: 0.925rem; color: #637182; }


/* ====== Tema Futbol (aplícalo con .football en body o container) ====== */
:root{
  --fut-green-1:#0b8f2f;   /* verde cancha */
  --fut-green-2:#0a7e29;   /* verde oscuro */
  --fut-line:  #e6f5ea;    /* líneas de cancha */
  --fut-gray:  #415365;
  --fut-sky:   #f3faf6;
  --fut-shadow: 0 6px 20px rgba(0,0,0,.08);
}

/* Contenedor con ambiente de cancha */
.football .container{
  background: linear-gradient(180deg, #ffffff 0%, #f9fdfb 100%);
  border-radius: 16px;
  padding: 20px 16px;
  box-shadow: var(--fut-shadow);
}

/* Encabezado estilo marcador */
.football .header{
  padding: 8px 12px;
  border-left: 6px solid var(--fut-green-1);
  background: linear-gradient(90deg, var(--fut-sky), #ffffff);
  border-radius: 10px;
}

/* Botones */
.football .btn-primary{
  background: var(--fut-green-1);
  border-color: var(--fut-green-1);
}
.football .btn-primary:hover{
  background: var(--fut-green-2);
  border-color: var(--fut-green-2);
}

/* ====== Tabla con look de cancha ====== */
.football .table-wrap{
  border-radius: 14px;
  border: 1px solid #e6ece8;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--fut-shadow);
}

/* Cabecera: pasto con líneas */
.football table.table thead th{
  background:
    repeating-linear-gradient(
      90deg,
      var(--fut-green-1) 0 40px,
      var(--fut-green-2) 40px 80px
    );
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: none;
  position: sticky; top: 0; /* si hay overflow */
}

/* Celdas */
.football table.table{
  border-collapse: collapse;
}
.football .table th, 
.football .table td{
  padding: 12px 14px;
  border-bottom: 1px solid #eef2ef;
}

/* Filas alternas tipo franjas */
.football .table tbody tr:nth-child(odd){
  background: #fbfefc;
}
.football .table tbody tr:hover{
  background: #f3fbf6;
}

/* Columna marcador tipo “scoreboard” */
.football .table td.score{
  font-weight: 800;
  color: var(--fut-green-2);
  text-align: center;
  letter-spacing: .5px;
}

/* Equipos con baloncito sutil */
.football .team::before{
  content: "⚽";
  margin-right: 8px;
  opacity: .8;
}

/* Acciones compactas */
.football .col-actions a.accion{
  margin-right: 6px;
}

/* Aviso de día del partido (tu comportamiento existente) */
.disabled-action{
  color: #999;
  pointer-events: auto;   /* permite click para mostrar aviso */
  cursor: not-allowed;
  text-decoration: none;
  font-weight: 600;
  transition: all .2s ease-in-out;
}
.badge-alert{
  display: inline-block;
  padding: 4px 8px;
  background-color: #ffe5e5;
  color: #d60000;
  border: 1px solid #d60000;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 700;
}


/* ===== Tabla estilo SLATE (oscura elegante) ===== */
.theme-slate {
  --slate-bg: #0f172a;           /* fondo general oscuro (no puro negro) */
  --slate-bg-soft: #111827;      /* fondo celdas */
  --slate-head: #334155;         /* encabezado */
  --slate-text: #e5e7eb;         /* texto claro */
  --slate-text-dim: #cbd5e1;     /* texto tenue */
  --slate-border: #1f2937;       /* líneas */
  --slate-row-alt: #0b1222;      /* alternar filas */
  --slate-accent: #64748b;       /* detalle sutil */
}

.theme-slate body,
.theme-slate .container {
  background: #0b1020;
  color: var(--slate-text);
}

.theme-slate .table-wrap {
  background: var(--slate-bg);
  border: 1px solid var(--slate-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

/* Cabecera */
.table-slate thead th {
  background: var(--slate-head);
  color: var(--slate-text);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  border-bottom: 1px solid var(--slate-border);
}

/* Cuerpo */
.table-slate {
  width: 100%;
  border-collapse: collapse;
  color: var(--slate-text);
}
.table-slate th, .table-slate td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--slate-border);
  background: var(--slate-bg-soft);
}
.table-slate tbody tr:nth-child(odd) td {
  background: var(--slate-row-alt);
}
.table-slate tbody tr:hover td {
  background: #0f1a31;
}

/* Tipos de columnas útiles */
.table-slate .col-center { text-align: center; }
.table-slate .col-actions { white-space: nowrap; }
.table-slate .score {
  font-weight: 800;
  letter-spacing: .5px;
  text-align: center;
  color: var(--slate-text);
}

/* Título y subtítulo tipo la imagen */
.theme-slate .page-title {
  text-align: center;
  font-size: 1.9rem;
  margin: 8px 0 2px;
  color: var(--slate-text);
}
.theme-slate .page-subtitle {
  text-align: center;
  color: var(--slate-text-dim);
  margin-bottom: 18px;
}

/* Botones compatibles en oscuro */
.theme-slate .btn, .theme-slate .accion {
  background: #1f2937;
  border: 1px solid #374151;
  color: var(--slate-text);
}
.theme-slate .btn:hover, .theme-slate .accion:hover {
  background: #243042;
  border-color: #4b5563;
}

/* Mantén tu aviso de “Registrar Evento” */
.disabled-action{
  color:#9ca3af; cursor:not-allowed; text-decoration:none;
  transition: all .2s ease-in-out; font-weight:600;
}
.badge-alert{
  display:inline-block; padding:4px 8px; border-radius:6px;
  background:#ffe5e5; color:#d60000; border:1px solid #d60000;
  font-size:.9rem; font-weight:700;
}


/* ===== Formularios estilo Futbol ===== */
.form-futbol {
  background: linear-gradient(145deg, #0b8f2f 0%, #076622 100%);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  color: #fff;
  max-width: 700px;
  margin: 0 auto;
}

.form-futbol h1, 
.form-futbol h2 {
  text-align: center;
  margin-bottom: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fff;
}

.form-futbol label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #eaffea; /* un blanco con tinte verde */
}

.form-futbol input[type="text"],
.form-futbol input[type="date"],
.form-futbol input[type="time"],
.form-futbol input[type="number"],
.form-futbol select,
.form-futbol textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #fff;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 1rem;
  transition: border-color .2s ease, background .2s ease;
}

.form-futbol input:focus,
.form-futbol select:focus,
.form-futbol textarea:focus {
  border-color: #ffe600; /* amarillo balón */
  background: rgba(255,255,255,.2);
  outline: none;
}

/* ===== Placeholder más visible en el formulario futbol ===== */
.form-futbol input::placeholder,
.form-futbol textarea::placeholder {
  color: rgba(255, 255, 255, 0.80);  /* más blanco = más visible */
  opacity: 1;                        /* clave: en algunos navegadores baja la opacidad */
  font-weight: 600;
}

/* Opcional: cuando estás escribiendo (focus) */
.form-futbol input:focus::placeholder,
.form-futbol textarea:focus::placeholder {
  color: rgba(255, 230, 0, 0.85);    /* amarillo balón */
}

/* Compatibilidad extra (por si acaso) */
.form-futbol input::-webkit-input-placeholder,
.form-futbol textarea::-webkit-input-placeholder { color: rgba(255,255,255,.80); }
.form-futbol input:-ms-input-placeholder,
.form-futbol textarea:-ms-input-placeholder { color: rgba(255,255,255,.80); }


/* Botones estilo camiseta */
.form-futbol .btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all .2s ease-in-out;
  margin-right: 10px;
}
.form-futbol .btn-primary {
  background: #ffe600;
  color: #0a3d12;
}
.form-futbol .btn-primary:hover {
  background: #ffcc00;
}
.form-futbol .btn-secondary {
  background: #fff;
  color: #0a3d12;
}
.form-futbol .btn-secondary:hover {
  background: #f1f1f1;
}

/* Checkbox estilo casilla táctica */
.form-futbol input[type="checkbox"] {
  transform: scale(1.2);
  margin-right: 6px;
}


/* styles.css */
/* Tema futbol: aplica a todo lo que esté dentro de .football */
.football .container{max-width:1100px;margin:24px auto;padding:0 16px}
.football table{width:100%;border-collapse:collapse;min-width:760px}
.football thead th{
  background:linear-gradient(90deg,#0b8f2f,#0a7e29);
  color:#fff;text-transform:uppercase;letter-spacing:.5px
}
.football th,.football td{padding:12px 14px;border-bottom:1px solid #e6ece8}
.football tbody tr:nth-child(odd){background:#fbfefc}
.football tbody tr:hover{background:#f3fbf6}

.football form{display:grid;gap:12px;max-width:720px}
.football label{font-weight:600;color:#334155}
.football input[type="text"], .football input[type="date"],
.football input[type="time"], .football input[type="number"],
.football select, .football textarea{
  width:100%;padding:10px 12px;border:1px solid #d0d7de;border-radius:8px
}
.football .btn{display:inline-block;padding:8px 12px;border-radius:8px;text-decoration:none}
.football .btn-primary{background:#0b8f2f;color:#fff;border:1px solid #0b8f2f}
.football .btn-danger{background:#ffe5e5;color:#b00020;border:1px solid #ffbdbd}

/* Tu aviso existente */
.football .disabled-action{color:#8f9aa6;cursor:not-allowed;text-decoration:none}
.football .badge-alert{display:inline-block;padding:4px 8px;background:#ffe5e5;color:#d60000;border:1px solid #d60000;border-radius:6px;font-weight:700}

/* ===== Botones de acciones CRUD ===== */
.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-edit {
  background: #0b8f2f; /* verde cancha */
  color: #fff;
  border: 1px solid #0b8f2f;
}
.btn-edit:hover {
  background: #0a7e29;
  border-color: #0a7e29;
}

.btn-delete {
  background: #ffe5e5;
  color: #b00020;
  border: 1px solid #ffbdbd;
}
.btn-delete:hover {
  background: #ffd6d6;
  border-color: #ffaaaa;
}



.disabled-action {
  color: #999;
  pointer-events: auto;   /* permite el click para el aviso */
  cursor: not-allowed;
  text-decoration: none;
  font-weight: normal;
  transition: all 0.2s ease-in-out;
}

.badge-alert {
  display: inline-block;
  padding: 4px 8px;
  background-color: #ffe5e5;
  color: #d60000;
  border: 1px solid #d60000;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: bold;
}

.no-subdivisiones {
  color: #b00020;           /* rojo alerta */
  font-weight: 600;
  margin: 6px 0;
}

.no-subdivisiones { color:#b00020; font-weight:600; margin:6px 0; }
.actions { display:flex; gap:8px; margin-top:6px; }

/* Botones globales de acciones (ya los usas) */
.btn-action{ display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border-radius:6px;
  font-weight:600; font-size:.9rem; text-decoration:none; transition:all .2s ease; }
.btn-edit{ background:#0b8f2f; color:#fff; border:1px solid #0b8f2f; }
.btn-edit:hover{ background:#0a7e29; border-color:#0a7e29; }
.btn-primary{ background:#0b69c7; color:#fff; border:1px solid #0b69c7; }
.btn-primary:hover{ background:#f6f7f8; border-color:#095aa9; }


/* Barra superior del módulo */
.toolbar{
  display:flex;
  justify-content: space-between;
  align-items:center;
  margin: 8px 0 14px;
}

/* Tabla de partidos: distribución y alineación */
.table-partidos{
  table-layout: fixed;        /* columnas consistentes */
  width: 100%;
}
.table-partidos th,
.table-partidos td{
  vertical-align: middle;     /* centra verticalmente todo */
}

/* Anchos sugeridos por columna (ajústalos si lo ves necesario) */
.table-partidos th:nth-child(1),
.table-partidos td:nth-child(1){ width: 12%; }
.table-partidos th:nth-child(2),
.table-partidos td:nth-child(2){ width: 12%; }
.table-partidos th:nth-child(3),
.table-partidos td:nth-child(3){ width: 12%; }
.table-partidos th:nth-child(4),
.table-partidos td:nth-child(4){ width: 12%; }
.table-partidos th:nth-child(5),
.table-partidos td:nth-child(5){ width: 10%; }
.table-partidos th:nth-child(6),
.table-partidos td:nth-child(6){ width: 10%; }
.table-partidos th:nth-child(7),
.table-partidos td:nth-child(7){ width: 8%; }
.table-partidos th:nth-child(8),
.table-partidos td:nth-child(8){ width: 10%; }
.table-partidos th:nth-child(9),
.table-partidos td:nth-child(9){ width: 14%; }

/* Columna de acciones en una sola línea y centrada verticalmente */
.col-actions{
  white-space: nowrap;
}
.col-actions .btn-action{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 6px;
}

/* (Opcional) Ícono de baloncito a los nombres de equipos */
.team::before{
  content: "⚽";
  margin-right: 6px;
  opacity: .8;
}


/* Scroll horizontal para tablas grandes */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* para scroll suave en móviles */
}

.table-responsive .table {
  min-width: 1000px; /* asegura que si hay muchas columnas, se genere scroll */
}


/* Barra de navegación fija */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.95); /* azul oscuro con transparencia */
  color: #fff;
  padding: 0 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  z-index: 1000;
}

.navbar-left, .navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo img {
  height: 60px;
}

.navbar-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.navbar-menu {
  display: flex;
  gap: 16px;
}

.navbar-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.navbar-menu a:hover {
  color: #ffcc00; /* amarillo balón */
}

.navbar-icon {
  height: 32px;
  border-radius: 50%;
  filter: brightness(1.05);
  box-shadow: 0 0 10px 3px rgba(255, 255, 0, 0.4);
  transition: transform 0.8s ease-in-out, filter 0.3s ease, box-shadow 0.3s ease;
}

.navbar-icon:hover {
  transform: rotate(360deg);
  filter: brightness(1.3);
  box-shadow: 0 0 20px 6px rgba(255, 255, 0, 0.8);
}



/* Contenido con margen superior para que no se tape con la navbar */
.main-content {
  padding: 100px 20px 20px;
  text-align: center;
  color: #fff;
}


/* Hero mejor ajustado */
.hero {
  position: relative;
  height: clamp(300px, 40vw, 460px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* importante para centrar la imagen */
  filter: brightness(0.65); /* oscurece la imagen para dar contraste al texto */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 20px;
  color: #fff;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 10px;
  font-weight: 800;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 16px;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}


/* Sección equipos */
.equipos { margin: 30px 0; text-align: center; }
.equipos h2 { margin-bottom: 20px; }

.equipos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  justify-items: center;
}

.equipo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e6e8eb;
  border-radius: 12px;
  padding: 12px;
  transition: transform .2s, box-shadow .2s;
}
.equipo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
}
.equipo-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 8px;
}
.equipo-card span {
  font-weight: 600;
  color: #333;
}

/* Fondo blanco neutro */
body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, sans-serif;
  background: #ffffff; /* Blanco */
  color: #222;         /* Texto oscuro estándar */
}

/* Asegura contraste con navbar */
.navbar {
  background: #0b8f2f; /* Verde cancha */
  color: #fff;
}
.navbar-menu a {
  color: #fff;
}
.navbar-menu a:hover {
  color: #ffcc00; /* Amarillo balón */
}

/* Hero: hacemos que contraste con el fondo blanco */
.hero {

  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}


/* ====== Grid de equipos con tarjetas circulares ====== */
.equipos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 18px;
  justify-items: center;
}

/* Contenedor de cada equipo (círculo + nombre) */
.equipo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

/* Círculo del escudo */
.equipo-badge {
  width: 120px;
  aspect-ratio: 1 / 1;           /* asegura forma cuadrada responsiva */
  border-radius: 50%;            /* círculo */
  background: #fff;
  border: 2px solid #e6e8eb;
  box-shadow: 0 4px 14px rgba(0,0,0,.10);
  display: grid;
  place-items: center;
  transition: box-shadow .25s ease, transform .2s ease, border-color .2s ease;
  overflow: hidden;              /* oculta desbordes del logo */
}

/* El logo dentro del círculo */
.equipo-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* hace que rellene el círculo */
  border-radius: 50%; /* mantiene la forma redonda */
  transition: transform .8s ease;
}


/* Nombre debajo */
.equipo-name {
  font-weight: 700;
  font-size: .95rem;
  color: #333;
}

/* ====== Modos de hover ====== */
/* 1) Brillo */
.equipo-badge.hover-glow:hover {
  box-shadow: 0 0 20px 6px rgba(11,143,47,.28), 0 6px 18px rgba(0,0,0,.18);
  border-color: #bfe8cc; /* verde sutil */
  transform: translateY(-2px);
}

/* 2) Giro (el círculo queda fijo, gira el escudo) */
.equipo-badge.hover-spin:hover img {
  transform: rotate(360deg);
}

/* (opcional) Giro + brillo juntos */
.equipo-badge.hover-mix:hover {
  box-shadow: 0 0 20px 6px rgba(11,143,47,.28), 0 6px 18px rgba(0,0,0,.18);
  border-color: #bfe8cc;
  transform: translateY(-2px);
}
.equipo-badge.hover-mix:hover img {
  transform: rotate(360deg);
}


/* ===== Próximo partido (home) ===== */
.next-match {
  margin: 26px 0 8px;
}

.next-match__title {
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: 12px;
    text-align: center;

}
.next-match__card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 0px;
  background: linear-gradient(135deg, #0f172a 0%, #223449 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.20);
  overflow: hidden;
  z-index: 0; /* crea el contexto */
}

/* franja diagonal sutil, detrás del contenido */
.next-match__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0 48%,
    rgba(206, 14, 14, 0.7) 48%,
    rgba(188, 10, 10, 0.274) 52%,
    transparent 52% 100%
  );
  pointer-events: none;
  z-index: 0; /* detrás */
}

/* contenido de la tarjeta por encima de la franja */
.next-match__card > * {
  position: relative;
  z-index: 1;
}

.nm-side{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}
/* Círculo del escudo */
.nm-crest{
  width: 110px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid rgba(255,255,255,.15);
  box-shadow: 0 6px 20px rgba(255,255,255,.20);
  overflow: hidden;                /* recorta el logo dentro del círculo */
  display: grid;
  place-items: center;
}

/* El logo llena el círculo y puede girar */
.nm-crest img{
  width: 100%;
  height: 100%;
  object-fit: cover;               /* ocupa todo el círculo */
  border-radius: 50%;              /* mantiene forma redonda */
  transition: transform .8s ease;  /* animación suave */
}

/* Giro al hover */
.nm-side:hover .nm-crest img{
  transform: rotate(360deg) scale(1.03);
}

.nm-side:hover .nm-crest img{ transform: rotate(360deg); }

.nm-name{ font-weight:800; text-align:center; }

.nm-center{
  display:flex; flex-direction:column; align-items:center; gap:10px; padding:0 8px;
}
.nm-vs{
  font-weight:900; letter-spacing:.08em;
  border:2px solid rgba(255,255,255,.25);
  padding:6px 12px; border-radius:999px;
}
.nm-meta{
  display:flex; flex-direction:column; gap:4px; text-align:center;
  color:#e5e7eb; font-size:.95rem;
}
.nm-place{ opacity:.85; }

/* responsive */
@media (max-width: 720px){
  .next-match__card{ grid-template-columns: 1fr; text-align:center; }
  .nm-center{ order:-1; }
}


  /* Página de detalle del equipo */
.equipo-detalle {
  text-align: center;
  margin: 20px auto;
  max-width: 600px;
}

.equipo-detalle .escudo {
  width: 120px;          /* tamaño más pequeño */
  height: 120px;
  object-fit: contain;   /* mantiene proporción */
  border-radius: 50%;    /* opcional: círculo */
  border: 2px solid #e6e8eb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-bottom: 12px;
}

.equipo-detalle h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.equipo-detalle h3 {
  font-size: 1.2rem;
  margin: 15px 0 8px;
}

.equipo-detalle ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.equipo-detalle ul li {
  padding: 6px 0;
  border-bottom: 1px solid #e6e8eb;
  font-size: 0.95rem;
}


/* ===== Club header card ===== */
.club-card{
  display:flex; gap:16px; align-items:center;
  background:#fff; border:1px solid #e6e8eb; border-radius:12px;
  padding:14px; margin-bottom:16px;
}
.club-crest{
  width:96px; height:96px; border-radius:12px; display:grid; place-items:center;
  background:#f8fafc; border:1px solid #e6e8eb;
}
.club-crest img{ width:80%; height:80%; object-fit:contain; }
.club-meta{ display:grid; gap:6px; font-size:.95rem; }

/* ===== Panel boxes ===== */
.panel{
  background:#fff; border:1px solid #e6e8eb; border-radius:12px;
  padding:14px; margin:14px 0;
}
.panel h3{ margin:0 0 10px; }
.muted{ color:#637182; }

/* ===== Listas de partidos ===== */
.match-list{ list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.match-list li{
  display:flex; flex-direction:column; gap:4px;
  padding:10px; border:1px solid #eef1f4; border-radius:10px; background:#fbfdff;
}
.match-list .teams{ display:flex; justify-content:center; align-items:center; gap:10px; font-weight:800; }
.match-list .vs{
  padding:2px 8px; border:2px solid #cbd5e1; border-radius:999px; font-weight:900; letter-spacing:.08em;
}
.match-list .score{ font-weight:900; }

/* ===== Plantilla ===== */
.pos-title{ margin:12px 0 8px; color:#0b8f2f; letter-spacing:.03em; }
.squad{ display:grid; gap:8px; }
.player-row{
  display:grid; grid-template-columns: 60px 56px 1fr 60px 120px;
  align-items:center; gap:10px;
  border:1px solid #eef1f4; background:#fff; border-radius:10px; padding:8px 10px;
}
.player-row .num{
  font-weight:900; font-size:1.1rem; text-align:center;
  background:#0b8f2f; color:#fff; border-radius:8px; padding:6px 0;
}
.player-row .avatar{ width:56px; height:56px; border-radius:10px; overflow:hidden; background:#f1f5f9; display:grid; place-items:center; }
.player-row .avatar img{ width:100%; height:100%; object-fit:cover; }
.player-row .avatar-ph{ font-size:1.2rem; opacity:.6; }
.player-row .name{ font-weight:700; }
.player-row .age, .player-row .nat{ text-align:center; color:#334155; }

.player-header {
  display: grid;
  grid-template-columns: 60px 56px 1fr 60px 120px;
  font-weight: 800;
  text-align: center;
  background: #f1f5f9;
  border-radius: 8px;
  margin-bottom: 6px;
  padding: 6px 10px;
  color: #334155;
}
.player-header .pname { text-align: left; }

.muted{ color:#7a8aa0; }
.btn.btn-primary{ background:#16794f; color:#fff; }
.btn.btn-primary:hover{ filter:brightness(1.05); }


.table-wrap { overflow:auto; border-radius:12px; }
.table tbody tr:nth-child(odd){ background:#fafbfc; }
.table tbody tr:hover{ background:#f2f7ff; }
.table td:last-child{ font-weight:800; }

/* === Selects con alto contraste (aplica a formularios verdes y al tema football) === */
.form-futbol select,
.football select {
  background: #ffffff !important;     /* fondo claro */
  color: #1f2937 !important;          /* texto oscuro */
  border: 2px solid #0b8f2f !important;
  border-radius: 8px;
  padding: 10px 12px;
  appearance: auto;                   /* usamos flecha nativa para compatibilidad */
}

.form-futbol select:focus,
.football select:focus {
  outline: none;
  border-color: #0b8f2f;
  box-shadow: 0 0 0 3px rgba(11,143,47,.20); /* halo accesible */
}

/* Opciones del desplegable (soporta Firefox y la mayoría de Chromium) */
.form-futbol select option,
.football select option {
  background: #ffffff;                /* fondo de cada opción */
  color: #111827;                     /* texto legible */
}

/* Opción seleccionada dentro del menú */
.form-futbol select option:checked,
.football select option:checked {
  background: #0b8f2f;                /* verde cancha */
  color: #ffffff;
}

/* (Opcional) hover de opción: visible en Firefox y algunos Chromium */
.form-futbol select option:hover,
.football select option:hover {
  background: #eaf7ef;
}

.form-futbol label {
  color: #ffe600 !important;     /* amarillo balón */
}


/* ====== FORMULARIO ESTILO CANCHA ====== */
.form-futbol.pitch{
  position: relative;
  overflow: hidden;
  color: #fff;
  /* Pasto con leve textura y viñeta */
  background:
    radial-gradient(100% 140% at 50% 0%, rgba(0,0,0,.15), rgba(0,0,0,0)) ,
    repeating-linear-gradient(90deg, rgba(255,255,255,.028) 0 24px, rgba(255,255,255,0) 24px 48px),
    linear-gradient(145deg, #0b8f2f 0%, #076622 100%);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
}

/* capa de líneas de campo */
.form-futbol.pitch .pitch-lines{
  position: absolute;
  inset: 14px;               /* deja margen para el marco */
  z-index: 0;                /* detrás del contenido */
  pointer-events: none;
  /* Trazos principales: perímetro + media cancha */
  background:
    /* perímetro superior/inferior */
    linear-gradient(#e6f5ea,#e6f5ea) top/100% 2px no-repeat,
    linear-gradient(#e6f5ea,#e6f5ea) bottom/100% 2px no-repeat,
    /* perímetro laterales */
    linear-gradient(#e6f5ea,#e6f5ea) left/2px 100% no-repeat,
    linear-gradient(#e6f5ea,#e6f5ea) right/2px 100% no-repeat,
    /* línea media */
    linear-gradient(#e6f5ea,#e6f5ea) center/100% 2px no-repeat;
}

/* círculo central */
.form-futbol.pitch .pitch-lines .circle{
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 50%,
      transparent 0 44px,
      #e6f5ea 44px 46px,    /* anillo */
      transparent 46px);
}

/* áreas grandes izquierda/derecha */
.form-futbol.pitch .pitch-lines .box{
  position: absolute;
  top: 50%;
  width: 160px;              /* ancho del área */
  height: 200px;             /* alto del área */
  margin-top: -100px;        /* centra vertical */
  border: 2px solid #e6f5ea;
}
.form-futbol.pitch .pitch-lines .box.left{  left: 0; border-left: none; }
.form-futbol.pitch .pitch-lines .box.right{ right: 0; border-right: none; }

/* Contenido del formulario por encima de las líneas */
.form-futbol.pitch > *:not(.pitch-lines){
  position: relative;
  z-index: 1;
}

/* Legibilidad de labels y campos sobre verde */
.form-futbol.pitch label{
  color:#ffffff;             /* etiqueta blanca */
  text-shadow: 0 1px 0 rgba(0,0,0,.2);
}
.form-futbol.pitch input[type="text"],
.form-futbol.pitch input[type="date"],
.form-futbol.pitch input[type="time"],
.form-futbol.pitch input[type="number"],
.form-futbol.pitch select,
.form-futbol.pitch textarea{
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.85);
  color: #fff;
}
.form-futbol.pitch input:focus,
.form-futbol.pitch select:focus,
.form-futbol.pitch textarea:focus{
  border-color:#ffe600;      /* amarillo balón */
  background: rgba(255,255,255,.22);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,230,0,.25);
}

/* Botones tipo camiseta */
.form-futbol.pitch .btn-primary{
  background:#ffe600; color:#0a3d12;
  box-shadow: 0 6px 16px rgba(255,230,0,.35);
}
.form-futbol.pitch .btn-primary:hover{ background:#ffd100; }
.form-futbol.pitch .btn-secondary{ background:#ffffff; color:#0a3d12; }

/* Responsive: cuando el form es angosto, reduce radio del círculo */
@media (max-width: 560px){
  .form-futbol.pitch .pitch-lines .circle{
    background: radial-gradient(circle at 50% 50%,
      transparent 0 36px, #e6f5ea 36px 38px, transparent 38px);
  }
  .form-futbol.pitch .pitch-lines .box{
    width: 136px; height: 180px; margin-top:-90px;
  }
}

/* Mejora de contraste en selects (por si usas fondo claro en opciones) */
.form-futbol.pitch select{
  background:#ffffff; color:#1f2937; border-color:#0b8f2f;
}
.form-futbol.pitch select option{ background:#fff; color:#111827; }
.form-futbol.pitch select option:checked{ background:#0b8f2f; color:#fff; }


.navbar-menu a.active {
  color: #ffcc00;            /* amarillo balón */
  position: relative;
  font-weight: 700;
}
.navbar-menu a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -10px;   /* ajusta según tu navbar */
  height: 3px;
  background: #ffcc00;
  border-radius: 2px;
}


.btn-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0b8f2f; /* verde cancha */
  color: #fff;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 30px; /* redondeado tipo balón */
  border: 2px solid #fff;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}

.btn-home:hover {
  background: #095a22;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}

.btn-home:before {
  content: "⚽"; /* ícono de balón */
  font-size: 1.2rem;
}


.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0b8f2f;   /* verde cancha */
  color: #fff;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 30px;
  border: 2px solid #fff; /* borde blanco estilo línea de cancha */
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}

.btn-add:hover {
  background: #095a22;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}

.btn-add:before {
  content: "➕";   /* símbolo de agregar */
  font-size: 1.1rem;
}

.module-box {
  background: linear-gradient(180deg, #ffffff 0%, #f9fdfb 100%);
  border-radius: 16px;
  padding: 24px;
  margin: 20px 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  border: 1px solid #e6e8eb;
  position: relative;
  overflow: hidden;
}

/* líneas sutiles de cancha */
.module-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    repeating-linear-gradient(
      90deg,
      rgba(11,143,47,0.04) 0px,
      rgba(11,143,47,0.04) 1px,
      transparent 1px,
      transparent 80px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(11,143,47,0.04) 0px,
      rgba(11,143,47,0.04) 1px,
      transparent 1px,
      transparent 80px
    );
  pointer-events: none;
  z-index: 0;
}

/* contenido encima */
.module-box > * {
  position: relative;
  z-index: 1;
}


/* ===== Fondo futbolero discreto en el BODY (no afecta tablas) ===== */
body.fut-bg {
  /* base clara + leve viñeta para dar profundidad */
  background:
    radial-gradient(120% 80% at 50% -20%, rgba(0,0,0,.06) 0 60%, transparent 60%) ,
    linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
  position: relative;
  min-height: 100vh;
}

/* capa fija con “cancha” MUY sutil en los costados */
body.fut-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  /* dos patrones: franjas verticales y horizontales muy transparentes */
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(11,143,47,0.055) 0 1px,   /* línea sutil */
      transparent 1px 78px          /* espacio hasta la siguiente */
    ),
    repeating-linear-gradient(
      0deg,
      rgba(11,143,47,0.035) 0 1px,
      transparent 1px 78px
    );
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 0;
  /* atenuamos al centro para no competir con el contenido */
  mask: radial-gradient(70% 60% at 50% 45%, rgba(0,0,0,0) 0 55%, #000 60%);
}

/* Asegura que el contenido quede por encima del fondo fijo */
.navbar, .container, .module-box { position: relative; z-index: 1; }

/* (IMPORTANTE) Reafirma tu encabezado verde de tablas para que no se “apague” */
.table thead th,
.football table.table thead th {
  background:
    repeating-linear-gradient(
      90deg,
      #15803d 0 40px,   /* verde 1 */
      #0f6d31 40px 80px /* verde 2 */
    ) !important;
  color: #fff !important;
  border-bottom: none;
}


/* =================== PATROCINADORES =================== */
.sponsors {
  background: #ffffff;
  padding: 40px 0;
  overflow: hidden;
  text-align: center;
  position: relative;
  box-shadow: inset 0 6px 12px rgba(0,0,0,0.05);
}

.sponsors-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0b8f2f;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

/* Contenedor del carrusel */
.sponsors-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cinta que se desplaza */
.sponsors-track {
  display: flex;
  gap: 40px;
  animation: scrollSponsors 22s linear infinite;
}

.sponsors-track img {
  height: 90px;
  object-fit: contain;
  filter: brightness(0.95);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.sponsors-track img:hover {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* Animación infinita */
@keyframes scrollSponsors {
  0% { transform: translateX(0); }
  100% { transform: translateX(-70%); }
}

/* Evita que el carrusel se corte arriba o abajo */
.sponsors::before, .sponsors::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  pointer-events: none;
  z-index: 2;
}

.sponsors::before {
  left: 0;
  background: linear-gradient(to right, #ffffff 0%, rgba(255,255,255,0) 100%);
}
.sponsors::after {
  right: 0;
  background: linear-gradient(to left, #ffffff 0%, rgba(255,255,255,0) 100%);
}



/* ===== NAVBAR DESPLEGABLE ===== */
.navbar{
  position: sticky; top:0; z-index: 1000;
  display:flex; align-items:center; justify-content:space-between;
  background:#0f8b2d; color:#fff; padding:10px 16px;
}
.navbar-left{ display:flex; align-items:center; gap:10px; }
.navbar-logo img{ height:38px; display:block; }
.navbar-brand{ font-weight:800; letter-spacing:.5px; }

.navbar-right .navbar-icon{ height:28px; opacity:.9; }

.navbar-menu{
  display:flex; gap:18px; align-items:center;
}
.navbar-menu .navlink{
  color:#fff; text-decoration:none; font-weight:700;
  padding:8px 10px; border-radius:8px; transition:.15s ease;
}
.navbar-menu .navlink:hover{ background:rgba(255,255,255,.12); }
.navbar-menu .navlink.is-disabled{
  opacity:.45; pointer-events:none; filter:grayscale(60%);
}
.navbar-menu .admin-link{ white-space:nowrap; }

/* Hamburguesa */
.nav-toggle{
  display:none; background:transparent; border:none; cursor:pointer;
  width:42px; height:36px; position:relative; z-index:1001;
}
.nav-toggle span{
  position:absolute; left:8px; right:8px; height:3px; background:#fff; border-radius:2px;
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.nav-toggle span:nth-child(1){ top:10px; }
.nav-toggle span:nth-child(2){ top:16px; }
.nav-toggle span:nth-child(3){ top:22px; }
/* animación al abrir */
.nav-toggle[aria-expanded="true"] span:nth-child(1){ top:16px; transform:rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ top:16px; transform:rotate(-45deg); }

/* ===== Responsive ===== */
@media (max-width: 960px){
  .nav-toggle{ display:block; }
  .navbar-menu{
    position: fixed; inset: 64px 0 auto 0; /* debajo de la barra */
    display:block; background:#0f8b2d; border-top:1px solid rgba(255,255,255,.12);
    transform: translateY(-20px); opacity:0; pointer-events:none;
    transition: transform .2s ease, opacity .2s ease;
    padding:10px 14px;
  }
  .navbar-menu .navlink,
  .navbar-menu .navlink.is-disabled{
    display:block; padding:12px 10px; border-radius:10px; margin:6px 0;
    background:rgba(255,255,255,.06);
  }
  /* Estado abierto */
  .navbar-menu.is-open{
    transform: translateY(0); opacity:1; pointer-events:auto;
  }
}

/* ====== Ajuste de alineación navbar ====== */
header.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between; /* mantiene el espacio correcto */
  padding: 0 20px;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* centra mejor el menú horizontal */
.navbar-menu-inline {
  margin-left: auto;
  margin-right: 40px; /* puedes ajustar este valor */
  display: flex;
  gap: 18px;
  font-weight: 700;
  align-items: center;
}

/* botón de configuración */
.navbar-menu-inline .admin-link {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* quita margen excesivo en pantallas grandes */
@media (min-width: 1200px) {
  .navbar-menu-inline {
    margin-right: 60px;
  }
}


.navbar-right .navlink {
  background: #f2f2f2;
  color: #0a752f;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 30px;
  margin-left: 10px;
  box-shadow: inset 2px 2px 4px rgba(0,0,0,0.1),
              inset -2px -2px 4px rgba(255,255,255,0.8);
  transition: all 0.3s ease;
}

.navbar-right .navlink:hover {
  background: #0a752f;
  color: #fff;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}


/* ===== Badges (estatus) ===== */
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 9px;
  border-radius:999px;
  font-weight:800;
  font-size:.78rem;
  line-height:1;
  border:1px solid rgba(0,0,0,.10);
  box-shadow: 0 2px 6px rgba(0,0,0,.10);
  white-space: nowrap;
}

.badge-ok{
  background: rgba(20,160,70,.16);
  color:#0e6a2f;
  border-color: rgba(20,160,70,.35);
}
.badge-miss{
  background: rgba(120,130,140,.16);
  color:#415365;
  border-color: rgba(120,130,140,.35);
}
.badge-warn{
  background: rgba(255,200,0,.18);
  color:#7a5a00;
  border-color: rgba(255,200,0,.45);
}

.badge-dot{
  width:8px; height:8px;
  border-radius:50%;
  display:inline-block;
  background: currentColor;
  opacity:.85;
}

/* Contenedor de badges dentro de celda */
.docs-badges{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  max-width: 320px;
}

/* Acciones en una sola linea */
.acciones-row{
  display: flex;
  align-items: center;
  gap: 12px;            /* <-- separacion entre Editar y Desactivar */
  flex-wrap: nowrap;    /* <-- evita que baje el boton */
  white-space: nowrap;
}

.acciones-form{
  margin: 0;
  display: inline-flex;
}

/* Badge clickeable (link) */
.badge-link{
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
}
.badge-link:hover{
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.14);
}

/* Documentos en 2 filas (grid) */
.docs-grid{
  display: grid;
  grid-template-columns: repeat(1, max-content); /* 3 por fila */
  gap: 8px;
  align-items: start;
}
