/* ──────────────────────────────────────────
   CSS VARIABLES – Brand palette from PDF
   Teal/blue top, gold/amber bottom, white torn edge
   ────────────────────────────────────────── */
:root {
  --teal:      #00355B; /*#0a6b6e;*/
  --teal-dark: #001D33; /*#054547;*/
  --blue:      #1a6ba8;
  --gold:      #c8870a;
  --gold-light:#e8a020;
  --gold-pale: #f5c842;
  --white:     #ffffff;
  --off-white: #f8f5ee;
  --text-dark: #111111;
  --text-mid:  #333333;
  --accent-green: #2d9e4e;
  --accent-red:   #d63031;
  --stripe1: #1a6ba8;
  --stripe2: #c8870a;
  --stripe3: #2d9e4e;
  --stripe4: #e84393;
  --stripe5: #8b47c4;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--off-white);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ──────────── NAV ──────────── */
nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(5, 69, 71, 0.96);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 2rem;
  border-bottom: 3px solid var(--gold);
}
.nav-logo { display: flex; align-items: center; gap: 0.8rem; }
.nav-logo img { height: 44px; filter: brightness(0) invert(1); }
.nav-logo span { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; color: var(--gold-pale); letter-spacing: 2px; }
.nav-links { display: flex; gap: 1.8rem; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 0.95rem; letter-spacing: 1px; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold-pale); }
.nav-cta { background: var(--gold); color: #fff; border: none; padding: 0.5rem 1.4rem; font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; letter-spacing: 2px; cursor: pointer; transition: background 0.2s; text-decoration: none; }
.nav-cta:hover { background: var(--gold-light); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 25px; height: 2px; background: white; }

/* ──────────── HERO ──────────── */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: 70px;
}

.hero-bg-top {
  position: absolute; top: 0; left: 0; width: 100%; height: 65%;
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 40%, var(--blue) 100%);
  z-index: 0;
}

/* Hexagon football pattern overlay */
.hero-bg-top::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url('../img/pattern-hexagon-1.svg');
  background-size: 120px 138px;
}

.hero-bg-bottom {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 45%;
  background: var(--gold);
  z-index: 0;
}
.hero-bg-bottom::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0, transparent 18px,
    rgba(0,0,0,0.06) 18px, rgba(0,0,0,0.06) 20px
  );
}

/* Torn paper edge */
.torn-edge {
  position: absolute;
  left: 0; width: 100%;
  z-index: 2;
  pointer-events: none;
}
.torn-edge-top {
  top: 57%;
  transform: translateY(-100%);
}
.torn-edge-top svg { display: block; width: 100%; height: 60px; }
.torn-edge-bottom {
  top: 57%;
}
.torn-edge-bottom svg { display: block; width: 100%; height: 60px; }

.hero-content {
  position: relative; z-index: 5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  min-height: calc(100vh - 70px);
  padding: 2rem 4rem 0;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.hero-text {
  padding-bottom: 4rem;
}

.hero-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  color: var(--gold-pale);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  animation: fadeUp 0.6s ease both;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4.5rem, 9vw, 8rem);
  line-height: 0.92;
  color: white;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero-title .year {
  color: var(--gold-pale);
  display: block;
  font-size: clamp(5rem, 10vw, 9rem);
}

.hero-subtitle {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem; font-weight: 400;
  color: rgba(255,255,255,0.80);
  max-width: 420px;
  margin-bottom: 2rem;
  line-height: 1.5;
  animation: fadeUp 0.7s 0.2s ease both;
}

/* Coloured speed-stripes */
.stripes {
  display: flex; gap: 6px; margin-bottom: 2rem;
  animation: fadeUp 0.7s 0.3s ease both;
}
.stripe { height: 5px; border-radius: 3px; flex: 1; }

.hero-stats {
  display: flex; gap: 2rem;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.7s 0.35s ease both;
}
.stat { text-align: center; }
.stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 2.8rem; line-height: 1; color: var(--gold-pale); }
.stat-label { font-family: 'Barlow Condensed', sans-serif; font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.7); letter-spacing: 1px; text-transform: uppercase; }
.stat-sep { width: 1px; background: rgba(255,255,255,0.2); }

