@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:wght@400;600;700;800&family=Barlow:wght@400;500;600&display=swap');

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

:root {
  --navy: #0d1b4b;
  --navy-mid: #1a2d6b;
  --navy-light: #253a80;
  --gold: #f5c000;
  --gold-light: #ffd740;
  --gold-dark: #c9960a;
  --white: #ffffff;
  --white-soft: #e8eaf6;
  --orange-accent: #e8720c;
  --text-muted: #8fa0cc;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Barlow', sans-serif;
  background-color: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ─── HERO ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(245,192,0,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(232,114,12,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(25,57,140,0.4) 0%, transparent 60%),
    linear-gradient(180deg, #0a1540 0%, #0d1b4b 50%, #0a1235 100%);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle 1px at 20% 30%, rgba(245,192,0,0.4) 0%, transparent 100%),
    radial-gradient(circle 1px at 75% 20%, rgba(245,192,0,0.3) 0%, transparent 100%),
    radial-gradient(circle 1px at 60% 70%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(circle 1px at 30% 80%, rgba(255,255,255,0.15) 0%, transparent 100%);
  background-size: 300px 300px, 250px 250px, 200px 200px, 280px 280px;
  animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

.hero-streak {
  position: absolute;
  top: 40%;
  left: -10%;
  width: 120%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(245,192,0,0.6), transparent);
  transform: rotate(-8deg);
  pointer-events: none;
}

.hero-streak-2 {
  top: 55%;
  transform: rotate(-8deg) translateY(30px);
  background: linear-gradient(90deg, transparent, rgba(232,114,12,0.3), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245,192,0,0.15);
  border: 1px solid rgba(245,192,0,0.4);
  color: var(--gold);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.35rem 1.2rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  animation: fadeDown 0.8s ease both;
}

.hero-logo {
  display: block;
  width: min(220px, 55vw);
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0 0 40px rgba(245,192,0,0.35)) drop-shadow(0 4px 20px rgba(0,0,0,0.6));
  margin-bottom: 2rem;
  animation: fadeDown 0.9s ease both 0.1s;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 10vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  color: var(--white);
  margin-bottom: 0.4rem;
  animation: fadeDown 1s ease both 0.2s;
}

.hero-title span {
  color: var(--gold);
  display: block;
}

.hero-sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  animation: fadeDown 1s ease both 0.3s;
}

.hero-tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--white-soft);
  font-weight: 500;
  max-width: 540px;
  margin: 0 auto 3rem;
  line-height: 1.7;
  animation: fadeDown 1s ease both 0.4s;
}

.hero-tagline em {
  font-style: normal;
  color: var(--gold);
  font-weight: 700;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeDown 1s ease both 0.5s;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(245,192,0,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245,192,0,0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid rgba(245,192,0,0.5);
  color: var(--gold);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
  background: rgba(245,192,0,0.06);
}

.btn-secondary:hover {
  background: rgba(245,192,0,0.15);
  border-color: var(--gold);
}

/* ─── STATS BAR ─────────────────────────────────────── */
.stats-bar {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--navy);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stat-item .icon {
  display: flex;
  align-items: center;
}

.stat-item .icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ─── SECTIONS ──────────────────────────────────────── */
section {
  padding: 5rem 1.5rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: 1.2rem;
  color: var(--white);
}

.section-title span {
  color: var(--gold);
}

.section-body {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 600px;
}

/* ─── ABOUT ─────────────────────────────────────────── */
.about {
  background: linear-gradient(180deg, #0d1b4b 0%, #0f2060 50%, #0d1b4b 100%);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  width: 30rem;
  height: 30rem;
  right: -5rem;
  top: 50%;
  transform: translateY(-50%);
  background: url('juego.svg') center / contain no-repeat;
  opacity: 0.04;
  pointer-events: none;
  filter: invert(1);
}

.about-grid {
  max-width: 780px;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.value-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(245,192,0,0.15);
  border-radius: 8px;
  padding: 1.2rem;
  transition: border-color 0.2s, background 0.2s;
}

.value-card:hover {
  border-color: rgba(245,192,0,0.4);
  background: rgba(245,192,0,0.06);
}

.value-icon {
  display: flex;
  align-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.7rem;
  color: var(--gold);
}

.value-icon svg {
  width: 100%;
  height: 100%;
}

.value-card h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.value-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* RIGHT side visual */
.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.shield-wrap {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,192,0,0.15) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.05); opacity: 1; }
}

.shield-wrap img {
  width: 260px;
  filter: drop-shadow(0 0 30px rgba(245,192,0,0.3));
  position: relative;
  z-index: 1;
}

/* ─── GROUPS ────────────────────────────────────────── */
.groups {
  background: #0a1235;
  position: relative;
  overflow: hidden;
}

.groups::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.group-card {
  background: linear-gradient(145deg, rgba(26,45,107,0.8), rgba(15,32,96,0.6));
  border: 1px solid rgba(245,192,0,0.12);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.group-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
}

.group-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(245,192,0,0.2);
}

.group-age {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.group-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.8rem;
}

.group-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.group-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  margin: 0 auto 1rem;
  color: var(--gold);
}

.group-icon svg {
  width: 100%;
  height: 100%;
}

/* ─── JOIN / CTA ─────────────────────────────────────── */
.join {
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(245,192,0,0.12) 0%, transparent 65%),
    linear-gradient(180deg, #0d1b4b 0%, #0a1235 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.join::before, .join::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,192,0,0.3), transparent);
}
.join::before { top: 0; }
.join::after { bottom: 0; }

.join .section-body {
  margin: 0 auto 2.5rem;
  text-align: center;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.contact-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(245,192,0,0.2);
  border-radius: 10px;
  padding: 1.5rem 1.5rem;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
  text-align: center;
}

.contact-card:hover {
  border-color: var(--gold);
  background: rgba(245,192,0,0.07);
}

.contact-card .cc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  margin: 0 auto 0.9rem;
  color: var(--gold);
  background: rgba(245,192,0,0.1);
  border-radius: 50%;
  padding: 0.5rem;
  transition: background 0.2s;
}

.contact-card:hover .cc-icon {
  background: rgba(245,192,0,0.2);
}

.contact-card .cc-icon svg {
  width: 100%;
  height: 100%;
}

.contact-card .cc-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.contact-card .cc-value {
  font-size: 0.95rem;
  color: var(--white-soft);
  word-break: break-word;
}

/* ─── FOOTER ────────────────────────────────────────── */
footer {
  background: #070e2a;
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(245,192,0,0.1);
}

.footer-logo {
  width: 70px;
  margin-bottom: 1rem;
  opacity: 0.85;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-copy strong {
  color: var(--gold);
}

/* ─── SVG ICONS ─────────────────────────────────────── */
.badge-icon {
  width: 0.9rem;
  height: 0.9rem;
  vertical-align: middle;
  margin-right: 0.2rem;
  display: inline-block;
  flex-shrink: 0;
}

.btn-primary svg,
.btn-secondary svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* ─── ANIMATIONS ────────────────────────────────────── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 900px) {
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-values {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .stats-bar {
    gap: 1.5rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .contact-cards {
    grid-template-columns: 1fr 1fr;
  }

  .about-values {
    grid-template-columns: 1fr 1fr;
  }
}
