/*
  Parents League — Jugadores Web (prototipo Meta 3 v4 nav)
  Paleta Marketing: Navy #00183C · Blanco #FCFCFC · Dorado #F0A818
  Verde #00843C · Lima #C8F010 (texto sobre lima = negro)
  Banner: 6 fotos reales Tomás (2026-09-26)
*/

:root {
  --navy: #00183C;
  --navy-deep: #000e24;
  --navy-card: #0a2448;
  --navy-elevated: #123058;
  --white: #FCFCFC;
  --text: #FCFCFC;
  --text-muted: #9aadc4;
  --lime: #C8F010;
  --lime-dim: #a8c80e;
  --lime-glow: rgba(200, 240, 16, 0.35);
  --gold: #F0A818;
  --green-logo: #00843C;
  --on-lime: #000000;
  --border: rgba(200, 240, 16, 0.2);
  --border-soft: rgba(252, 252, 252, 0.08);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --max: 960px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: Impact, Haettenschweiler, "Arial Narrow Bold", "Segoe UI Black", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--navy-deep);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(200, 240, 16, 0.07), transparent 55%),
    radial-gradient(ellipse 50% 35% at 100% 25%, rgba(240, 168, 24, 0.06), transparent 50%),
    radial-gradient(ellipse 40% 30% at 0% 60%, rgba(0, 132, 60, 0.08), transparent 50%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 45%, #000a18 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--lime);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Banner prototipo */
.banner-proto {
  background: var(--lime);
  color: var(--on-lime);
  text-align: center;
  font-size: 0.75rem;
  padding: 0.45rem 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  /* The header is the persistent mobile chrome; let this notice scroll away. */
  position: static;
  z-index: auto;
}

/* Header */
.site-header {
  background: rgba(0, 24, 60, 0.94);
  border-bottom: 1px solid var(--border-soft);
  /* Keep the hamburger available after the prototype banner scrolls away. */
  position: sticky;
  top: 0;
  z-index: 200;
  /* backdrop-filter creates a containing block for fixed descendants on iOS.
     The drawer must be fixed to the viewport, not clipped to this header. */
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--white);
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.brand-link {
  display: flex;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-link:hover { text-decoration: none; }

.nav-toggle {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 8px;
  background: var(--navy-elevated);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  cursor: pointer;
  z-index: 120;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--lime);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  display: none;
  flex-direction: column;
  gap: 0;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 86vw);
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  background: rgba(0, 14, 36, 0.98);
  border-left: 1px solid var(--border);
  padding: 4.5rem 1rem 1.5rem;
  z-index: 110;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.nav.is-open { display: flex; }

.nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  border-bottom: 1px solid var(--border-soft);
}

.nav a:last-child { border-bottom: none; }

.nav a:hover,
.nav a.is-active {
  color: var(--lime);
  text-decoration: none;
  background: rgba(200, 240, 16, 0.08);
}

/* Backdrop is always reset when the menu closes; it is clickable to dismiss. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  /* Below the sticky header's stacking context; the panel remains clickable. */
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open::before {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

/* Desktop: inline nav, hide hamburger */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.15rem 0.35rem;
    width: auto;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
    height: auto;
    max-height: none;
  }
  .nav a {
    display: block;
    min-height: 0;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.35rem 0.45rem;
    border-bottom: none;
    border-radius: 6px;
    white-space: nowrap;
  }
  body.nav-open { overflow: auto; }
  body::before { display: none; }
}

/* Mobile touch targets and CTA layout. The primary action gets its own row;
   secondary actions remain easy to scan and tap on narrow screens. */
@media (max-width: 899px) {
  body {
    /* Keep phone copy comfortably readable without making small screens overflow. */
    font-size: clamp(16px, 4.35vw, 17px);
  }

  .nav {
    padding-top: calc(4.5rem + env(safe-area-inset-top));
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }

  .cta-strip {
    gap: 0.65rem;
    padding: 1.15rem;
  }

  .cta-strip .btn {
    min-height: 48px;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }

  .cta-strip .btn-lime {
    flex: 1 1 100%;
  }

  .cta-strip .btn-ghost {
    flex: 1 1 calc(50% - 0.65rem);
  }
}

/* Main */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

main > section:not(.hero-banner) {
  margin-left: 1rem;
  margin-right: 1rem;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.section-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

.section-note {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--lime);
  color: var(--on-lime);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  transform: skewX(-4deg);
}

/* ========== Hero Meta 3 v2: carrusel + strip fotos Tomás ========== */
.hero-banner {
  position: relative;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  min-height: 280px;
  height: clamp(280px, 52vw, 380px);
  border: none;
  box-shadow: none;
  background: var(--navy-deep);
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-slide:nth-child(1) img { object-position: center 55%; }
.hero-slide:nth-child(2) img { object-position: center 35%; }
.hero-slide:nth-child(3) img { object-position: center 40%; }
.hero-slide:nth-child(4) img { object-position: center 25%; }
.hero-slide:nth-child(5) img { object-position: center 30%; }
.hero-slide:nth-child(6) img { object-position: center 35%; }

/* Strip collage under overlay (desktop accent) — hidden on small, visible as bottom ribbon on larger */
.hero-collage-strip {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  z-index: 2;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  opacity: 0.95;
  pointer-events: none;
  border-top: 2px solid var(--lime);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}

.hero-collage-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1rem 2.5rem;
  background:
    linear-gradient(180deg, rgba(0, 24, 60, 0.72) 0%, rgba(0, 14, 36, 0.55) 40%, rgba(0, 24, 60, 0.88) 100%),
    linear-gradient(90deg, rgba(0, 24, 60, 0.5) 0%, transparent 35%, transparent 65%, rgba(0, 24, 60, 0.5) 100%);
  z-index: 3;
}

