@font-face {
  font-family: "Fredoka";
  src: url("assets/cup-clash/fonts/fredoka-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #0b1f3a;
  --navy-soft: #18395f;
  --field: #176b42;
  --field-light: #e8f4ec;
  --gold: #f4c542;
  --paper: #f7f8f4;
  --white: #ffffff;
  --ink: #172331;
  --muted: #596677;
  --line: #d8e0dc;
  --danger: #9e3a2d;
  --radius: 18px;
  --shadow: 0 12px 34px rgba(11, 31, 58, 0.1);
  font-family: "Fredoka", system-ui, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 280px;
  background:
    linear-gradient(90deg, transparent 49.85%, rgba(23, 107, 66, 0.06) 50%, transparent 50.15%),
    var(--paper);
  line-height: 1.65;
}

a {
  color: var(--navy-soft);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--field);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid rgba(11, 31, 58, 0.12);
  background: rgba(247, 248, 244, 0.96);
  backdrop-filter: blur(12px);
}

.header-inner,
.page-shell,
.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--navy);
  font-weight: 850;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--navy);
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: 4px 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--field);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 3px;
}

.language-switcher {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.language-switcher button {
  min-width: 44px;
  padding: 7px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}

.language-switcher button[aria-pressed="true"] {
  background: var(--navy);
  color: var(--white);
}

.page-shell {
  padding-block: clamp(42px, 7vw, 88px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.75fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  min-height: 410px;
  overflow: hidden;
  padding: clamp(30px, 6vw, 68px);
  border: 2px solid var(--navy);
  border-radius: 30px;
  background: var(--white);
  box-shadow: 8px 8px 0 var(--navy);
}

.hero::after {
  position: absolute;
  right: -120px;
  width: 420px;
  height: 420px;
  border: 34px solid rgba(244, 197, 66, 0.72);
  border-radius: 50%;
  content: "";
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-logo-link {
  display: inline-block;
  margin-bottom: 18px;
}

.hero-logo {
  display: block;
  width: min(270px, 72vw);
  height: auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--field);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2.35rem, 7vw, 5.3rem);
  letter-spacing: -0.055em;
}

.hero p {
  max-width: 58ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-panel {
  padding: 24px;
  border: 1px solid rgba(11, 31, 58, 0.16);
  border-radius: var(--radius);
  background: rgba(247, 248, 244, 0.96);
}

.hero-panel strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1.05rem;
}

.status-pill {
  display: inline-flex;
  margin-top: 18px;
  padding: 8px 13px;
  border: 1px solid #d5aa1e;
  border-radius: 999px;
  background: #fff7d6;
  color: #654d00;
  font-size: 0.86rem;
  font-weight: 800;
}
.hero-panel a.status-pill {
  text-decoration: none;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.link-card {
  min-height: 180px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.link-card:hover {
  border-color: var(--field);
  transform: translateY(-2px);
}

.link-card small {
  color: var(--field);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.link-card h2 {
  margin: 12px 0 8px;
  font-size: 1.35rem;
}

.link-card p {
  margin: 0;
  color: var(--muted);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.legal-document {
  min-width: 0;
}

.legal-document > header {
  padding-bottom: 30px;
  border-bottom: 3px solid var(--gold);
}

.legal-document h1 {
  max-width: 19ch;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
}

.legal-document .lead {
  max-width: 68ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.legal-section {
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.legal-section h3 {
  margin-top: 24px;
}

.legal-section p,
.legal-section ul,
.legal-section ol {
  max-width: 74ch;
}

.legal-section li + li {
  margin-top: 8px;
}

.side-card {
  position: sticky;
  top: 104px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.side-card h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

.side-card dl {
  margin: 0;
}

.side-card dt {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.side-card dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.callout {
  padding: 20px 22px;
  border-left: 5px solid var(--gold);
  border-radius: 0 14px 14px 0;
  background: #fff9e7;
}

.callout.warning {
  border-left-color: var(--danger);
  background: #fff1ee;
}

.mail-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 11px 18px;
  border: 2px solid var(--navy);
  border-radius: 12px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--navy);
}

.mail-button:hover {
  color: var(--navy);
  transform: translateY(-1px);
}

.missing-value {
  color: var(--danger);
  font-weight: 800;
}

.missing-value::before {
  content: "No disponible / Unavailable";
}

.checklist {
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 30px;
}

.checklist li::before {
  position: absolute;
  left: 0;
  color: var(--field);
  content: "✓";
  font-weight: 900;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--navy);
  color: #dce6ef;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding-block: 30px;
}

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

.footer-links {
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--white);
}

[hidden] {
  display: none !important;
}

.js [data-ui-lang][hidden],
.js [data-lang][hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: no-preference) {
  .link-card,
  .mail-button {
    transition: transform 160ms ease, border-color 160ms ease;
  }
}

@media (max-width: 860px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    padding-block: 12px;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    padding-bottom: 8px;
  }

  .hero,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-panel {
    max-width: 540px;
  }

  .side-card {
    position: static;
    grid-row: 1;
  }
}

@media (max-width: 600px) {
  .header-inner,
  .page-shell,
  .footer-inner {
    width: min(100% - 22px, 1120px);
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 12px;
  }

  .site-nav a {
    padding-block: 4px;
  }

  .hero {
    padding: 26px 22px 34px;
    border-radius: 22px;
    box-shadow: 5px 5px 0 var(--navy);
  }

  .hero::after {
    right: -230px;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }

  .link-card {
    min-height: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
