/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background: #f0f2f7;
  color: #172033;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }

/* ── Confetti ──────────────────────────────────────────────────────────────── */
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100; }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 1.5rem 4rem;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, #dce6ff 0%, transparent 65%),
    radial-gradient(ellipse 60% 40% at 80% 80%, #e8e0ff 0%, transparent 60%),
    #f0f2f7;
}

.hero::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(9,43,99,.18) 0%, transparent 100%),
    radial-gradient(1px 1px at 78% 22%, rgba(9,43,99,.12) 0%, transparent 100%),
    radial-gradient(1px 1px at 43% 58%, rgba(9,43,99,.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 68% 78%, rgba(9,43,99,.10) 0%, transparent 100%),
    radial-gradient(1px 1px at  8% 82%, rgba(9,43,99,.12) 0%, transparent 100%),
    radial-gradient(1px 1px at 58%  8%, rgba(9,43,99,.14) 0%, transparent 100%),
    radial-gradient(1px 1px at 32% 92%, rgba(9,43,99,.10) 0%, transparent 100%),
    radial-gradient(1px 1px at 92% 48%, rgba(9,43,99,.11) 0%, transparent 100%);
}

.hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  gap: 1.1rem; max-width: 700px;
}

/* Logo */
.logo-wrap {
  opacity: 0; transform: scale(.2);
  animation: logoIn 1.1s cubic-bezier(.34,1.56,.64,1) .2s forwards;
}
.hero-logo {
  width: 170px; height: 170px; object-fit: contain;
  filter:
    drop-shadow(0 0 2px rgba(9,43,99,.3))
    drop-shadow(0 0 20px rgba(9,43,99,.15))
    drop-shadow(0 0 50px rgba(255,184,28,.3));
}
@keyframes logoIn { to { opacity:1; transform:scale(1); } }

.hero-title {
  opacity: 0; transform: translateY(18px);
  animation: fadeUp .7s ease 1.15s forwards;
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 800; line-height: 1.12;
  background: linear-gradient(160deg, #092b63 20%, #1356b3 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  opacity: 0; transform: translateY(14px);
  animation: fadeUp .6s ease 1.4s forwards;
  font-size: 1.05rem; color: #627086; line-height: 1.7;
}

.hero-ctas {
  opacity: 0; transform: translateY(14px);
  animation: fadeUp .6s ease 1.65s forwards;
  display: flex; gap: .9rem; flex-wrap: wrap;
  justify-content: center; margin-top: .5rem;
}

.btn-primary {
  background: linear-gradient(135deg, #092b63 0%, #1356b3 100%);
  color: #fff; padding: .9rem 2.2rem;
  border-radius: 50px; font-weight: 700; font-size: 1rem;
  box-shadow: 0 4px 24px rgba(9,43,99,.3);
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(9,43,99,.45); }

.btn-secondary {
  background: #fff;
  border: 1.5px solid #d8dee8;
  color: #092b63; padding: .9rem 2.2rem;
  border-radius: 50px; font-weight: 600; font-size: 1rem;
  transition: background .2s, border-color .2s;
}
.btn-secondary:hover { background: #f8faff; border-color: #b0bcd4; }

.hero-scroll-hint {
  position: absolute; bottom: 1.8rem; left: 50%;
  transform: translateX(-50%);
  font-size: 1rem; color: rgba(9,43,99,.2);
  animation: bounce 2s ease-in-out 2.5s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}
@keyframes fadeUp { to { opacity:1; transform:translateY(0); } }

/* ── Secciones ─────────────────────────────────────────────────────────────── */
.section-inner { max-width: 1040px; margin: 0 auto; padding: 5rem 1.5rem; }
.section-title  {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800; text-align: center; margin-bottom: .4rem;
  color: #092b63;
}
.section-sub {
  font-size: 1rem; color: #627086;
  text-align: center; margin-bottom: 3.5rem;
}

/* ── Sección campeones ─────────────────────────────────────────────────────── */
.section-champions { background: #f0f2f7; }

#championsGrid { display: flex; flex-direction: column; gap: 3rem; }

/* ── Encabezado por deporte ────────────────────────────────────────────────── */
.sport-section { display: flex; flex-direction: column; gap: 1.2rem; }

.sport-header {
  display: flex; align-items: center; gap: 12px;
}
.sport-header-icon {
  width: 22px; height: 22px; flex-shrink: 0;
  color: #ffb81c; opacity: .9;
}
.sport-header-icon svg { width: 100%; height: 100%; }
.sport-header-label {
  font-size: .8rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: #092b63; white-space: nowrap;
}
.sport-header-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, rgba(9,43,99,.2), transparent);
}

/* ── Grid de tarjetas ──────────────────────────────────────────────────────── */
.sport-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 12px;
}

/* ── Tarjeta de campeón ────────────────────────────────────────────────────── */
.champ-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid #d8dee8;
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  box-shadow: 0 2px 10px rgba(9,43,99,.06);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.champ-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffb81c 0%, #f59500 50%, transparent 100%);
  border-radius: 16px 16px 0 0;
}