.hero-badge-row {
  margin-bottom: 0.5rem;
}

.hero-season {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
  border: 1px solid rgba(200, 240, 16, 0.45);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 24, 60, 0.45);
}

.hero-overlay h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 5.5vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
}

.hero-overlay p {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 22rem;
}

.hero-pill {
  display: inline-block;
  background: var(--lime);
  color: var(--on-lime);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.95rem;
  border-radius: 4px;
  transform: skewX(-6deg);
  box-shadow: 0 0 24px var(--lime-glow);
}

.hero-pill span {
  display: inline-block;
  transform: skewX(6deg);
}

.hero-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
  width: min(100%, 25rem);
  margin-top: 0.7rem;
  padding: 0.5rem 0.65rem 0.55rem;
  background: rgba(0, 14, 36, 0.88);
  border: 1px solid rgba(200, 240, 16, 0.5);
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(200, 240, 16, 0.14);
}

.hero-countdown-label {
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-countdown-text {
  color: var(--lime);
  font-size: clamp(1rem, 4.5vw, 1.35rem);
  line-height: 1.12;
  text-align: center;
}

.hero-countdown-clock {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  gap: clamp(0.12rem, 1.5vw, 0.35rem);
}

.hero-countdown-unit {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  max-width: 4.2rem;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
}

.hero-countdown-value {
  display: grid;
  width: 100%;
  min-height: 2.25rem;
  place-items: center;
  padding: 0.32rem 0.15rem 0.22rem;
  color: var(--white);
  background: rgba(5, 31, 66, 0.95);
  border: 1px solid rgba(200, 240, 16, 0.38);
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 7vw, 2rem);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  line-height: 1;
}

.hero-countdown-unit-label {
  color: var(--text-muted);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.hero-countdown-separator {
  padding-top: 0.45rem;
  color: var(--lime);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 6vw, 1.8rem);
  font-weight: 900;
  line-height: 1;
}

.hero-countdown-context {
  color: var(--white);
  font-size: 0.68rem;
  line-height: 1.2;
}

.hero-dots {
  display: flex;
  gap: 0.4rem;
  margin-top: 1rem;
  justify-content: center;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(252, 252, 252, 0.5);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.hero-dot.is-active {
  background: var(--lime);
  border-color: var(--lime);
  transform: scale(1.2);
}

.hero-dot:hover {
  border-color: var(--lime);
}

@media (min-width: 560px) {
  .hero-banner {
    margin: 0 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    height: 360px;
    min-height: 360px;
  }
  .hero-collage-strip {
    display: grid;
  }
  .hero-overlay {
    padding-bottom: 4.25rem;
  }
}

@media (min-width: 720px) {
  .hero-banner {
    height: 400px;
    min-height: 400px;
  }
}

/* Fixtures */
.copa-block {
  margin-bottom: 1.25rem;
}

.copa-block:last-child {
  margin-bottom: 0;
}

.copa-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin: 0 0 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.copa-icon {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}

.copa-label--oro .copa-icon { color: #f0a818; }
.copa-label--plata .copa-icon { color: #c5cdd8; }
.copa-label--bronce .copa-icon { color: #cd7f32; }

/* Text always white; metal color only on icon */
.copa-block .copa-label,
.copa-block:nth-child(2) .copa-label,
.copa-block:nth-child(3) .copa-label,
.copa-block:nth-child(4) .copa-label {
  color: var(--white);
}

.match-card {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.5rem 0.75rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-soft);
}

.match-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.match-hora {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--lime);
  background: rgba(200, 240, 16, 0.1);
  text-align: center;
  padding: 0.35rem 0.25rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.match-teams {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--white);
  min-width: 0;
}

.match-teams > span:first-child,
.match-teams > span:last-child {
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 42%;
}

.match-vs {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  flex-shrink: 0;
}

/* Resultados / tablas grupos */
.grupos-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .grupos-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.grupo-card {
  background: var(--navy-elevated);
  border-radius: 8px;
  padding: 0.75rem;
  border: 1px solid var(--border-soft);
}

.grupo-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  text-align: left;
  padding: 0.4rem 0.25rem;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
}

th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 600;
}

td.pts,
th.pts {
  text-align: right;
  font-weight: 800;
  width: 2.5rem;
  color: var(--lime);
}

tr:last-child td {
  border-bottom: none;
}

.pos {
  color: var(--text-muted);
  width: 1.5rem;
  font-size: 0.8rem;
}

/* Goleadores */
.goleadores-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.goleadores-list li {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border-soft);
}

.goleadores-list li:last-child {
  border-bottom: none;
}

.gol-pos {
  font-weight: 800;
  color: var(--lime);
  font-size: 0.9rem;
}

.gol-name {
  font-weight: 600;
  color: var(--white);
}

