:root {
  --vc-primary: #2563eb;
  --vc-primary-dark: #1d4ed8;
  --vc-primary-light: #3b82f6;
  --vc-accent: #f97316;
  --vc-dark: #0f172a;
  --vc-darker: #020617;
  --vc-text: #1e293b;
  --vc-text-light: #64748b;
  --vc-bg: #f8fafc;
  --vc-white: #ffffff;
  --vc-border: #e2e8f0;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--vc-text);
  background: var(--vc-white);
  overflow-x: hidden;
}

/* ── Navbar ─────────────────────────────────────── */
#mainNav {
  transition: all .4s ease;
  padding: 1rem 0;
  background: transparent;
}

#mainNav.scrolled {
  background: rgba(15, 23, 42, .95) !important;
  backdrop-filter: blur(12px);
  padding: .6rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}

.brand-icon-sm {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--vc-accent), #ef4444);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1rem;
}

/* ── Hero ───────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--vc-darker) 0%, var(--vc-dark) 40%, #1e3a5f 100%);
  overflow: hidden;
  min-height: 100vh;
}

.hero-particles {
  position: absolute; inset: 0;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(249, 115, 22, .15);
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(37,99,235,.15) 0%, transparent 70%),
              radial-gradient(ellipse at 80% 20%, rgba(249,115,22,.1) 0%, transparent 50%);
  z-index: 2;
}

.hero-content { position: relative; z-index: 3; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(249,115,22,.15);
  border: 1px solid rgba(249,115,22,.3);
  color: var(--vc-accent);
  padding: .5rem 1.25rem;
  border-radius: 50px;
  font-size: .875rem; font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.5rem; font-weight: 800;
  color: white; line-height: 1.1;
  margin-bottom: 1.5rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--vc-accent), #facc15);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem; color: rgba(255,255,255,.7);
  max-width: 520px; line-height: 1.7;
  margin-bottom: 2rem;
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--vc-accent), #ef4444);
  border: none; color: white; font-weight: 600;
  padding: .85rem 2rem; border-radius: 12px;
  transition: all .3s;
  box-shadow: 0 4px 15px rgba(249,115,22,.35);
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(249,115,22,.45);
  color: white;
}

.btn-hero-secondary {
  border: 2px solid rgba(255,255,255,.3);
  color: white; font-weight: 600;
  padding: .85rem 2rem; border-radius: 12px;
  transition: all .3s;
}
.btn-hero-secondary:hover {
  border-color: white;
  background: rgba(255,255,255,.1);
  color: white;
}

.hero-stats {
  display: flex; gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
}

.stat-number {
  font-size: 2rem; font-weight: 800;
  color: var(--vc-accent);
}

.stat-label {
  font-size: .85rem; color: rgba(255,255,255,.5);
  margin-top: .25rem;
}

.hero-wave {
  position: absolute; bottom: -1px; left: 0; right: 0;
  z-index: 4;
}
.hero-wave svg { display: block; width: 100%; height: 80px; }

/* ── Hero Visual ────────────────────────────────── */
.hero-visual {
  position: relative;
  width: 380px; height: 380px;
  margin: 0 auto;
}

.volley-ball {
  width: 220px; height: 220px;
  background: linear-gradient(135deg, var(--vc-accent), #f59e0b);
  border-radius: 50%;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 20px 60px rgba(249,115,22,.3),
              inset 0 -10px 30px rgba(0,0,0,.2);
  animation: ball-bounce 3s ease-in-out infinite;
  overflow: hidden;
}

.ball-pattern {
  position: absolute; inset: 0;
  border-radius: 50%;
  background:
    linear-gradient(45deg, transparent 42%, rgba(255,255,255,.25) 42%, rgba(255,255,255,.25) 58%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, rgba(255,255,255,.25) 42%, rgba(255,255,255,.25) 58%, transparent 58%);
}

@keyframes ball-bounce {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -55%) scale(1.03); }
}

.floating-card {
  position: absolute;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: .75rem 1.25rem;
  display: flex; align-items: center; gap: .75rem;
  font-size: .85rem; font-weight: 600;
  color: var(--vc-text);
  box-shadow: 0 8px 25px rgba(0,0,0,.1);
  white-space: nowrap;
  animation: float-card 4s ease-in-out infinite;
}

.floating-card.card-1 { top: 15%; right: -10%; animation-delay: 0s; }
.floating-card.card-2 { bottom: 20%; left: -5%; animation-delay: 1.5s; }
.floating-card.card-3 { bottom: 5%; right: 5%; animation-delay: 3s; }

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Sections ───────────────────────────────────── */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--vc-bg);
}

.section-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(37,99,235,.08);
  color: var(--vc-primary);
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .8rem; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem; font-weight: 800;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem; color: var(--vc-text-light);
  max-width: 600px; margin: 0 auto;
}

/* ── Benefits ───────────────────────────────────── */
.benefit-card {
  background: var(--vc-white);
  border: 1px solid var(--vc-border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all .3s;
  height: 100%;
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  border-color: var(--vc-primary);
}

.benefit-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
}

.benefit-card h5 {
  font-weight: 700; margin-bottom: .75rem;
}