.hero-ctas {
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: fadeUp 0.7s 0.4s ease both;
}
.btn-primary {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.25rem; letter-spacing: 3px;
  background: var(--gold); color: white; border: none;
  padding: 0.85rem 2.2rem; cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: transform 0.15s, background 0.2s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.25rem; letter-spacing: 3px;
  background: transparent; color: white;
  border: 2px solid rgba(255,255,255,0.6);
  padding: 0.85rem 2.2rem; cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: transform 0.15s, border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: white; transform: translateY(-2px); }
.btn-download {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.25rem; letter-spacing: 3px;
  background: transparent; color: var(--gold-pale);
  border: 2px solid var(--gold-pale);
  padding: 0.85rem 2.2rem; cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: transform 0.15s, background 0.2s, color 0.2s;
}
.btn-download:hover { background: var(--gold-pale); color: var(--teal-dark); transform: translateY(-2px); }

/* Hero image column */
.hero-image-col {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 100%;
}

.hero-player-wrap {
  position: relative;
  width: 100%;
  max-width: 540px;
  animation: heroSlide 0.9s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-player-wrap img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.5));
}

/* Floating date badge */
.date-badge {
  position: absolute;
  top: 15%;
  right: -2rem;
  background: var(--gold);
  color: white;
  padding: 1rem 1.2rem;
  text-align: center;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  animation: popIn 0.5s 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  z-index: 10;
}
.date-badge .date-day { font-family: 'Bebas Neue', sans-serif; font-size: 2.5rem; line-height: 1; }
.date-badge .date-text { font-family: 'Barlow Condensed', sans-serif; font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; line-height: 1.3; }

/* Floating category chips */
.cat-chips {
  position: absolute;
  bottom: 28%;
  left: -1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 10;
  animation: popIn 0.5s 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
.cat-chip {
  background: rgba(5, 69, 71, 0.95);
  color: white;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem; font-weight: 700;
  padding: 0.3rem 0.8rem;
  letter-spacing: 2px;
  border-left: 4px solid var(--gold);
}

/* Scrolling ticker */
.ticker-wrap {
  position: absolute; bottom: 0; left: 0; width: 100%;
  background: var(--teal-dark);
  z-index: 10;
  overflow: hidden;
  padding: 0.5rem 0;
  border-top: 2px solid var(--gold);
}
.ticker {
  display: flex; white-space: nowrap;
  animation: ticker 30s linear infinite;
}
.ticker-item {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem; letter-spacing: 3px;
  color: var(--gold-pale);
  padding: 0 2rem;
}
.ticker-dot { color: var(--teal); padding: 0 0.5rem; }

/* ──────────── SECTION COMMON ──────────── */
section { padding: 5rem 2rem; }
.container { max-width: 1200px; margin: 0 auto; }
.section-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4rem);
  line-height: 0.95;
  margin-bottom: 1.5rem;
}
.section-title .highlight { color: var(--teal); }

/* ──────────── CALENDAR ──────────── */
#calendario { background: var(--teal-dark); color: white; }
#calendario .section-title { color: white; }
#calendario .section-title .highlight { color: var(--gold-pale); }
#calendario .section-tag { color: var(--gold-pale); }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 2rem;
}

.cal-day {
  border-right: 1px solid rgba(255,255,255,0.12);
}
.cal-day:last-child { border-right: none; }

.cal-header {
  background: var(--gold);
  padding: 0.7rem 0.5rem;
  text-align: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 2px;
  color: white;
}

.cal-body {
  padding: 1rem 0.8rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
  min-height: 100px;
  background: rgba(255,255,255,0.04);
}

.cal-body b { color: var(--gold-pale); font-weight: 700; display: block; margin-bottom: 0.3rem; }

/* ──────────── PRIZES ──────────── */
#premios { background: var(--off-white); }