.gol-equipo {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

.gol-goles {
  font-weight: 800;
  font-size: 1.1rem;
  min-width: 2rem;
  text-align: right;
  color: var(--lime);
}

/* Bracket semis */
.bracket-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .bracket-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.bracket-copa {
  background: var(--navy-elevated);
  border-radius: 8px;
  padding: 0.75rem;
  border: 1px solid var(--border-soft);
}

.bracket-copa:nth-child(1) {
  border-color: rgba(240, 168, 24, 0.5);
}
.bracket-copa:nth-child(1) h3 { color: var(--gold); }

.bracket-copa:nth-child(2) {
  border-color: rgba(192, 200, 212, 0.35);
}
.bracket-copa:nth-child(2) h3 { color: #c0c8d4; }

.bracket-copa:nth-child(3) {
  border-color: rgba(205, 127, 50, 0.45);
}
.bracket-copa:nth-child(3) h3 { color: #cd7f32; }

.bracket-copa h3 {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
}

.bracket-match {
  background: var(--navy-card);
  border-radius: 6px;
  padding: 0.5rem 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  border: 1px solid var(--border-soft);
}

.bracket-match:last-child {
  margin-bottom: 0;
}

.bracket-hora {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--lime);
  margin-bottom: 0.25rem;
}

.bracket-team {
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 0.25rem;
  padding: 0.15rem 0;
  color: var(--white);
}

.seed {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Footer */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-soft);
}

.site-footer p {
  margin: 0.25rem 0;
}

.site-footer strong {
  color: var(--white);
}

.site-footer .accent-line {
  display: inline-block;
  width: 2.5rem;
  height: 3px;
  background: linear-gradient(90deg, var(--lime), var(--gold), var(--green-logo));
  border-radius: 2px;
  margin: 0.5rem 0 0.75rem;
}

/* ========== Meta 3 v3: CTAs, galería, QR, hubs equipo ========== */
.brand-link {
  display: flex;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-link:hover { text-decoration: none; }

.cta-strip,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: 0 1rem;
}

.cta-strip {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-lime {
  background: var(--lime);
  color: var(--on-lime);
  box-shadow: 0 0 20px var(--lime-glow);
}
.btn-lime:hover { background: var(--lime-dim); color: var(--on-lime); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.75rem; }

.page-hero {
  margin-left: 1rem;
  margin-right: 1rem;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.page-hero .section-title { margin-bottom: 0.35rem; }
.page-hero .cta-row { margin: 1rem 0 0; justify-content: flex-start; }

.nosotros-photo {
  margin: 1rem 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}
.nosotros-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 35%;
}
.page-hero .nosotros-photo + .pending-banner {
  margin-top: 1rem;
}


/* Upload */
.upload-form { display: flex; flex-direction: column; gap: 0.85rem; }
.upload-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.75rem 1rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: rgba(200, 240, 16, 0.05);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}
.upload-drop:hover,
.upload-drop:focus-within {
  border-color: var(--lime);
  background: rgba(200, 240, 16, 0.1);
}
.upload-icon { font-size: 1.75rem; }
.upload-label { font-weight: 800; color: var(--white); }
.upload-hint { font-size: 0.8rem; color: var(--text-muted); }
.form-row { display: flex; flex-direction: column; gap: 0.35rem; }
.form-row label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.form-row input,
.form-row select {
  background: var(--navy-elevated);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  color: var(--white);
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
  font-family: var(--font);
}
.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--lime);
}
.upload-status { margin: 0; font-size: 0.85rem; color: var(--lime); min-height: 1.25rem; }
.upload-status.is-error { color: #ff8a8a; }

.gallery-toolbar { margin-bottom: 0.75rem; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}
@media (min-width: 560px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
.gal-card {
  margin: 0;
  background: var(--navy-elevated);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.gal-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--navy-deep);
}
.gal-card figcaption {
  padding: 0.5rem 0.6rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.gal-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(0, 132, 60, 0.35);
  color: var(--lime);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  margin-bottom: 0.15rem;
}
.gal-badge-local {
  background: rgba(240, 168, 24, 0.25);
  color: var(--gold);
}
.gal-title { font-size: 0.8rem; font-weight: 600; color: var(--white); }
.gal-team { font-size: 0.7rem; color: var(--text-muted); }

/* Fotos hubs (browse-only) */
.fotos-matchday-note {
  margin-top: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-left: 3px solid var(--lime);
  background: rgba(200, 240, 16, 0.08);
  border-radius: 0 8px 8px 0;
}
.fotos-hubs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .fotos-hubs-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .fotos-hubs-grid { grid-template-columns: repeat(4, 1fr); }
}
.fotos-hub-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--navy-elevated);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.15s;
}
.fotos-hub-card:hover {
  border-color: var(--lime);
  transform: translateY(-2px);
}
.fotos-hub-thumb {
  aspect-ratio: 16 / 10;
  background: var(--navy-deep);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fotos-hub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fotos-hub-thumb-empty {
  font-size: 1.75rem;
  opacity: 0.55;
  background: linear-gradient(145deg, rgba(200,240,16,0.08), rgba(0,132,60,0.12));
}
.fotos-hub-body {
  padding: 0.65rem 0.75rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.fotos-hub-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--white);
}
.fotos-hub-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.fotos-empty {
  grid-column: 1 / -1;
  padding: 1.25rem 1rem;
  background: var(--navy-elevated);
  border: 1px dashed var(--border);
  border-radius: 10px;
  text-align: center;
}
.fotos-empty p { margin: 0.35rem 0; }

