:root {
  color-scheme: dark;
  --bg: #07110d;
  --bg-soft: #0d1c16;
  --panel: rgba(18, 35, 28, 0.88);
  --panel-2: rgba(25, 43, 35, 0.92);
  --line: rgba(226, 246, 224, 0.14);
  --text: #f4f8f1;
  --muted: #b4c0b2;
  --green: #7bdb8f;
  --blue: #7bb7ff;
  --gold: #f0c56a;
  --red: #ef7b72;
  --ink: #06100b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(7, 17, 13, 0.18), var(--bg) 520px),
    var(--bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("assets/site/estadio.png");
  background-size: 320px 220px;
  background-position: center top;
  opacity: 0.14;
  image-rendering: pixelated;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 17, 13, 0.94), rgba(7, 17, 13, 0.70), rgba(7, 17, 13, 0.94)),
    linear-gradient(180deg, rgba(7, 17, 13, 0.12), var(--bg));
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 13, 0.82);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 145px;
  font-weight: 950;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.nav-links a {
  padding: 9px 8px;
  border-radius: 8px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.lang-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.lang-switch button {
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.lang-switch button.active {
  background: var(--green);
  color: var(--ink);
}

.nav-download {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--green);
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(123, 219, 143, 0.16);
}

.nav-download:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 44px;
  align-items: center;
  padding: 54px 0 28px;
}

.page-title {
  padding: 54px 0 24px;
  max-width: 860px;
}

.page-title.compact {
  padding-bottom: 14px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid rgba(123, 219, 143, 0.34);
  border-radius: 999px;
  background: rgba(123, 219, 143, 0.10);
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

h1 {
  margin: 20px 0 12px;
  max-width: 820px;
  font-size: clamp(46px, 8vw, 92px);
  line-height: 0.95;
  font-weight: 950;
}

.page-title h1 {
  font-size: clamp(34px, 5vw, 60px);
}

h2,
h3,
p {
  margin: 0;
}

.hero-copy p,
.page-title p {
  max-width: 760px;
  color: #d8e4d4;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.38;
}

.hero-actions {
  display: grid;
  justify-items: start;
  gap: 14px;
  margin-top: 26px;
}

.hero-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store-button {
  width: min(100%, 340px);
  min-height: 78px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 10px 15px 10px 10px;
  border: 1px solid rgba(123, 219, 143, 0.72);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(123, 219, 143, 0.12), transparent 45%),
    #050806;
  color: #fff;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.34),
    0 0 0 4px rgba(123, 219, 143, 0.08);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.store-button:hover,
.store-button:focus-visible {
  transform: translateY(-2px);
  border-color: var(--green);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.42),
    0 0 0 5px rgba(123, 219, 143, 0.14);
}

.store-button:focus-visible,
.nav-download:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.store-button img {
  width: 50px;
  height: 50px;
  border-radius: 11px;
}

.store-button small,
.store-button strong {
  display: block;
}

.store-button small {
  margin-bottom: 2px;
  color: #b9c6bc;
  font-size: 12px;
  font-weight: 700;
}

.store-button strong {
  font-size: 23px;
  line-height: 1.05;
}

.store-arrow {
  color: var(--green);
  font-size: 28px;
  font-weight: 800;
}

.download-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px !important;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 900;
}

.button.primary {
  border-color: var(--green);
  background: var(--green);
  color: var(--ink);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
}

.club-wall {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 0.8fr;
  gap: 12px;
  align-items: stretch;
}

