:root {
  --ink: #111827;
  --muted: #64748b;
  --paper: #f8fafc;
  --line: #dbe4ee;
  --green: #116b4f;
  --lime: #d7f65b;
  --orange: #f97316;
  --red: #c2410c;
  --blue: #2563eb;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(17, 24, 39, 0.84);
  color: var(--white);
  backdrop-filter: blur(14px);
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--lime);
  border-radius: 50%;
  color: var(--lime);
  font-size: 13px;
}

.nav {
  display: flex;
  gap: clamp(10px, 2vw, 28px);
  align-items: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  min-width: 0;
}

.nav a:hover {
  color: var(--lime);
}

.site-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.install-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
}

.install-link {
  background: var(--lime);
  color: #12210f;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  padding: 120px clamp(18px, 5vw, 64px) 34px;
  overflow: hidden;
  background-image: url("../assets/cancha-barrio.png");
  background-position: center;
  background-size: cover;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 12, 24, 0.9), rgba(6, 12, 24, 0.4) 48%, rgba(6, 12, 24, 0.14)),
    linear-gradient(0deg, rgba(6, 12, 24, 0.76), rgba(6, 12, 24, 0.08) 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding-bottom: 48px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.96;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.03;
}

h3 {
  margin-bottom: 16px;
  font-size: 24px;
}

.hero-copy {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
  min-width: 0;
}

.category-picker {
  display: grid;
  max-width: 430px;
  gap: 7px;
  margin-top: 22px;
}

.category-picker label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  text-transform: uppercase;
}

.category-picker select {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(17, 24, 39, 0.72);
  color: white;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--lime);
  color: #12210f;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.match-banner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  width: min(100%, 420px);
  padding: 18px;
  border-left: 5px solid var(--orange);
  background: rgba(17, 24, 39, 0.82);
  box-shadow: var(--shadow);
}

.match-banner span,
.match-banner small {
  color: rgba(255, 255, 255, 0.72);
}

.match-banner strong {
  font-size: 22px;
}

.match-banner strong b {
  margin: 0 5px;
  color: var(--lime);
}

.match-banner.is-live {
  border-left-color: #ef4444;
}

.match-banner.is-live > span {
  color: #ff8e86;
  font-weight: 900;
}

.public-alert {
  padding: 14px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: #eaf8ef;
  color: var(--green);
  font-weight: 800;
}

.public-alert.error {
  background: #fff1ef;
  color: #a72c21;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.stats-strip div {
  display: grid;
  gap: 6px;
  padding: 24px clamp(18px, 4vw, 42px);
  background: var(--white);
}

.stats-strip strong {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--green);
}

.stats-strip span {
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: 72px clamp(18px, 5vw, 64px);
}

.section.compact {
  padding-bottom: 42px;
}

.section-heading {
  max-width: 760px;
}

.section-heading.live-heading {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.refresh-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.refresh-status i,
.live-card header i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.12);
}

.live-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.live-card {
  border-top: 4px solid #ef4444;
  background: #131c18;
  color: white;
  box-shadow: var(--shadow);
}

.live-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.live-card header span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #ff8e86;
  font-size: 12px;
  font-weight: 900;
}

.live-card header small {
  color: rgba(255, 255, 255, 0.58);
}

.live-score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 24px 18px;
  text-align: center;
}

.live-score b {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--lime);
  font-size: 34px;
}

.live-score em {
  color: rgba(255, 255, 255, 0.5);
  font-size: 20px;
  font-style: normal;
}

.event-ticker {
  display: flex;
  min-height: 42px;
  gap: 14px;
  overflow-x: auto;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  white-space: nowrap;
}

.row-heading {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.team-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.badge {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 12px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.65fr);
  gap: 28px;
  align-items: start;
}

.fixture-list,
.team-grid {
  display: grid;
  gap: 14px;
}

.fixture-card,
.team-card,
.panel,
.form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
}

.fixture-card {
  display: grid;
  grid-template-columns: 95px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.date-box {
  display: grid;
  place-items: center;
  min-height: 76px;
  border-radius: 8px;
  background: #eef7f0;
  color: var(--green);
  font-weight: 900;
}

.date-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.match-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 900;
}

.match-meta {
  margin: 0;
  color: var(--muted);
}

.status {
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff7ed;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.status.live {
  background: #fee2e2;
  color: #b91c1c;
}

.panel {
  padding: 22px;
}

.scorers {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
}

.scorers li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.scorers li:last-child {
  border-bottom: 0;
}

.scorers strong {
  display: block;
}

.scorers span {
  color: var(--muted);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.tab.active {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.team-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-card {
  min-height: 156px;
  padding: 18px;
}

.team-card .badge {
  margin-bottom: 18px;
}

.team-card h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.team-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.registration {
  background: #ecfdf5;
}

.rules-band {
  border-top: 1px solid var(--line);
  background: #eef3f0;
}

.document-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.document-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px;
  background: white;
}

.document-list h3 {
  margin: 5px 0;
  font-size: 19px;
}

.document-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.document-list article > div > span {
  color: var(--orange);
  font-size: 10px;
  font-weight: 900;
}

.document-button {
  flex: 0 0 auto;
  border-color: var(--green);
  color: var(--green);
}

.form-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.empty-public {
  margin: 0;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.registration p {
  max-width: 660px;
  color: #334155;
  line-height: 1.7;
}

.rules {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding-left: 18px;
}

.form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
}

input:focus,
select:focus {
  outline: 3px solid rgba(37, 99, 235, 0.18);
  border-color: var(--blue);
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 5vw, 64px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 900px) {
  .site-header,
  .row-heading,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .site-actions {
    position: absolute;
    top: 14px;
    right: 18px;
  }

  .hero {
    min-height: 84vh;
    padding-top: 150px;
  }

  .stats-strip,
  .split,
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .live-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 92vh;
  }

  .stats-strip,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .fixture-card {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .section-heading.live-heading,
  .document-list article {
    align-items: flex-start;
    flex-direction: column;
  }

  .live-score {
    gap: 8px;
  }

  .live-score strong {
    font-size: 13px;
  }

  .form-pair {
    grid-template-columns: 1fr;
  }

  .status {
    width: max-content;
  }
}

/* Approved blue and gold league shield - 20261016 */
.brand-mark{background:transparent url("../assets/escudo-liga-lb-azul-dorado-v2.png") center/contain no-repeat;border:0;border-radius:0;box-shadow:none;flex-shrink:0;width:44px;height:54px;color:transparent;font-size:0;line-height:0;}