/* Lightbox — fotos seed / equipo */
.gal-card--clickable {
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.gal-card--clickable:hover,
.gal-card--clickable:focus-visible {
  border-color: var(--lime);
  outline: none;
  transform: translateY(-1px);
}
.gal-card--clickable:focus-visible {
  box-shadow: 0 0 0 2px rgba(200, 240, 16, 0.45);
}
body.pl-lightbox-open { overflow: hidden; }
.pl-lightbox {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.pl-lightbox.is-open { display: flex; }
.pl-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 8, 24, 0.88);
  cursor: pointer;
}
.pl-lightbox-panel {
  position: relative;
  z-index: 1;
  max-width: min(960px, 100%);
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  background: var(--navy-elevated, #0a1f44);
  border: 1px solid var(--border-soft, rgba(255,255,255,0.12));
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
}
.pl-lightbox-close {
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.pl-lightbox-close:hover,
.pl-lightbox-close:focus-visible {
  background: var(--lime, #C8F010);
  color: #00183C;
  outline: none;
}
.pl-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  width: auto;
  height: auto;
  object-fit: contain;
  background: #000;
  margin: 0 auto;
}
.pl-lightbox-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-soft, rgba(255,255,255,0.12));
}
.pl-lightbox-caption {
  margin: 0;
  flex: 1 1 12rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white, #FCFCFC);
}
.pl-lightbox-download {
  flex: 0 0 auto;
  text-decoration: none;
}

.token-error {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 80, 80, 0.12);
  border: 1px solid rgba(255, 120, 120, 0.35);
  border-radius: 10px;
}
.token-error strong { color: #ff8a8a; }
.token-error p { margin: 0.5rem 0 0; color: var(--text-muted); }


/* Equipos list */
.grupo-block { margin-bottom: 1.25rem; }
.grupo-block:last-child { margin-bottom: 0; }
.grupo-heading {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lime);
}
.equipos-grid {
  display: grid;
  gap: 0.6rem;
}
@media (min-width: 560px) {
  .equipos-grid { grid-template-columns: 1fr 1fr; }
}
.equipo-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  background: var(--navy-elevated);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  color: var(--white);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.equipo-card:hover {
  border-color: var(--lime);
  text-decoration: none;
  transform: translateY(-1px);
  color: var(--white);
}
.eq-name { font-weight: 800; font-size: 1rem; }
.eq-meta { font-size: 0.75rem; color: var(--text-muted); }
.eq-cta { font-size: 0.75rem; font-weight: 700; color: var(--lime); margin-top: 0.25rem; }

/* Equipo hub */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.stat-pill {
  flex: 1 1 5rem;
  background: var(--navy-elevated);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  text-align: center;
}
.stat-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--lime);
  letter-spacing: 0.04em;
}
.contact-box {
  background: var(--navy-elevated);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}

/* QR printable */
.qr-page {
  display: flex;
  justify-content: center;
  padding: 1rem 0 2rem;
}
.qr-card {
  margin: 0 1rem;
  max-width: 420px;
  width: 100%;
  background: var(--white);
  color: var(--navy);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 3px solid var(--lime);
}
.qr-card .section-title {
  color: var(--navy);
  text-shadow: none;
  margin-top: 0.5rem;
}
.qr-logo {
  margin: 0 auto;
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.qr-tagline {
  margin: 0 0 1rem;
  font-weight: 700;
  color: var(--green-logo);
  font-size: 0.9rem;
}
.qrcode-box {
  display: flex;
  justify-content: center;
  margin: 0 auto 0.75rem;
  padding: 0.75rem;
  background: var(--white);
}
.qrcode-box img,
.qrcode-box canvas {
  display: block;
  margin: 0 auto;
}
.qr-url {
  font-size: 0.7rem;
  word-break: break-all;
  color: #334;
  margin: 0 0 0.5rem;
  font-family: ui-monospace, monospace;
}
.qr-note { color: #445 !important; }
.qr-card .cta-row { margin-top: 1rem; }

@media print {
  .no-print,
  .banner-proto,
  .site-header,
  .site-footer { display: none !important; }
  body {
    background: #fff !important;
    background-image: none !important;
  }
  .qr-page { padding: 0; }
  .qr-card {
    border: 3px solid #00183C;
    box-shadow: none;
    margin: 0 auto;
    max-width: 100%;
  }
}


/* ========== Nav rebuild Meta 3 v4 + pages ========== */
.pending-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: rgba(240, 168, 24, 0.12);
  border: 1px solid rgba(240, 168, 24, 0.45);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.85rem;
  line-height: 1.45;
}
.pending-banner strong { color: var(--white); }

.equipo-card-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(200, 240, 16, 0.08), rgba(0, 132, 60, 0.12)),
    var(--navy-deep);
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
}
.equipo-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.equipo-card.has-photo {
  padding: 0;
  overflow: hidden;
}
.equipo-card.has-photo .eq-body {
  padding: 0.75rem 0.9rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.eq-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.35rem 0 0.15rem;
}
.eq-chip {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: rgba(200, 240, 16, 0.12);
  color: var(--lime);
}
.eq-chip-muted {
  background: rgba(252, 252, 252, 0.06);
  color: var(--text-muted);
}
.eq-chip-gold {
  background: rgba(240, 168, 24, 0.18);
  color: var(--gold);
}

.stats-grid-placeholder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.stat-placeholder {
  background: var(--navy-elevated);
  border: 1px dashed rgba(240, 168, 24, 0.35);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  text-align: center;
}
.stat-placeholder .stat-label { color: var(--gold); }
.stat-placeholder .stat-value {
  font-size: 0.85rem;
  font-family: var(--font);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0;
  text-transform: none;
}

/* Sponsors */
.sponsors-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 560px) {
  .sponsors-grid { grid-template-columns: repeat(3, 1fr); }
}
.sponsor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 1rem;
  background: var(--navy-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  text-align: center;
  min-height: 160px;
}
.sponsor-card img {
  max-height: 72px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
}
.sponsor-name {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--white);
  margin: 0;
}
.sponsor-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