.club-wall img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.club-wall-main {
  grid-row: span 2;
  background:
    linear-gradient(145deg, rgba(240, 197, 106, 0.22), rgba(123, 183, 255, 0.12)),
    var(--panel);
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.stat-band article {
  min-height: 96px;
  padding: 18px;
  background: rgba(13, 28, 22, 0.94);
  border-top: 3px solid var(--green);
}

.stat-band article:nth-child(2) {
  border-top-color: var(--gold);
}

.stat-band article:nth-child(3) {
  border-top-color: var(--blue);
}

.stat-band article:nth-child(4) {
  border-top-color: var(--red);
}

.stat-band strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.stat-band span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.section-grid {
  display: grid;
  gap: 14px;
  padding: 44px 0 0;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.image-panel {
  min-height: 240px;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 24px;
}

.image-panel img {
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.image-panel span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.image-panel.alt span {
  color: var(--blue);
}

.image-panel h2 {
  margin-bottom: 10px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.05;
}

.image-panel p {
  color: var(--muted);
  line-height: 1.5;
}

.text-panel {
  min-height: 220px;
  padding: 22px;
}

.text-panel span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.text-panel:nth-child(2) span {
  color: var(--blue);
}

.text-panel:nth-child(3) span {
  color: var(--green);
}

.text-panel h2 {
  margin-bottom: 10px;
  font-size: clamp(24px, 2.5vw, 30px);
  line-height: 1.08;
}

.text-panel p {
  color: var(--muted);
  line-height: 1.5;
}

.world-section {
  padding: 44px 0 0;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 18px;
}

.section-heading h2,
.inline-section h2 {
  margin: 16px 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
}

.section-heading p,
.inline-section p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.world-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.world-card {
  min-height: 150px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.world-card strong {
  display: block;
  font-size: 20px;
}

.world-card span {
  display: inline-flex;
  margin: 10px 0 12px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(240, 197, 106, 0.12);
  color: #f8d989;
  font-size: 12px;
  font-weight: 900;
}

.world-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 44px 0 72px;
}

.download-banner {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(250px, 320px);
  gap: 24px;
  align-items: center;
  margin-bottom: 72px;
  padding: 28px;
  border: 1px solid rgba(123, 219, 143, 0.34);
  border-radius: 14px;
  background:
    radial-gradient(circle at 12% 20%, rgba(240, 197, 106, 0.14), transparent 30%),
    linear-gradient(125deg, rgba(123, 219, 143, 0.13), rgba(13, 28, 22, 0.94) 48%),
    var(--panel);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.download-banner > img {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.download-banner h2 {
  margin: 14px 0 8px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.02;
}

.download-banner p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.45;
}

.store-button.compact {
  width: 100%;
  min-height: 68px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-left: 18px;
}

.link-card,
.style-card,
.formation-card,
.role-card,
.tip-card,
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.link-card {
  min-height: 160px;
  padding: 20px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.link-card img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.link-card strong,
.link-card span {
  grid-column: 2;
}

.link-card strong {
  font-size: 20px;
}

.link-card span {
  color: var(--muted);
  line-height: 1.42;
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 0 72px;
}

.style-card {
  min-height: 216px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.style-card h2 {
  font-size: 22px;
}

.style-card p {
  color: var(--muted);
  line-height: 1.42;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tag {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(123, 183, 255, 0.10);
  color: #d7e9ff;
  font-size: 12px;
  font-weight: 800;
}

.formation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 0 44px;
}

.formation-card {
  min-height: 250px;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  align-items: center;
}

.pitch {
  position: relative;
  width: 150px;
  height: 212px;
  border: 1px solid rgba(226, 246, 224, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(123, 219, 143, 0.13), rgba(7, 17, 13, 0.26)),
    #0f2a1a;
  background-size: 50% 100%, auto, auto;
}

.pitch::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 45%;
  height: 24%;
  border: 1px solid rgba(226, 246, 224, 0.18);
  border-radius: 999px;
}

.dot {
  position: absolute;
  width: 15px;
  height: 15px;
  transform: translate(-50%, -50%);
  border: 2px solid #082015;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 2px rgba(123, 219, 143, 0.20);
}

.dot.gk {
  background: var(--gold);
}

.dot.atk {
  background: var(--blue);
}

.formation-info .meta {
  display: block;
  margin-bottom: 7px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.formation-info h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

.formation-info p {
  color: var(--muted);
  line-height: 1.45;
}

.inline-section {
  padding-top: 4px;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 0 72px;
}

.role-card {
  min-height: 190px;
  padding: 18px;
}

.role-codes {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(123, 183, 255, 0.12);
  color: #d7e9ff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
}

.role-card h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.role-card p {
  color: var(--muted);
  line-height: 1.45;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 0 34px;
}

.tip-card {
  min-height: 210px;
  padding: 18px;
}

.tip-card img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 14px;
}

.tip-card h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.tip-card p,
.faq-item p {
  color: var(--muted);
  line-height: 1.45;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 0 72px;
}

.faq-item {
  padding: 18px;
}

.faq-item h2 {
  margin-bottom: 8px;
  font-size: 20px;
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  min-height: 80px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  color: var(--green);
  font-weight: 850;
}

@media (max-width: 940px) {
  .nav {
    padding: 10px 0;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .page-hero,
  .two-col,
  .three-col,
  .quick-links,
  .style-grid,
  .formation-grid,
  .role-grid,
  .tips-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .download-banner {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .download-banner > img {
    width: 72px;
    height: 72px;
    border-radius: 16px;
  }

  .download-banner .store-button {
    grid-column: 1 / -1;
    width: min(100%, 360px);
  }

  .world-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero {
    min-height: auto;
  }

  .club-wall {
    max-width: 520px;
  }
}

@media (max-width: 620px) {
  main,
  .nav,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  h1 {
    font-size: clamp(42px, 15vw, 64px);
  }

  .page-title h1 {
    font-size: clamp(32px, 11vw, 46px);
  }

  .stat-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-panel,
  .link-card,
  .formation-card {
    grid-template-columns: 1fr;
  }

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

  .pitch {
    width: min(100%, 220px);
    height: 250px;
  }

  .club-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .club-wall-main {
    grid-column: span 2;
  }

  .nav-download {
    margin-left: auto;
  }

  .download-banner {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .download-banner .store-button {
    grid-column: auto;
  }

  .store-button {
    width: 100%;
  }
}