.champ-card.visible {
  animation: cardIn .45s ease forwards;
}
@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}

.champ-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(9,43,99,.12);
  border-color: #ffb81c;
}

/* Logo */
.champ-logo-wrap { flex-shrink: 0; }
.champ-logo {
  width: 52px; height: 52px; object-fit: contain;
  display: block;
}
.champ-avatar {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; font-weight: 700; color: #fff;
}

/* Info */
.champ-info {
  display: flex; flex-direction: column;
  gap: 3px; min-width: 0;
}
.champ-name {
  font-size: .92rem; font-weight: 700;
  color: #172033; line-height: 1.3;
  word-break: break-word;
}
.champ-category {
  font-size: .72rem; color: #8a9ab5; font-weight: 600;
}
.champ-badge {
  display: inline-block; margin-top: 4px;
  font-size: .6rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: #9a6a00;
  background: rgba(255,184,28,.12);
  padding: 2px 7px; border-radius: 20px;
  border: 1px solid rgba(255,184,28,.3);
  width: fit-content;
}

/* ── Galería ───────────────────────────────────────────────────────────────── */
.section-gallery {
  background: #f0f2f7;
  text-align: center;
}
.btn-gallery {
  display: inline-flex; align-items: center; gap: .65rem;
  background: #fff;
  border: 1.5px solid #d8dee8;
  color: #092b63; padding: 1rem 2.4rem;
  border-radius: 50px; font-size: 1rem; font-weight: 600;
  box-shadow: 0 2px 10px rgba(9,43,99,.06);
  transition: background .2s, transform .2s, border-color .2s;
}
.btn-gallery:hover { background: #f8faff; transform: translateY(-2px); border-color: #b0bcd4; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  background: #fff; padding: 2.5rem 1.5rem;
  display: flex; flex-direction: column;
  align-items: center; gap: .8rem;
  border-top: 1px solid #d8dee8;
}
.footer-logo {
  width: 48px; height: 48px; object-fit: contain;
  opacity: .6;
}
.footer-copy { font-size: .77rem; color: #8a9ab5; text-align: center; }

/* ── Tarjeta pendiente ─────────────────────────────────────────────────────── */
.champ-card--pending {
  opacity: .5;
}
.champ-card--pending::before {
  background: linear-gradient(90deg, #d8dee8 0%, transparent 100%);
}
.champ-avatar--pending {
  font-size: 1.4rem;
  color: #b0bcd4;
  background: #f0f2f7;
  border: 1.5px dashed #c8d0dc;
}
.champ-badge--pending {
  color: #8a9ab5;
  background: #f0f2f7;
  border-color: #d8dee8;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .sport-grid { grid-template-columns: 1fr 1fr; }
  .hero-logo { width: 140px; height: 140px; }
}