/* Nosotros / Contacto */
.story-block {
  margin-bottom: 1.25rem;
}
.story-block:last-child { margin-bottom: 0; }
.story-block h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.story-block p {
  margin: 0 0 0.65rem;
  color: var(--text);
  font-size: 0.95rem;
}
.story-placeholder {
  color: var(--text-muted);
  font-style: italic;
  border-left: 3px solid var(--gold);
  padding-left: 0.75rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--lime);
  padding: 0.85rem 1.1rem;
  background: var(--navy-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 0.5rem 0 1rem;
}
.contact-email:hover {
  text-decoration: none;
  border-color: var(--lime);
  box-shadow: 0 0 16px var(--lime-glow);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  justify-content: center;
  margin: 0.75rem 0;
  font-size: 0.8rem;
}
.footer-nav a { color: var(--text-muted); }
.footer-nav a:hover { color: var(--lime); text-decoration: none; }

/* —— Resultados (Meta 3) —— */
.seasons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 0 1rem 1.5rem;
}
@media (min-width: 560px) {
  .seasons-grid { grid-template-columns: 1fr 1fr; }
}
.season-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem 1.2rem;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.season-card:hover {
  border-color: var(--lime);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  color: inherit;
}
.season-card-hot {
  border-color: rgba(200, 240, 16, 0.45);
  background: linear-gradient(160deg, var(--navy-card) 0%, rgba(200, 240, 16, 0.08) 100%);
}
.season-card-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lime);
}
.season-card-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
}
.season-card-status {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.35;
}
.season-card-status.is-pending { color: var(--gold); }
.season-card-status.is-completo { color: var(--green); }
.season-card-status.is-parcial { color: var(--gold); }
.season-card-cta {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--lime);
}

.resultados-block {
  margin: 0 1rem 1.5rem;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1rem 1.15rem;
  box-shadow: var(--shadow);
}
.resultados-block .copa-label { margin-top: 0; }
.resultados-block .pending-banner { margin: 0.75rem 0; }
.resultados-block .table-wrap { margin: 0; }

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--navy-card);
}
.resultados-block .table-wrap { border: none; background: transparent; }

.resultados-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.resultados-table th,
.resultados-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
.resultados-table th {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--lime);
  background: rgba(200, 240, 16, 0.06);
}
.resultados-table tbody tr:last-child td { border-bottom: none; }
.resultados-table tbody tr:hover td { background: rgba(200, 240, 16, 0.04); }
.resultados-table .is-placeholder td {
  color: var(--text-muted);
  font-style: italic;
}
.res-score {
  display: inline-block;
  font-weight: 800;
  color: var(--white);
  background: rgba(200, 240, 16, 0.15);
  border: 1px solid rgba(200, 240, 16, 0.35);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-right: 0.35rem;
  white-space: nowrap;
}
.res-out {
  font-size: 0.8rem;
  color: var(--lime);
  font-weight: 600;
}
.crumb {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
}
.crumb a { color: var(--lime); font-weight: 600; }

#resultados .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 0;
}



/* Premiaciones (Otoño 2025+) */
.premiaciones-block .premiaciones-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.premiaciones-list li {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(240, 168, 24, 0.25);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--white);
  line-height: 1.4;
}
.premiaciones-list li strong {
  color: var(--gold);
}
.res-pen {
  color: var(--gold);
  font-size: 0.9em;
}

/* Home resultados: no fecha row; hide empty labels on mobile */
@media (max-width: 640px) {
  .resultados-table--home td:nth-child(1)::before,
  .resultados-table--home td:nth-child(2)::before {
    display: none;
  }
  .resultados-table--home td:nth-child(1),
  .resultados-table--home td:nth-child(2) {
    padding-left: 0.85rem;
    font-weight: 700;
  }
}

