/* Knights FC · negro principal, verde vivo de portero, fondo claro */
:root {
  --black: #0a0a0b;
  --black-2: #16171a;
  --line-dark: #2a2c2f;
  --bg: #f3f4f3;
  --surface: #ffffff;
  --ink: #0a0a0b;
  --mute: #5b5f5c;
  --line: #dcdedc;
  --green: #1fc44e;
  --green-ink: #0b7d40;
  --green-soft: #e3f6e9;
  --red: #b3261e;
  --red-soft: #fbe9e7;
  --amber-soft: #fff4d6;
  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: var(--green-ink); }
h1, h2, h3, h4 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--green-ink); outline-offset: 2px; }
.site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: var(--green); }
[hidden] { display: none !important; }

/* ---------- Encabezado ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--black); color: #fff; border-bottom: 1px solid var(--line-dark); }
.site-header .bar { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; text-decoration: none; }
.brand .shield { height: 42px; width: auto; }
.brand .word { height: 28px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.95rem; }
.nav a:not(.btn) { color: #fff; text-decoration: none; padding: 10px 6px; border-bottom: 3px solid transparent; white-space: nowrap; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { border-bottom-color: var(--green); }
.nav .btn { margin-left: 10px; white-space: nowrap; }
.nav-pub { display: flex; align-items: center; gap: 2px; }
.nav-acc { display: none !important; }
.nav-portal { display: none !important; }
.site-header .auth-link { flex: none; white-space: nowrap; }
@media (min-width: 1241px) { .nav .only-menu { display: none; } }
.menu-btn {
  display: none; margin-left: auto; width: 46px; height: 46px; padding: 0; flex: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: transparent; color: #fff; border: 0; border-radius: 4px; cursor: pointer;
}
.menu-btn .l { display: block; width: 22px; height: 2px; background: currentColor; transition: transform 0.2s, opacity 0.2s; }
.menu-btn[aria-expanded="true"] .l:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .l:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .l:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.subnav { background: var(--green); border-bottom: 1px solid var(--green-ink); }
.subnav .tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; }
.subnav a {
  display: inline-block; padding: 14px 14px 11px; color: #000; text-decoration: none; white-space: nowrap;
  font: 600 1rem var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 3px solid transparent;
}
.subnav a:hover { border-bottom-color: rgba(0, 0, 0, 0.45); }
.subnav a[aria-current="page"] { border-bottom-color: #000; }

@media (max-width: 1240px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 4px 20px 16px;
    background: var(--black-2); border-bottom: 1px solid var(--line-dark); font-size: 1.35rem;
  }
  .site-header.open .nav { display: flex; }
  .site-header .bar { gap: 10px; }
  .site-header .auth-link { margin-left: auto; min-height: 40px; padding: 0 12px; font-size: 0.85rem; }
  .menu-btn { margin-left: 0; width: 44px; height: 44px; }
  .site-header.logged .menu-btn { margin-left: auto; }
  .nav { text-align: right; }
  .acc-who { text-align: right; }
  /* Con sesión iniciada las secciones de la cuenta ya están en el menú desplegable */
  html.has-acc .subnav { display: none; }
  .nav { font-size: 1.05rem; max-height: calc(100vh - 67px); max-height: calc(100dvh - 67px); overflow-y: auto; padding: 2px 20px 14px; }
  .nav-pub { display: block; }
  .nav a:not(.btn) { display: block; padding: 11px 0; border-bottom: 1px solid var(--line-dark); }
  .nav-acc a:not(.btn)[aria-current="page"] { font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
  /* v1.5.4: menú de la cuenta en verde con letras negras */
  .site-header.private.has-acc .nav-acc { background: var(--green); color: #000; margin: 10px -20px 0; padding: 4px 20px 14px; }
  .nav-acc a:not(.btn) { color: #000; border-bottom-color: rgba(0, 0, 0, 0.22); }
  .nav-acc .acc-who { color: rgba(0, 0, 0, 0.7); }
  .nav-acc .acc-actions .btn { color: #000; border-color: #000; background: transparent; }
  .nav-acc .acc-actions .btn:not(.btn-ghost) { background: #000; color: #fff; border-color: #000; }
  .nav-acc .acc-actions .btn-ghost:hover { background: #000; color: #fff; }
  /* En las páginas privadas el menú muestra las opciones de la cuenta en lugar del menú público */
  .site-header.private.has-acc .nav-pub { display: none; }
  .site-header.private.has-acc .nav-acc { display: block !important; }
  .nav-acc[hidden] { display: none !important; }
  .site-header.logged .auth-link { display: none; }
  .site-header.logged .nav-portal { display: flex !important; margin: 14px 0 0; width: 100%; }
  .site-header.private.has-acc .nav-portal { display: none !important; }
  .acc-who { margin: 0; padding: 12px 0 6px; color: #9aa09a; font: 600 0.8rem var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; }
  .acc-actions { display: flex; gap: 10px; padding-top: 14px; }
  .acc-actions .btn { flex: 1; margin: 0; justify-content: center; color: #fff; border-color: #fff; }
  .acc-actions .btn:not(.btn-ghost) { background: var(--green); color: #000; border-color: var(--green); }
  .acc-actions .btn-ghost:hover { background: #fff; color: #000; }
  .brand .word { height: 26px; }
  .brand { gap: 8px; }
}
/* v1.5.3: el texto "Knights" ya no se oculta en móviles angostos (Android 360px); solo se compacta */
@media (max-width: 380px) {
  .brand { gap: 6px; }
  .brand .shield { height: 36px; }
  .brand .word { height: 22px; }
  .site-header .bar { gap: 6px; }
  .site-header .auth-link { padding: 0 9px; font-size: 0.8rem; }
  .menu-btn { width: 40px; }
}

/* ---------- Botones y piezas comunes ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border: 2px solid var(--black); background: var(--black); color: #fff; border-radius: 4px; cursor: pointer;
  font: 600 1rem var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; line-height: 1;
}
.btn:hover { filter: brightness(1.2); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; filter: none; }
.btn-green { background: var(--green); border-color: var(--green); color: #000; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--black); color: #fff; filter: none; }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--black); color: var(--green);
  font: 600 0.8rem var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
}
.badge.soft { background: var(--green-soft); color: var(--green-ink); }
.badge.warn { background: var(--amber-soft); color: #7a5600; }
.badge.bad { background: var(--red-soft); color: var(--red); }
.badge.plain { background: #ecefec; color: var(--ink); }
.muted { color: var(--mute); }
.small { font-size: 0.9rem; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row.between { justify-content: space-between; }
.stack { display: grid; gap: 16px; }
.alert { padding: 14px 16px; border-left: 4px solid var(--green); background: var(--surface); border-radius: 0 4px 4px 0; }
.alert.bad { border-color: var(--red); background: var(--red-soft); }
.alert.warn { border-color: #d49a00; background: var(--amber-soft); }
.loading, .empty { padding: 48px 20px; text-align: center; color: var(--mute); }
.empty { border: 2px dashed var(--line); border-radius: 6px; background: var(--surface); }
.empty strong { display: block; font: 700 1.5rem var(--font-display); text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }

.section { padding-block: clamp(36px, 6vw, 64px); }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section.dark { background: var(--black); color: #fff; }
.page-head { background: var(--black); color: #fff; padding-block: clamp(32px, 5vw, 56px); border-bottom: 4px solid var(--green); }
.page-head h1 { font-size: clamp(1.9rem, 7vw, 4.2rem); overflow-wrap: anywhere; }
.page-head p { margin: 10px 0 0; color: #c9ccca; max-width: 60ch; font-size: 1.1rem; }
.kicker { margin: 0 0 6px; color: var(--green-ink); font: 600 1rem var(--font-display); letter-spacing: 0.18em; text-transform: uppercase; }
.dark .kicker, .page-head .kicker { color: var(--green); }
.title { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.card-pad { padding: 20px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.grid > *, .stack > *, .row > * { min-width: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  min-height: 38px; padding: 0 16px; border: 2px solid var(--black); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer;
  font: 600 0.95rem var(--font-display); letter-spacing: 0.1em; text-transform: uppercase;
}
.chip[aria-pressed="true"] { background: var(--black); color: var(--green); }

/* ---------- Portada con fotos ---------- */
.hero { position: relative; background: var(--black); color: #fff; overflow: hidden; }
.hero-stage { position: relative; height: clamp(400px, 66vh, 620px); }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.7s ease, visibility 0.7s; display: flex; align-items: flex-end; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 10, 11, 0.92) 0%, rgba(10, 10, 11, 0.55) 38%, rgba(10, 10, 11, 0) 70%); }
.slide .caption { position: relative; z-index: 1; width: 100%; padding-block: 28px 64px; }
.slide .caption h2 { font-size: clamp(2rem, 6vw, 4rem); max-width: 18ch; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5); }
.slide .caption p { margin: 10px 0 18px; font-size: clamp(1.05rem, 2.4vw, 1.4rem); max-width: 40ch; color: #eceeed; }
.hero-ctrl { position: absolute; inset-inline: 0; bottom: 18px; z-index: 2; }
.hero-ctrl .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dots { display: flex; gap: 8px; }
.dots button { width: 34px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: rgba(255, 255, 255, 0.4); cursor: pointer; }
.dots button[aria-current="true"] { background: var(--green); }
.arrows { display: flex; gap: 8px; }
.arrows button { width: 44px; height: 44px; border: 2px solid #fff; border-radius: 50%; background: rgba(0, 0, 0, 0.35); color: #fff; font-size: 1.3rem; cursor: pointer; line-height: 1; }
.arrows button:hover { background: var(--green); border-color: var(--green); color: #000; }
.hero-empty { padding: 80px 0; }
.hero-empty h1 { font-size: clamp(2.4rem, 8vw, 5rem); }

/* ---------- Partidos ---------- */
.match { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) auto; align-items: center; gap: 10px 24px; padding: 18px 22px; border-top: 1px solid var(--line); background: var(--surface); }
.match:first-child { border-top: 0; }
.match .when { display: flex; flex-direction: column; min-width: 0; }
.match .day { color: var(--mute); font: 600 0.95rem var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; }
.match .hour { font: 700 2.3rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.match .teams { min-width: 0; }
.match .team { display: flex; justify-content: space-between; gap: 16px; max-width: 22rem; margin: 0; color: var(--mute); font: 700 1.5rem/1.25 var(--font-display); text-transform: uppercase; }
.match .team.us { color: var(--ink); }
.match .team .s { font-variant-numeric: tabular-nums; }
.match .venue { margin: 6px 0 0; font-size: 0.92rem; color: var(--mute); }
.match .state { justify-self: end; }
.box-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; padding: 20px 22px; background: var(--black); color: #fff; }
.box-head h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
.box-head .kicker { color: var(--green); margin: 0 0 2px; }
.record { display: flex; flex-wrap: wrap; gap: 8px; }
.record span { padding: 4px 12px; border: 1px solid #3a3d40; border-radius: 4px; font: 600 1rem var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; }
.record b { color: var(--green); font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  .match { grid-template-columns: minmax(0, 1fr) auto; padding: 16px; }
  .match .when { flex-direction: row; align-items: baseline; gap: 12px; }
  .match .hour { font-size: 1.9rem; }
  .match .teams { grid-column: 1 / -1; }
  .match .team { max-width: none; }
}

/* ---------- Jugadores y cuerpo técnico ---------- */
.pcard { cursor: pointer; text-align: left; padding: 0; width: 100%; font: inherit; color: inherit; }
.pcard .photo { position: relative; aspect-ratio: 4 / 5; background: var(--black-2); overflow: hidden; }
.pcard .photo img { width: 100%; height: 100%; object-fit: cover; }
.pcard .ph-empty { position: absolute; inset: 0; display: grid; place-items: center; }
.pcard .ph-empty img { width: 38%; height: auto; opacity: 0.35; object-fit: contain; }
.pcard .num { position: absolute; top: 10px; left: 10px; min-width: 42px; padding: 4px 8px; background: var(--green); color: #000; font: 700 1.4rem/1 var(--font-display); text-align: center; border-radius: 3px; }
.pcard .info { padding: 14px 16px 16px; display: grid; gap: 6px; }
.pcard h3 { font-size: 1.5rem; }
.pcard .role { color: var(--green-ink); font: 600 0.95rem var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; }
.school { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; color: var(--mute); }
.school img { width: 24px; height: 24px; object-fit: contain; flex: none; }
.pcard .bio { font-size: 0.92rem; color: var(--mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }

/* ---------- Equipaciones ---------- */
.kit { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.kit .art { background: #e9ece9; display: grid; place-items: center; padding: 24px; }
.kit .art img { max-height: 520px; width: auto; }
.kit .body { padding: 28px; display: grid; gap: 14px; align-content: start; }
.kit h3 { font-size: 2rem; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 6px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.9rem; }
.swatch i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid #00000033; background: var(--c, #999); }
.features { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.features li { position: relative; padding-left: 26px; }
.features li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 14px; height: 3px; background: var(--green); }
@media (max-width: 760px) { .kit { grid-template-columns: minmax(0, 1fr); } .kit .art img { max-height: 380px; } }

/* ---------- Torneos, palmarés, calendario ---------- */
.t-head { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.t-head img { width: 56px; height: 56px; object-fit: contain; }
.t-head h3 { font-size: 1.9rem; }
.trophy .art { aspect-ratio: 4 / 3; background: var(--black-2); display: grid; place-items: center; overflow: hidden; }
.trophy .art img { width: 100%; height: 100%; object-fit: cover; }
.trophy .art svg { width: 38%; height: auto; color: var(--green); }
.trophy .info { padding: 16px; display: grid; gap: 6px; }
.trophy h3 { font-size: 1.5rem; }
.month { margin: 28px 0 10px; font: 700 1.5rem var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; color: var(--green-ink); }
.event { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--surface); }
.event:first-child { border-top: 0; }
.event .d { text-align: center; font-family: var(--font-display); text-transform: uppercase; line-height: 1; }
.event .d b { display: block; font-size: 2.2rem; }
.event .d span { font-size: 0.95rem; letter-spacing: 0.1em; color: var(--mute); }
.event h3 { font-size: 1.35rem; }
.event p { margin: 2px 0 0; font-size: 0.92rem; color: var(--mute); }
@media (max-width: 560px) { .event { grid-template-columns: 3.4rem minmax(0, 1fr); } .event .badge { grid-column: 2; justify-self: start; } }

/* ---------- Formularios ---------- */
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field .lbl { font: 600 0.95rem var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; }
.field .req { color: var(--red); }
.field input:not([type="checkbox"]):not([type="file"]), .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 2px solid #b9bdb9; border-radius: 4px; background: #fff; color: var(--ink); font: inherit;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--black); outline: 3px solid #1fc44e66; outline-offset: 0; }
.field .hint { font-size: 0.85rem; color: var(--mute); }
.check { display: flex; gap: 10px; align-items: flex-start; font: 400 1rem var(--font-body) !important; letter-spacing: 0 !important; text-transform: none !important; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--green-ink); }
.imgfield { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.imgfield img { width: 84px; height: 84px; object-fit: cover; border-radius: 6px; background: var(--black-2); border: 1px solid var(--line); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--red); font-weight: 500; min-height: 1.4em; }

/* ---------- Diálogos y avisos ---------- */
dialog.modal { border: 0; border-radius: 8px; padding: 0; width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45); }
dialog.modal::backdrop { background: rgba(0, 0, 0, 0.62); }
.modal-form { display: flex; flex-direction: column; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
.modal-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; background: var(--black); color: #fff; }
.modal-head h2 { font-size: 1.7rem; }
.modal-x { width: 40px; height: 40px; border: 1px solid #3a3d40; border-radius: 4px; background: transparent; color: #fff; font-size: 1.3rem; cursor: pointer; }
.modal-body { padding: 22px; overflow-y: auto; display: grid; gap: 16px; }
.modal-foot { flex: none; padding-bottom: max(14px, env(safe-area-inset-bottom)) !important; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-items: center; padding: 14px 22px; border-top: 1px solid var(--line); background: #f7f8f7; }
.modal-foot .form-error { margin-right: auto; }
.toasts { position: fixed; inset-inline: 0; bottom: 18px; z-index: 100; display: grid; gap: 8px; justify-items: center; pointer-events: none; padding-inline: 16px; }
.toast { max-width: 520px; padding: 12px 18px; background: var(--black); color: #fff; border-left: 5px solid var(--green); border-radius: 4px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); pointer-events: auto; }
.toast.bad { border-left-color: #ff6b5e; }

/* ---------- Portal privado ---------- */
.seg { display: inline-flex; border: 2px solid var(--black); border-radius: 4px; overflow: hidden; }
.seg button { min-height: 38px; padding: 0 14px; border: 0; background: #fff; color: var(--ink); cursor: pointer; font: 600 0.9rem var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; }
.seg button + button { border-left: 2px solid var(--black); }
.seg button[aria-pressed="true"].yes { background: var(--green); color: #000; }
.seg button[aria-pressed="true"].no { background: var(--black); color: #fff; }
.seg button:disabled { opacity: 0.5; cursor: not-allowed; }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; display: grid; gap: 12px; }
.item.cancelled { opacity: 0.7; }
.item h3 { font-size: 1.6rem; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--mute); font-size: 0.95rem; }
.meta b { color: var(--ink); font-weight: 600; }
.resp { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px dashed var(--line); }
.cost { display: inline-flex; flex-direction: column; padding: 8px 14px; background: var(--black); color: #fff; border-radius: 4px; }
.cost small { color: var(--green); font: 600 0.8rem var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; }
.cost strong { font: 700 1.7rem/1 var(--font-display); }
.meter { height: 8px; background: #e3e6e3; border-radius: 4px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--green); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
table.tbl { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.tbl th { text-align: left; padding: 10px 14px; background: var(--black); color: #fff; font: 600 0.9rem var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.tbl select { min-height: 38px; border: 2px solid #b9bdb9; border-radius: 4px; padding: 0 8px; background: #fff; }
.tbl td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl tbody tr:hover { background: #f7f8f7; }
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.stat b { display: block; font: 700 2.4rem/1 var(--font-display); }
.stat span { color: var(--mute); font: 600 0.9rem var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Pie ---------- */
.site-footer { background: var(--black); color: #c9ccca; margin-top: auto; border-top: 4px solid var(--green); }
.site-footer .cols { display: grid; gap: 28px 40px; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); padding-block: 40px 20px; }
.site-footer h4 { color: #fff; font-size: 1.1rem; letter-spacing: 0.14em; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: #c9ccca; text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.site-footer .brand { margin-bottom: 12px; }
.site-footer .credit { margin: 0; padding-block: 16px 24px; border-top: 1px solid var(--line-dark); font-size: 0.9rem; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
  .menu-btn .l { transition: none; }
}

/* ---------- Torneos próximos, galería, patrocinadores (v1.2.0) ---------- */
.tcard { display: grid; gap: 12px; padding: 20px; align-content: start; }
.tcard .t-top { display: flex; gap: 14px; align-items: center; }
.tcard .t-top img { width: 56px; height: 56px; object-fit: contain; flex: none; }
.tcard h3 { font-size: 1.7rem; }
.tcard .btn { justify-self: start; }
.t-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.match-photos { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 22px 16px; background: var(--surface); }
.match-photos button { padding: 0; border: 0; border-radius: 4px; overflow: hidden; cursor: zoom-in; width: 88px; height: 66px; background: var(--black-2); }
.match-photos img { width: 100%; height: 100%; object-fit: cover; }
.gal { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.gal figure { margin: 0; position: relative; }
.gal button { display: block; width: 100%; padding: 0; border: 0; border-radius: 6px; overflow: hidden; cursor: zoom-in; background: var(--black-2); aspect-ratio: 4 / 3; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gal button:hover img { transform: scale(1.04); }
.gal figcaption { padding: 6px 2px 0; font-size: 0.9rem; color: var(--mute); }
.gal figcaption b { color: var(--ink); font-weight: 600; display: block; }
.gal .lock { position: absolute; top: 8px; left: 8px; z-index: 1; }
dialog.lightbox { border: 0; padding: 0; background: transparent; width: 100vw; height: 100vh; max-width: none; max-height: none; color: #fff; }
dialog.lightbox::backdrop { background: rgba(0, 0, 0, 0.9); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 56px 16px 24px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.lightbox figcaption { text-align: center; max-width: 70ch; }
.lb-x, .lb-n { position: absolute; z-index: 2; width: 48px; height: 48px; border: 2px solid #fff; border-radius: 50%; background: rgba(0, 0, 0, 0.5); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lb-x { top: 12px; right: 12px; }
.lb-n { top: 50%; transform: translateY(-50%); }
.lb-n.prev { left: 12px; } .lb-n.next { right: 12px; }
.lb-x:hover, .lb-n:hover { background: var(--green); border-color: var(--green); color: #000; }

.sponsors { background: #fff; border-top: 1px solid var(--line); }
.sponsors .logos { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 28px 48px; }
.sponsors .logo, .sponsors .logos a, .sponsors .track a { display: grid; place-items: center; height: 84px; min-width: 120px; }
.sponsors img { max-height: 84px; max-width: 200px; width: auto; object-fit: contain; }
.sponsors .marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.sponsors .track { display: flex; width: max-content; gap: 56px; padding-inline: 28px; animation: marquee var(--dur, 30s) linear infinite; }
.sponsors .marquee:hover .track, .sponsors .marquee:focus-within .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .sponsors .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .sponsors .track { animation: none; }
  .sponsors .track [aria-hidden="true"] { display: none; }
}
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.thumb { display: grid; gap: 4px; font-size: 0.85rem; }
.thumb img { width: 92px; height: 70px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.thumb .check { display: flex; gap: 6px; align-items: center; }

/* ---------- Móvil: ventanas y tablas sin botones fuera de vista (v1.3.2) ---------- */
@media (max-width: 640px) {
  dialog.modal { width: calc(100vw - 16px); margin: 8px auto auto; }
  .modal-body { padding: 16px; }
  .modal-foot { padding-inline: 16px; }
  .modal-foot .btn { flex: 1 1 0; }
}
@media (max-width: 720px) {
  .tbl-wrap:has(.tbl-cards) { border: 0; background: transparent; overflow: visible; }
  .tbl-cards, .tbl-cards tbody, .tbl-cards tr, .tbl-cards td { display: block; width: 100%; }
  .tbl-cards thead { display: none; }
  .tbl-cards tr { margin-bottom: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
  .tbl-cards td { border: 0; padding: 4px 0; white-space: normal !important; }
  .tbl-cards td::before { content: attr(data-label); display: block; font: 600 0.78rem var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
  .tbl-cards td[data-label=""]::before { display: none; }
  .tbl-cards td:last-child { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
  .tbl-cards td:last-child .btn { flex: 1 1 auto; }
  .tbl-cards select { width: 100%; }
  .tbl-cards tbody tr:hover { background: var(--surface); }
}
@media (max-width: 720px) { .tbl-cards td:not([data-label=""]):last-child { flex-direction: column; align-items: stretch; } }
@media (max-width: 720px) { .subnav .tabs { flex-wrap: wrap; overflow: visible; } .subnav .tabs a { padding-block: 8px; } }
