:root {
  --ink: #111827;
  --muted: #5b6472;
  --line: #d9dee7;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --night: #0f172a;
  --orange: #ea580c;
  --green: #0f8b63;
  --blue: #2563eb;
  --amber: #b45309;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #d7dce8;
  font-size: 0.94rem;
  font-weight: 700;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.lang-switch a {
  min-width: 34px;
  padding: 6px 8px;
  border-radius: 6px;
  text-align: center;
  font-size: 0.78rem;
}

.lang-switch a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--orange);
  color: #fff;
}

.button-primary:hover {
  background: #c94a09;
}

.button-dark {
  background: var(--night);
  color: #fff;
}

.button-light {
  background: #fff;
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.44);
}

.button-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.hero {
  min-height: 680px;
  position: relative;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: #07100f;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 10, 18, 0.9), rgba(5, 10, 18, 0.7) 52%, rgba(5, 10, 18, 0.42));
}

.hero-inner,
.section-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 690px;
  padding: 72px 0 150px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #fde68a;
  font-size: 0.79rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.15rem);
  line-height: 1.03;
  letter-spacing: 0;
  font-weight: 950;
}

.hero p,
.page-hero p {
  max-width: 640px;
  margin: 20px 0 0;
  color: #e5e7eb;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.proof-strip {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
}

.proof-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: center;
  padding: 18px 0;
}

.municipality-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  font-size: 0.83rem;
  font-weight: 900;
}

.municipality-list span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #eef2f7;
  color: #263142;
  white-space: nowrap;
}

.logo-carousel {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  gap: 10px;
  align-items: center;
}

.logo-arrow {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.logo-row::-webkit-scrollbar {
  display: none;
}

.logo-row img {
  width: 130px;
  height: 50px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.78;
  flex: 0 0 auto;
  scroll-snap-align: center;
}

.section {
  padding: 86px 0;
}

.section-soft {
  background: var(--soft);
}

.section-dark {
  background: var(--night);
  color: #fff;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.55fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 38px;
}

.section-head h2,
.split-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-head p,
.split-copy p,
.lead {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-dark .section-head p,
.section-dark .lead {
  color: #cbd5e1;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.card,
.event-card,
.stat,
.faq-item,
.form-panel,
.detail-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card,
.event-card,
.stat,
.detail-box,
.process-item {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

@media (hover: hover) {
  .card:hover,
  .event-card:hover,
  .stat:hover,
  .detail-box:hover,
  .process-item:hover {
    transform: translateY(-4px);
    border-color: #c7d2e4;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.11);
  }
}

.card,
.stat,
.faq-item,
.detail-box {
  padding: 24px;
}

.card h3,
.event-card h3,
.detail-box h3,
.faq-item h3 {
  margin: 0 0 10px;
  line-height: 1.2;
}

.card p,
.event-card p,
.detail-box p,
.faq-item p {
  margin: 0;
  color: var(--muted);
}

.event-card {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  overflow: hidden;
}

.event-media {
  min-height: 430px;
  background-size: cover;
  background-position: center;
}

.pickle-media {
  background-image: url("assets/pickleball-pabellon.jpg");
}

.kart-media {
  background-image: url("assets/karts-circuito.png");
}

.event-body {
  padding: clamp(28px, 4vw, 54px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tag-list,
.check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  background: #eef2ff;
  color: #273a80;
  border: 1px solid #dbe3ff;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
}

.check-list {
  display: grid;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--green);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 54px;
  align-items: center;
}

.municipal-section .split {
  grid-template-columns: minmax(380px, 0.95fr) minmax(420px, 1.05fr);
  gap: clamp(34px, 6vw, 76px);
}

.municipal-section .split-copy h2 {
  max-width: 640px;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
}

.municipal-section .stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 560px;
  margin-left: auto;
}

.municipal-section .stat {
  min-height: 138px;
}

.split-visual {
  min-height: 520px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.62)), url("assets/pickleball-plaza.jpeg") center/cover;
}

.gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 16px;
}

.gallery figure {
  margin: 0;
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: 8px;
  background: #111827;
}

.gallery figure:first-child {
  grid-row: span 2;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

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

.page-hero {
  position: relative;
  min-height: 470px;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.58)),
    var(--hero-image) center/cover;
}