/* Simple results layout: winner | score | loser */
.resultados-table {
  table-layout: auto;
}
.resultados-table th,
.resultados-table td {
  vertical-align: middle;
}
.resultados-table th:nth-child(1),
.resultados-table td:nth-child(1),
.resultados-table th:nth-child(3),
.resultados-table td:nth-child(3) {
  width: auto;
}
.resultados-table th:nth-child(2),
.resultados-table td:nth-child(2) {
  width: auto;
  text-align: center;
  white-space: nowrap;
}
.resultados-table th:first-child,
.resultados-table td:first-child {
  text-align: left;
}
.resultados-table th:last-child,
.resultados-table td:last-child {
  text-align: right;
}
.result-team {
  font-weight: 700;
  overflow-wrap: normal;
  word-break: keep-all;
  white-space: normal;
  font-size: 0.85rem;
  line-height: 1.25;
  hyphens: none;
}
.result-team--winner {
  color: var(--white);
}
.result-team--loser {
  color: var(--text-muted);
  font-weight: 600;
}
.resultados-table .is-draw .result-team {
  color: var(--white);
  font-weight: 600;
}
.result-score-cell {
  white-space: nowrap;
}
.result-score-cell .res-score {
  margin-right: 0;
}
.jornada-label {
  margin: 1rem 0 0.45rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.resultados-group:first-of-type .jornada-label {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.resultados-group .table-wrap {
  border: 0;
  background: transparent;
}

/* Mobile: abandon table layout (grid-on-tr is buggy) → flex rows */
@media (max-width: 640px) {
  .resultados-table {
    display: block;
    width: 100%;
    table-layout: auto;
  }
  .resultados-table thead {
    display: flex;
    width: 100%;
    background: rgba(200, 240, 16, 0.06);
  }
  .resultados-table thead tr {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.5rem;
  }
  .resultados-table thead th {
    display: block;
    border: 0;
    padding: 0;
    background: transparent;
    font-size: 0.65rem;
  }
  .resultados-table thead th:nth-child(1),
  .resultados-table thead th:nth-child(3) {
    flex: 1 1 0;
    width: auto;
  }
  .resultados-table thead th:nth-child(2) {
    flex: 0 0 auto;
    width: auto;
    min-width: 3.6rem;
    text-align: center;
  }
  .resultados-table thead th:last-child {
    text-align: right;
  }
  .resultados-table tbody {
    display: block;
    width: 100%;
  }
  .resultados-table tbody tr {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 0.5rem;
    border-bottom: 1px solid var(--border-soft);
    box-sizing: border-box;
  }
  .resultados-table tbody tr:last-child {
    border-bottom: none;
  }
  .resultados-table tbody td {
    display: block;
    border: 0;
    padding: 0;
    width: auto;
    min-width: 0;
    box-sizing: border-box;
  }
  .resultados-table tbody td::before {
    display: none !important;
  }
  .resultados-table tbody td:nth-child(1),
  .resultados-table tbody td:nth-child(3) {
    flex: 1 1 0;
    width: auto;
  }
  .resultados-table tbody td:nth-child(2) {
    flex: 0 0 auto;
    width: auto;
    min-width: 3.6rem;
    text-align: center;
  }
  .resultados-table tbody td:nth-child(1) {
    text-align: left;
  }
  .resultados-table tbody td:nth-child(3) {
    text-align: right;
  }
  .result-team {
    font-size: 0.78rem;
    line-height: 1.3;
    overflow-wrap: normal;
    word-break: keep-all;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    hyphens: none;
  }
  .result-score-cell {
    white-space: nowrap;
  }
  .resultados-table .res-score {
    font-size: 0.78rem;
    padding: 0.28rem 0.45rem;
    margin: 0;
  }
  .resultados-table .is-placeholder {
    display: block;
  }
  .resultados-table .is-placeholder td {
    flex: 1 1 100%;
    text-align: center;
  }
  .resultados-block .table-wrap,
  #resultados .table-wrap {
    overflow-x: visible;
  }
}

/* ========== Nosotros — Sobre la Parents League ========== */
.sobre-pl .sobre-lead {
  margin: 0.5rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4.2vw, 1.75rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--lime);
  line-height: 1.2;
}

.sobre-body {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  max-width: 38rem;
}

.pl-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin: 1.25rem 0 0;
}

.pl-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, var(--navy-elevated) 0%, rgba(0, 14, 36, 0.55) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 0.5rem 0.95rem;
  box-shadow: 0 0 0 1px rgba(200, 240, 16, 0.04);
  min-height: 6.5rem;
}

.pl-stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 9vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--lime);
  text-shadow: 0 0 28px var(--lime-glow);
  font-variant-numeric: tabular-nums;
}

.pl-stat-label {
  margin-top: 0.45rem;
  font-size: clamp(0.65rem, 2.4vw, 0.8rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Full-bleed community carousel (escape main card chrome) */
main > section.comunidad-section {
  margin-left: 0;
  margin-right: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.comunidad-head {
  margin: 0 1rem 0.65rem;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}

.pl-carousel {
  position: relative;
  margin: 0;
}

.pl-carousel-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 1rem 0.85rem;
  scrollbar-width: thin;
  scrollbar-color: var(--lime) transparent;
}

.pl-carousel-track::-webkit-scrollbar { height: 6px; }
.pl-carousel-track::-webkit-scrollbar-thumb {
  background: rgba(200, 240, 16, 0.45);
  border-radius: 999px;
}

.pl-carousel-slide {
  flex: 0 0 auto;
  width: min(78vw, 320px);
  margin: 0;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: var(--shadow);
}

.pl-carousel-slide--wide {
  width: min(92vw, 520px);
}

.pl-carousel-slide img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
}

.pl-carousel-slide--wide img {
  object-fit: contain;
  background: #000;
  height: 220px;
}

.pl-carousel-hint {
  display: none;
  margin: 0 0 0.25rem;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 559px) {
  .pl-carousel-hint { display: block; }
  .pl-carousel-slide { width: min(85vw, 300px); }
  .pl-carousel-slide img,
  .pl-carousel-slide--wide img { height: 200px; }
}

@media (min-width: 560px) {
  .pl-carousel-slide { width: min(42vw, 340px); }
  .pl-carousel-slide img,
  .pl-carousel-slide--wide img { height: 240px; }
  .pl-carousel-slide--wide { width: min(55vw, 560px); }
}

@media (min-width: 900px) {
  .pl-stats { gap: 1rem; }
  .pl-stat { min-height: 7.5rem; padding: 1.35rem 0.75rem 1.15rem; }
  .pl-carousel-slide { width: 300px; }
  .pl-carousel-slide--wide { width: 480px; }
  .pl-carousel-slide img,
  .pl-carousel-slide--wide img { height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  .pl-carousel-track { scroll-behavior: auto; }
}

/* Team logos (escudos) — inline next to name */
.team-logo {
  display: inline-block;
  object-fit: contain;
  object-position: center;
  background: transparent;
  flex-shrink: 0;
  vertical-align: middle;
}
.team-logo--sm {
  width: 28px;
  height: 28px;
}
.team-logo--md {
  width: 40px;
  height: 40px;
}
.team-logo--lg {
  width: 56px;
  height: 56px;
}

.team-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  max-width: 100%;
  vertical-align: middle;
}
.team-label-text {
  min-width: 0;
  overflow: visible;
  text-overflow: unset;
  white-space: nowrap;
}
.team-label--md .team-logo { width: 40px; height: 40px; }
.team-label--lg .team-logo { width: 56px; height: 56px; }
.team-label--lg .team-label-text {
  font-weight: 800;
  font-size: 1.15rem;
}

/* Match rows: logos + full names (no ellipsis truncation) */
.match-teams {
  flex-wrap: wrap;
  row-gap: 0.25rem;
}
.match-teams > span:first-child,
.match-teams > span:last-child,
.match-teams > .team-label {
  max-width: none;
  overflow: visible;
  text-overflow: unset;
  white-space: nowrap;
  flex: 0 1 auto;
}

/* Results / group tables */
.result-team .team-label,
td .team-label,
.gol-equipo.team-label {
  gap: 0.3rem;
}
.result-team .team-logo,
td .team-logo--sm,
.gol-equipo .team-logo {
  width: 24px;
  height: 24px;
}
.gol-equipo.team-label {
  display: inline-flex;
  margin-top: 0.15rem;
}
.gol-equipo .team-label-text {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  white-space: nowrap;
}

/* Equipo cards / fotos hubs */
.eq-name.team-label,
.eq-name .team-label {
  gap: 0.5rem;
}
.equipo-card .team-logo--md,
.fotos-hub-name .team-logo--md {
  width: 40px;
  height: 40px;
}
.fotos-hub-name.team-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: inherit;
}
.page-hero .team-label--lg {
  display: inline-flex;
  margin: 0.15rem 0;
}

