/* ==========================================================================
   LIGA DE FUTBOL LA PRESA — VETERANOS
   Sistema de diseño · Base, tokens y estructura
   ========================================================================== */

:root {
  /* Paleta */
  --bg: #071626;
  --bg-deep: #04101d;
  --elev: #0b1d30;
  --surface: #10243a;
  --surface-2: #16324e;
  --surface-3: #1d405f;
  --line: rgba(148, 197, 255, 0.13);
  --line-strong: rgba(148, 197, 255, 0.25);
  --text: #f1f5f9;
  --text-soft: #cbd5e1;
  --muted: #94a3b8;
  --muted-2: #64748b;

  --brand: #0ea5e9;
  --brand-strong: #0284c7;
  --brand-deep: #0369a1;
  --brand-rgb: 14, 165, 233;
  --brand-deep-rgb: 3, 105, 161;
  --brand-light: #38bdf8;
  --brand-light-rgb: 56, 189, 248;
  --brand-lighter: #7dd3fc;
  --brand-pale: #bae6fd;
  --brand-secondary: #082f49;
  --on-brand: #ffffff;
  --brand-soft: rgba(14, 165, 233, 0.16);
  --brand-glow: rgba(14, 165, 233, 0.5);
  --cyan: #22d3ee;
  --gold: #f5c451;

  --win: #22c55e;
  --win-soft: rgba(34, 197, 94, 0.14);
  --draw: #f59e0b;
  --draw-soft: rgba(245, 158, 11, 0.14);
  --loss: #ef4444;
  --loss-soft: rgba(239, 68, 68, 0.14);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.9);
  --shadow-lg: 0 40px 80px -32px rgba(0, 0, 0, 0.95);

  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial,
    sans-serif;
  --font-num: "SF Mono", "Cascadia Mono", "Segoe UI Mono", ui-monospace, monospace;

  --container: 1200px;
  --header-h: 72px;
  --nav-h: 50px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(1300px 640px at 82% -10%, rgba(var(--brand-rgb), 0.3), transparent 62%),
    radial-gradient(900px 520px at 2% 0%, rgba(34, 211, 238, 0.15), transparent 58%),
    linear-gradient(180deg, #071626 0%, #04101d 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 78%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
}