.page-hero .hero-inner {
  padding: 74px 0;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.breadcrumb a {
  color: #fff;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.detail-photo-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.detail-photo-strip figure {
  margin: 0;
  position: relative;
  min-height: 230px;
  border-radius: 8px;
  overflow: hidden;
  background: #111827;
}

.detail-photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

@media (hover: hover) {
  .detail-photo-strip figure:hover img {
    transform: scale(1.035);
  }
}

.video-panel {
  grid-column: 1 / -1;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0f172a;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.video-panel video {
  width: 100%;
  max-height: 420px;
  display: block;
  object-fit: cover;
  background: #0f172a;
}

.process {
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.process-item {
  counter-increment: step;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.process-item::before {
  content: counter(step);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--night);
  color: #fff;
  border-radius: 8px;
  font-weight: 900;
}

.process-item h3,
.process-item p {
  margin: 0;
}

.process-item p {
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 38px;
  align-items: start;
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.contact-methods a {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}

.form-panel {
  padding: 28px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #d7dce8;
  font-size: 0.82rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  padding: 13px 14px;
  font: inherit;
}

textarea {
  min-height: 122px;
  resize: vertical;
}

.field-full {
  grid-column: 1 / -1;
}

.site-footer {
  background: #080d18;
  color: #aeb7c6;
  padding: 28px 0;
  font-size: 0.92rem;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-inner a {
  color: #dce3ef;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-page {
  background: var(--soft);
}

.legal-hero {
  padding: 76px 0 46px;
  background: var(--night);
  color: #fff;
}

.legal-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.04;
}

.legal-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #cbd5e1;
  font-size: 1.08rem;
}

.legal-content {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 78px;
}

.legal-block {
  padding: 28px;
  margin-bottom: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.legal-block h2 {
  margin: 0 0 12px;
  font-size: 1.55rem;
  line-height: 1.18;
}

.legal-block p,
.legal-block li {
  color: var(--muted);
}

.legal-block ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  display: none;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  max-width: 980px;
  margin: 0 auto;
  padding: 18px;
  background: rgba(15, 23, 42, 0.98);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.26);
}

.cookie-banner.open {
  display: flex;
}

.cookie-banner p {
  margin: 0;
  color: #dbe3ef;
  font-size: 0.94rem;
}

.cookie-banner a {
  color: #fff;
  font-weight: 900;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 18px;
    background: var(--night);
  }

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

  .nav-links a {
    padding: 12px 0;
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    gap: 14px;
    margin-bottom: 26px;
  }

  .section-head h2,
  .split-copy h2 {
    font-size: clamp(1.95rem, 9vw, 3rem);
  }

  .page-hero {
    min-height: 420px;
  }

  .page-hero .hero-inner {
    padding: 52px 0;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    padding: 58px 0 188px;
  }

  .proof-inner,
  .section-head,
  .event-card,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .proof-inner {
    gap: 12px;
  }

  .municipality-list {
    justify-content: flex-start;
  }

  .logo-carousel {
    grid-template-columns: minmax(0, 1fr);
  }

  .logo-arrow {
    display: none;
  }

  .grid-3,
  .grid-2,
  .stats-grid,
  .detail-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    gap: 12px;
  }

  .detail-photo-strip {
    display: flex;
    grid-column: 1 / -1;
    gap: 14px;
    margin: 18px 0 0;
    padding: 0 2px 6px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, #000 88%, transparent 100%);
  }

  .detail-photo-strip::-webkit-scrollbar {
    display: none;
  }

  .detail-photo-strip figure {
    flex: 0 0 88%;
    min-height: 310px;
    scroll-snap-align: start;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
  }

  .detail-photo-strip figure::after,
  .gallery figure::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 38%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.34), transparent);
    pointer-events: none;
  }

  .gallery {
    display: flex;
    gap: 14px;
    margin-right: 0;
    padding: 0 2px 8px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, #000 88%, transparent 100%);
  }

  .gallery::-webkit-scrollbar {
    display: none;
  }

  .gallery figure,
  .gallery figure:first-child {
    flex: 0 0 88%;
    min-height: 310px;
    scroll-snap-align: start;
  }

  .municipal-section .split,
  .municipal-section .stats-grid {
    grid-template-columns: 1fr;
    max-width: none;
    margin-left: 0;
  }

  .gallery figure:first-child {
    grid-row: auto;
  }

  .event-media {
    min-height: 300px;
  }

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

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .brand img {
    width: 54px;
  }

  .hero-actions .button,
  .event-body .button {
    width: 100%;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.05rem, 11vw, 3.2rem);
  }

  .hero p,
  .page-hero p,
  .section-head p,
  .split-copy p,
  .lead {
    font-size: 1rem;
  }

  .hero-content {
    padding: 46px 0 192px;
  }

  .page-hero {
    min-height: 390px;
  }

  .card,
  .stat,
  .faq-item,
  .detail-box {
    padding: 20px;
  }

  .grid-3 {
    display: flex;
    gap: 14px;
    margin-right: 0;
    padding: 0 2px 8px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 90%, transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, #000 90%, transparent 100%);
  }

  .grid-3::-webkit-scrollbar {
    display: none;
  }

  .grid-3 > * {
    flex: 0 0 86%;
    scroll-snap-align: start;
  }

  .event-card {
    border-radius: 8px;
  }

  .event-body {
    padding: 24px 20px;
  }

  .event-media {
    min-height: 240px;
  }

  .video-panel video {
    max-height: 260px;
  }

  .logo-row {
    gap: 18px;
  }

  .logo-row img {
    max-width: 100px;
  }
}