/* Narrow phones: slightly smaller inline logos, keep names intact */
@media (max-width: 380px) {
  .team-logo--sm,
  .result-team .team-logo,
  td .team-logo--sm,
  .gol-equipo .team-logo {
    width: 22px;
    height: 22px;
  }
  .match-teams {
    gap: 0.3rem;
  }
}

/* Compact match/result rows: keep both teams and the score on one line. */
.match-card {
  grid-template-columns: minmax(4.25rem, 4.5rem) minmax(0, 1fr);
}
.match-hora {
  white-space: nowrap;
}
.match-teams {
  flex-wrap: nowrap;
  gap: 0.3rem;
  min-width: 0;
  font-size: 0.84rem;
  line-height: 1.2;
}
.match-teams > span:first-child,
.match-teams > span:last-child,
.match-teams > .team-label {
  flex: 0 1 auto;
  min-width: 0;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}
.match-teams .team-label {
  gap: 0.25rem;
}
.match-teams .team-logo,
.match-teams .team-logo--sm {
  width: 20px;
  height: 20px;
}
.match-teams .team-label-text {
  font-size: inherit;
  white-space: nowrap;
}

/* Results tables use compact names and never wrap team cells on phones. */
.result-team {
  white-space: nowrap;
  font-size: 0.82rem;
}
.result-team .team-label {
  max-width: 100%;
  gap: 0.25rem;
}
.result-team .team-label-text {
  white-space: nowrap;
  font-size: inherit;
}

@media (max-width: 640px) {
  .match-teams {
    gap: 0.22rem;
    font-size: clamp(0.69rem, 3.2vw, 0.75rem);
  }
  .match-teams .team-label {
    gap: 0.2rem;
  }
  .match-teams .team-logo,
  .match-teams .team-logo--sm {
    width: 19px;
    height: 19px;
  }
  .result-team {
    font-size: clamp(0.68rem, 3vw, 0.74rem);
    white-space: nowrap;
  }
  .result-team .team-logo,
  .result-team .team-logo--sm {
    width: 19px;
    height: 19px;
  }
  .resultados-table tbody td:nth-child(1),
  .resultados-table tbody td:nth-child(3) {
    min-width: 0;
  }
}