p {
  margin: 0;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: rgba(var(--brand-rgb), 0.4);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.icon--sm {
  width: 15px;
  height: 15px;
}

.icon--lg {
  width: 24px;
  height: 24px;
}

.icon--xl {
  width: 34px;
  height: 34px;
  stroke-width: 1.4;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
}

/* ----------------------------- Estructura -------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 28px);
}

.main {
  position: relative;
  z-index: 1;
  min-height: 62vh;
  padding-block: 8px 64px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 11, 20, 0.88);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.brand-crest {
  position: relative;
  width: 46px;
  height: 50px;
  flex: none;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0%, 100% 16%, 100% 62%, 50% 100%, 0% 62%, 0% 16%);
  background:
    linear-gradient(155deg, var(--brand) 0%, var(--brand-deep) 45%, #0b1220 100%);
  box-shadow: 0 6px 18px -6px var(--brand-glow);
}

.brand-crest::before {
  content: "";
  position: absolute;
  inset: 3px;
  clip-path: inherit;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.brand-crest span {
  position: relative;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand-title {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-sub {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brand);
}

.header-spacer {
  flex: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --------------------------- Menú de navegación --------------------------- */

.site-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 55;
  background: rgba(10, 16, 28, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: stretch;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-inner::-webkit-scrollbar {
  display: none;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 14px 13px 13px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav-link .icon {
  width: 16px;
  height: 16px;
  opacity: 0.85;
}

.nav-link:hover {
  color: var(--text-soft);
}

.nav-link.is-active {
  color: #fff;
  border-bottom-color: var(--brand);
}

.nav-link.is-active .icon {
  color: var(--brand);
  opacity: 1;
}

.nav-sep {
  width: 1px;
  margin: 12px 8px;
  background: var(--line);
  flex: none;
}

.nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 5px;
  background: var(--loss);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

/* -------------------------------- Hero ----------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  margin-top: 22px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(760px 320px at 88% -30%, rgba(var(--brand-rgb), 0.34), transparent 62%),
    radial-gradient(520px 300px at 8% 120%, rgba(14, 165, 233, 0.12), transparent 60%),
    linear-gradient(120deg, #0c1526 0%, #0e1b33 52%, #101d36 100%);
  box-shadow: var(--shadow-lg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.028) 0 2px,
    transparent 2px 44px
  );
  pointer-events: none;
}

.hero::after {
  content: var(--brand-crest-text, "LFP");
  position: absolute;
  right: -18px;
  bottom: -86px;
  font-size: 260px;
  font-weight: 900;
  letter-spacing: -0.07em;
  color: rgba(255, 255, 255, 0.028);
  pointer-events: none;
  user-select: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(20px, 4vw, 40px);
  align-items: start;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(var(--brand-rgb), 0.35);
  background: rgba(var(--brand-rgb), 0.12);
  color: var(--brand-pale);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-kicker .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--win);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.hero-title {
  margin-top: 16px;
  font-size: clamp(30px, 5.4vw, 54px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-transform: uppercase;
}

.hero-title .accent {
  background: linear-gradient(96deg, var(--brand-light) 0%, var(--brand-lighter) 40%, #e2e8f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 14px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 14.5px;
}

.hero-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.hero-info {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(7, 11, 20, 0.35);
}

.hero-info-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  color: var(--text-soft);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-info p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.hero-info p:last-child {
  margin-bottom: 0;
}

.hero-info p b {
  color: #fff;
}

.hero-info-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.hero-info-row b {
  color: var(--text);
  font-size: 10px;
  text-align: right;
}

@media (max-width: 760px) {
  .hero-info-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.hero-stat {
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.35);
}

.hero-stat b {
  display: block;
  font-size: 20px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.hero-stat b small {
  margin-left: 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-2);
  letter-spacing: 0;
}

.hero-stat span {
  display: block;
  margin-top: 3px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--muted-2);
}

.hero-side {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: start;
}

.leader-card {
  padding: 10px 12px;
  border: 1px solid rgba(var(--brand-rgb), 0.35);
  border-radius: var(--radius-sm);
  background: linear-gradient(150deg, rgba(var(--brand-rgb), 0.17), rgba(8, 14, 25, 0.72));
}

.leader-card .label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-pale);
}

.leader-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.leader-inline .team-dot {
  width: 28px;
  height: 28px;
  font-size: 9px;
  border-radius: 8px;
}

.leader-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
}

/* ------------------------------- Footer ---------------------------------- */

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  background: rgba(5, 8, 16, 0.6);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding-block: 26px;
}

.brand-logo {
  width: auto;
  height: 66px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45));
}

.footer-logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.4));
}

.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  text-align: right;
}

.footer-credit {
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.4;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-crest {
  display: grid;
  place-items: center;
  width: 38px;
  height: 42px;
  clip-path: polygon(50% 0%, 100% 16%, 100% 62%, 50% 100%, 0% 62%, 0% 16%);
  background: linear-gradient(155deg, var(--brand), #0b1220);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: #fff;
}

.footer-brand strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-brand span {
  display: block;
  font-size: 11px;
  color: var(--muted-2);
}

.footer-note {
  color: var(--muted-2);
  font-size: 11.5px;
  max-width: 62ch;
}

.footer-meta {
  color: var(--muted-2);
  font-size: 11px;
  white-space: nowrap;
}

/* ------------------------------ Utilidades -------------------------------- */

.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.muted {
  color: var(--muted);
}

.muted-2 {
  color: var(--muted-2);
}

.nowrap {
  white-space: nowrap;
}

.mono {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -400px 0;
  }
  100% {
    background-position: 400px 0;
  }
}

.view-enter {
  animation: rise 0.35s var(--ease) both;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