.benefit-card p {
  color: var(--vc-text-light); font-size: .9rem;
  margin-bottom: 0;
}

/* ── Groups ─────────────────────────────────────── */
.grupo-landing-card {
  background: var(--vc-white);
  border: 1px solid var(--vc-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all .3s;
  cursor: pointer;
}

.grupo-landing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.1);
}

.grupo-landing-header {
  background: linear-gradient(135deg, var(--vc-primary), #7c3aed);
  padding: 1.5rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.grupo-landing-header::after {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 100px; height: 100px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
}

.grupo-landing-logo {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700;
  color: white;
  margin-bottom: .75rem;
}

.grupo-landing-logo img {
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 14px;
}

.grupo-landing-header h5 {
  font-weight: 700; margin-bottom: .25rem;
}

.grupo-landing-header .text-white-50 {
  font-size: .85rem;
}

.grupo-landing-body {
  padding: 1.25rem 1.5rem;
}

.grupo-stat {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--vc-border);
  font-size: .9rem;
}

.grupo-stat:last-child { border-bottom: none; }

.grupo-stat i {
  width: 20px; text-align: center;
  color: var(--vc-primary);
}

.grupo-stat .badge {
  margin-left: auto;
}

/* ── Steps ──────────────────────────────────────── */
.step-card {
  text-align: center;
  padding: 2.5rem 2rem;
  position: relative;
}

.step-number {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 32px; height: 32px;
  background: var(--vc-primary);
  color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem;
}

.step-icon {
  width: 80px; height: 80px;
  background: rgba(37,99,235,.08);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 2rem; color: var(--vc-primary);
}

.step-card h5 { font-weight: 700; margin-bottom: .75rem; }
.step-card p { color: var(--vc-text-light); font-size: .9rem; }

/* ── CTA ────────────────────────────────────────── */
.cta-section { padding: 4rem 0; }

.cta-card {
  background: linear-gradient(135deg, var(--vc-dark), #1e3a5f);
  border-radius: 20px;
  padding: 3rem;
  color: white;
}

.cta-title { font-weight: 800; margin-bottom: .5rem; }
.cta-text { color: rgba(255,255,255,.7); margin-bottom: 0; }

.btn-cta {
  background: linear-gradient(135deg, var(--vc-accent), #ef4444);
  border: none; color: white; font-weight: 600;
  padding: .85rem 2rem; border-radius: 12px;
  transition: all .3s;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(249,115,22,.4);
  color: white;
}

/* ── Footer ─────────────────────────────────────── */
.footer {
  background: var(--vc-dark);
  color: rgba(255,255,255,.7);
  padding: 3rem 0 1.5rem;
}

.footer-brand {
  display: flex; align-items: center;
  color: white; font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-heading {
  color: white; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .8rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none; padding: 0; margin: 0;
}

.footer-links li { margin-bottom: .5rem; }

.footer-links a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .2s;
  font-size: .9rem;
}

.footer-links a:hover { color: var(--vc-accent); }

.footer-divider {
  border-color: rgba(255,255,255,.1);
  margin: 2rem 0 1rem;
}

.footer-bottom {
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.4);
}

/* ── Modal Detail ───────────────────────────────── */
.grupo-logo-sm {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--vc-primary), #7c3aed);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700;
}

.grupo-logo-sm img {
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 12px;
}

.campo-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--vc-bg);
  border: 1px solid var(--vc-border);
  border-radius: 10px;
  padding: .6rem 1rem;
  margin: .25rem;
  font-size: .85rem;
}

.campo-chip .nivel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}

.horario-row {
  display: flex; align-items: center; gap: 1rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--vc-border);
  font-size: .9rem;
}

.horario-row:last-child { border-bottom: none; }

.empty-state-lg {
  text-align: center;
  padding: 3rem;
  color: var(--vc-text-light);
}

.empty-state-lg i {
  font-size: 4rem;
  opacity: .3;
  margin-bottom: 1rem;
}

/* ── Animations ─────────────────────────────────── */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp .8s ease forwards;
}

.delay-1 { animation-delay: .2s; }
.delay-2 { animation-delay: .4s; }
.delay-3 { animation-delay: .6s; }
.delay-4 { animation-delay: .8s; }

@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: all .8s ease;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 992px) {
  .hero-title { font-size: 2.5rem; }
  .hero-stats { gap: 2rem; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .section-title { font-size: 2rem; }
  .cta-card { padding: 2rem; text-align: center; }
}

/* ── Inscription ───────────────────────────────── */
.insc-type-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all .25s ease;
}
.insc-type-card:hover {
  background: rgba(37,99,235,.12);
  border-color: rgba(37,99,235,.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37,99,235,.15);
}
[data-theme="dark"] .insc-type-card {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
}
[data-theme="dark"] .insc-type-card:hover {
  background: rgba(99,102,241,.12);
  border-color: rgba(99,102,241,.4);
}
.btn-inscribir {
  background: linear-gradient(135deg, var(--vc-primary), var(--vc-primary-dark));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .3rem .7rem;
  font-size: .78rem;
  transition: all .2s;
}
.btn-inscribir:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(37,99,235,.3);
  color: #fff;
}
.horario-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 0;
  flex-wrap: wrap;
}