/* Match-row layout v2: names never intrude into the centered score. */
.resultados-table {
  table-layout: fixed;
}
.resultados-table th:nth-child(1),
.resultados-table td:nth-child(1),
.resultados-table th:nth-child(3),
.resultados-table td:nth-child(3) {
  width: 40%;
  min-width: 0;
}
.resultados-table th:nth-child(2),
.resultados-table td:nth-child(2) {
  width: 20%;
  min-width: 6.25rem;
  text-align: center;
  white-space: nowrap;
}
.result-team {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.result-team .team-label {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  gap: 0.25rem;
}
.result-team .team-logo {
  flex: 0 0 auto;
}
.result-team .team-label-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.result-team--loser .team-label {
  justify-content: flex-end;
}

/* Fixtures use the same bounded flex cells; truncate only if compact labels fail. */
.match-teams > span:not(.match-vs) {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-teams > .team-label {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  overflow: hidden;
}
.match-teams > .match-vs {
  flex: 0 0 auto;
  min-width: max-content;
}
.match-teams .team-label-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Standings: the separator belongs to the full row, not enhanced name cells. */
.grupo-card tbody tr {
  border-bottom: 1px solid var(--border-soft);
}
.grupo-card tbody tr:last-child {
  border-bottom: none;
}
.grupo-card tbody td,
.grupo-card tbody tr:last-child td {
  border-bottom: 0;
}
.grupo-card td.team-label {
  display: table-cell;
  max-width: none;
  overflow: visible;
  vertical-align: middle;
}

@media (max-width: 640px) {
  .resultados-table th:nth-child(1),
  .resultados-table td:nth-child(1),
  .resultados-table th:nth-child(3),
  .resultados-table td:nth-child(3) {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }
  .resultados-table th:nth-child(2),
  .resultados-table td:nth-child(2) {
    flex: 0 0 5.25rem;
    width: 5.25rem;
    min-width: 5.25rem;
  }
  .result-team {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .result-team .team-label {
    min-width: 0;
    max-width: 100%;
  }
}

/* Static home result cells carry data-team on the TD itself; keep them table cells. */
.result-team.team-label {
  display: table-cell;
  width: auto;
  max-width: 100%;
  overflow: hidden;
  vertical-align: middle;
}
.result-team.team-label > .team-logo {
  vertical-align: middle;
}
.result-team.team-label > .team-label-text {
  display: inline-block;
  max-width: calc(100% - 2rem);
  vertical-align: middle;
}
@media (max-width: 640px) {
  .resultados-table tbody td.result-team.team-label {
    display: block;
  }
  .result-team.team-label > .team-label-text {
    max-width: calc(100% - 1.7rem);
  }
}

/* ===== Subida directa de fotos (subir.html · admin-fotos.html) — 2026-10-01 ===== */
.su-main { max-width: 640px; margin: 0 auto; padding: 1rem 1rem 2rem; }
.su-step { background: var(--navy-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow); }
.su-step[hidden] { display: none !important; }
.su-title { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.02em; text-transform: uppercase; margin: 0 0 0.25rem; color: var(--white); line-height: 1.1; }
.su-title em { color: var(--lime); font-style: normal; }
.su-sub { margin: 0 0 1rem; color: var(--text-muted); font-size: 0.95rem; }
.su-teams { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
@media (min-width: 520px) { .su-teams { grid-template-columns: repeat(4, 1fr); } }
.su-team { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 112px; padding: 0.6rem 0.35rem; background: var(--navy-elevated); border: 2px solid var(--border-soft);
  border-radius: var(--radius); color: var(--white); font: 700 0.78rem/1.15 var(--font); text-align: center; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: border-color .15s, transform .1s, background .15s; }
.su-team img { width: 60px; height: 60px; object-fit: contain; }
.su-team:active { transform: scale(0.97); }
.su-team:hover, .su-team:focus-visible { border-color: var(--lime); outline: none; background: #16386a; }
.su-chosen { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 1rem; }
.su-chosen img { width: 56px; height: 56px; object-fit: contain; }
.su-chosen strong { display: block; font-size: 1.15rem; color: var(--white); }
.su-link { background: none; border: 0; padding: 0; color: var(--lime); font: 600 0.85rem var(--font); text-decoration: underline; cursor: pointer; }
.su-pick { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; width: 100%;
  min-height: 150px; border: 2px dashed var(--lime); border-radius: var(--radius); background: rgba(200,240,16,0.07);
  color: var(--white); cursor: pointer; text-align: center; padding: 1rem; }
.su-pick .su-pick-icon { font-size: 2.6rem; line-height: 1; }
.su-pick strong { font-size: 1.1rem; }
.su-pick span { color: var(--text-muted); font-size: 0.85rem; }
.su-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.45rem; margin: 0.9rem 0 0; }
.su-thumbs:empty { display: none; }
.su-thumb { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #000; }
.su-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.su-thumb .su-x { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.7); color: #fff; font-size: 1rem; line-height: 28px; cursor: pointer; }
.su-thumb.is-done::after { content: '✓'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,24,60,.55); color: var(--lime); font-size: 2rem; font-weight: 900; }
.su-thumb.is-error::after { content: '!'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(120,0,0,.55); color: #fff; font-size: 2rem; font-weight: 900; }
.su-btn-big { width: 100%; min-height: 56px; font-size: 1.1rem; margin-top: 1rem; }
.su-btn-big[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.su-status { margin: 0.75rem 0 0; min-height: 1.3rem; color: var(--lime); font-weight: 600; text-align: center; }
.su-status.is-error { color: #ff8a8a; }
.su-progress { height: 8px; border-radius: 4px; background: var(--navy-elevated); overflow: hidden; margin-top: 0.75rem; }
.su-progress[hidden] { display: none; }
.su-progress > div { height: 100%; width: 0; background: var(--lime); transition: width .2s; }
.su-done { text-align: center; }
.su-done .su-done-icon { font-size: 3.2rem; line-height: 1; margin-bottom: 0.4rem; }
.su-done img.su-done-logo { width: 84px; height: 84px; object-fit: contain; margin: 0.25rem auto 0.5rem; display: block; }
.su-actions { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
.su-actions .btn { min-height: 52px; font-size: 1rem; }
.su-header-min .header-inner { justify-content: flex-start; }
.ad-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 0.75rem; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--border-soft); }
.ad-row img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; background: #000; }
.ad-meta { font-size: 0.8rem; color: var(--text-muted); word-break: break-word; }
.ad-meta strong { color: var(--white); font-size: 0.95rem; }
.btn-danger { background: #c62828; color: #fff; }
.btn-danger:hover { background: #a31f1f; color: #fff; }
.ad-qr { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin-top: 0.75rem; }
.ad-qr #ad-qrcode { background: #FCFCFC; padding: 12px; border-radius: 8px; }
.ad-link { font-size: 0.75rem; word-break: break-all; color: var(--text-muted); }
/* fix: escudo chico dentro de tarjetas de galería (.gal-card img lo estiraba al 100%) */
.gal-card .team-logo { width: 22px; height: 22px; aspect-ratio: auto; object-fit: contain; background: transparent; }
.su-team img, .su-chosen img, .su-done img.su-done-logo { background: rgba(252,252,252,0.94); border-radius: 50%; padding: 5px; box-sizing: border-box; }