.prizes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.prize-card {
  background: white;
  border-top: 5px solid var(--teal);
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}
.prize-card:hover { transform: translateY(-4px); }
.prize-card.gold-card { border-top-color: var(--gold); background: var(--teal-dark); color: white; }
.prize-card.silver-card { border-top-color: #999; }

.prize-card::after {
  content: '';
  position: absolute; bottom: -20px; right: -20px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(0,0,0,0.04);
}

.prize-place {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem; letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.gold-card .prize-place { color: var(--gold-pale); }

.prize-amount {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem; line-height: 1;
  margin-bottom: 0.3rem;
}
.gold-card .prize-amount { color: var(--gold-pale); }

.prize-desc {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem; font-weight: 600;
  color: var(--text-mid);
  text-transform: uppercase; letter-spacing: 1px;
}
.gold-card .prize-desc { color: rgba(255,255,255,0.7); }

.trophies-list {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.trophy-item {
  display: flex; align-items: center; gap: 0.8rem;
  background: white;
  padding: 0.8rem 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem; font-weight: 600;
  color: var(--text-mid);
}
.trophy-icon { font-size: 1.5rem; }

/* ──────────── INSCRIPTIONS ──────────── */
#inscripciones {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
#inscripciones::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('../img/pattern-hexagon-2.svg');
  background-size: 120px 138px;
}
#inscripciones .section-title { color: white; }
#inscripciones .section-title .highlight { color: var(--gold-pale); }
#inscripciones .section-tag { color: var(--gold-pale); }

.inscripciones-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  position: relative; z-index: 1;
}

.price-table { margin-top: 1.5rem; }
.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 1rem 1.2rem;
  margin-bottom: 0.5rem;
  background: rgba(255,255,255,0.08);
  border-left: 4px solid var(--gold);
  transition: background 0.2s;
}
.price-row:hover { background: rgba(255,255,255,0.13); }
.price-row:first-child { background: rgba(200,135,10,0.3); border-left-color: var(--gold-pale); }
.price-date {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; font-weight: 700;
  color: rgba(255,255,255,0.9);
}
.price-amount {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: var(--gold-pale);
}

.register-side { display: flex; flex-direction: column; justify-content: center; }
.register-side p {
  font-family: 'Barlow', sans-serif;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.register-notes {
  background: rgba(0,0,0,0.2);
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--gold-pale);
}
.register-notes p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.3rem;
}
.contact-links {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-top: 1.5rem;
}
.contact-link {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--gold-pale);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; font-weight: 700;
  letter-spacing: 1px;
  transition: color 0.2s;
}
.contact-link:hover { color: white; }

/* ──────────── RULES ──────────── */
#reglamento { background: white; }

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.rule-card {
  border: 1px solid rgba(0,0,0,0.08);
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}
.rule-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.rule-icon {
  width: 48px; height: 48px;
  background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.rule-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem; letter-spacing: 2px;
  color: var(--teal-dark);
  margin-bottom: 0.5rem;
}
.rule-text {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ──────────── SPONSORS ──────────── */
#patrocinadores {
  background: var(--off-white);
  padding: 4rem 2rem;
}
.sponsors-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase;
  color: rgba(0,0,0,0.3);
  text-align: center;
  margin-bottom: 2rem;
}
.sponsors-grid {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 2.5rem 3rem;
}
.sponsor-logo {
  height: 56px; max-width: 160px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5);
  transition: filter 0.3s;
}
.sponsor-logo:hover { filter: grayscale(0%) opacity(1); }

/* ──────────── FOOTER ──────────── */
footer {
  background: var(--teal-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 2rem 2rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem; margin-bottom: 2rem;
}
.footer-brand img { height: 52px; filter: brightness(0) invert(1); margin-bottom: 0.8rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; }
.footer-col h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem; letter-spacing: 2px;
  color: var(--gold-pale);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.4rem; font-size: 0.88rem; }
.footer-col ul li a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold-pale); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
}

/* ──────────── ANIMATIONS ──────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroSlide {
  from { opacity: 0; transform: translateX(60px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ──────────── RESPONSIVE ──────────── */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; padding: 1.5rem; }
  .hero-image-col { display: none; }
  .hero-title { font-size: 4rem; }
  nav .nav-links { display: none; }
  nav .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: var(--teal-dark); padding: 1rem 2rem; gap: 0.8rem; }
  .hamburger { display: flex; }
  .calendar-grid { grid-template-columns: repeat(3, 1fr); }
  .prizes-grid { grid-template-columns: 1fr; }
  .inscripciones-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .date-badge { right: 0.5rem; }
}

@media (max-width: 600px) {
  .calendar-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { flex-direction: column; gap: 0.5rem; }
}


/* SEO / Accesibilidad */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold-pale);
  color: var(--teal-dark);
  padding: 0.75rem 1rem;
  z-index: 2000;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 1rem; top: 1rem; }
.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;
}
.nav-logo a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}
