/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #22335c;
  --navy-d:  #182448;
  --navy-l:  #2e4378;
  --gold:    #f8bf3e;
  --gold-d:  #e0a820;
  --gold-l:  #fcd06a;
  --white:   #ffffff;
  --off:     #f5f6fa;
  --off2:    #eef0f6;
  --light:   #dde1ed;
  --muted:   #6b7494;
  --dark:    #111827;
  --font-h:  'Barlow Condensed', sans-serif;
  --font-b:  'Inter', sans-serif;
  --radius:  12px;
  --trans:   0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--white);
  color: var(--dark);
  font-family: var(--font-b);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--off); }
::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 3px; }

/* === NAV === */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2rem;
  background: transparent;
  transition: background var(--trans), box-shadow var(--trans);
}
#navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--light);
}
#navbar.scrolled .nav-links a { color: var(--muted); }
#navbar.scrolled .nav-links a:hover { color: var(--navy); }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 2rem;
}
.nav-logo img { height: 48px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.02em;
  transition: color var(--trans);
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 700 !important;
  transition: background var(--trans) !important;
}
.nav-cta:hover { background: var(--gold-d) !important; color: var(--navy) !important; }
#navbar.scrolled .nav-cta { color: var(--navy) !important; }
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--trans);
}
#navbar.scrolled .burger span { background: var(--navy); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-family: var(--font-b);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--trans);
  border: 2px solid transparent;
}
.btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-d); border-color: var(--gold-d); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-ghost-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-ghost-white:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }
.btn-full { width: 100%; justify-content: center; }

/* === SECTION COMMON === */
.section { padding: 6rem 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-d);
  margin-bottom: 0.6rem;
}
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header p { color: var(--muted); max-width: 520px; margin: 0.75rem auto 0; }
h2 {
  font-family: var(--font-h);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.accent { color: var(--gold-d); }

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(18, 24, 48, 0.93) 0%,
    rgba(18, 24, 48, 0.72) 55%,
    rgba(18, 24, 48, 0.28) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: 80px;
}
.hero-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(248,191,62,0.5);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero-content h1 {
  font-family: var(--font-h);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  color: var(--white);
}
.hero-content h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  max-width: 500px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll span {
  display: block;
  width: 20px;
  height: 32px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  position: relative;
}
.hero-scroll span::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  background: var(--gold);
  border-radius: 2px;
  animation: scroll-dot 1.8s infinite;
}
@keyframes scroll-dot {
  0%  { opacity: 1; top: 5px; }
  80% { opacity: 0; top: 16px; }
  100%{ opacity: 0; top: 5px; }
}

/* === NOSOTROS === */
.nosotros { background: var(--off); }
.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.nosotros-text h2 { margin-bottom: 1.25rem; }
.nosotros-text p { color: var(--muted); margin-bottom: 1rem; }
.stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--light);
}
.stat strong {
  display: block;
  font-family: var(--font-h);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}
.stat span { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.nosotros-visual { position: relative; }
.visual-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(34,51,92,0.12);
}
.card-main { height: 340px; }
.card-secondary {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 190px;
  height: 145px;
  border: 4px solid var(--white);
  box-shadow: 0 8px 24px rgba(34,51,92,0.18);
}
.visual-card img { width: 100%; height: 100%; object-fit: cover; }

/* === GALERÍA === */
.galeria { background: var(--white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--off2);
}
.gallery-item.tall { grid-row: span 2; aspect-ratio: auto; min-height: 420px; }
.gallery-item.wide { grid-column: span 2; aspect-ratio: 16/9; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(34,51,92,0.85) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity var(--trans);
}
.gallery-overlay span {
  font-family: var(--font-h);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-cta { text-align: center; margin-top: 2.5rem; }

/* === CALENDARIO === */
.calendario { background: var(--navy); }
.calendario .section-label { color: var(--gold); }
.calendario h2 { color: var(--white); }
.calendario .section-header p { color: rgba(255,255,255,0.55); }
.routes-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.route-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: background var(--trans), border-color var(--trans), transform var(--trans);
}
.route-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(248,191,62,0.5);
  transform: translateY(-2px);
}
.route-date {
  background: var(--gold);
  color: var(--navy);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  text-align: center;
  min-width: 64px;
  flex-shrink: 0;
}
.route-date strong {
  display: block;
  font-family: var(--font-h);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  color: var(--navy);
}
.route-date span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--navy); }
.route-info { flex: 1; }
.route-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-mix    { background: rgba(248,191,62,0.15); color: var(--gold); border: 1px solid rgba(248,191,62,0.3); }
.badge-terra  { background: rgba(200,130,50,0.2); color: #f0a060; border: 1px solid rgba(240,160,96,0.3); }
.badge-road   { background: rgba(60,180,120,0.2); color: #60d09a; border: 1px solid rgba(96,208,154,0.3); }
.badge-med    { background: rgba(248,191,62,0.15); color: var(--gold); border: 1px solid rgba(248,191,62,0.3); }
.badge-hard   { background: rgba(220,60,60,0.2); color: #f07070; border: 1px solid rgba(240,112,112,0.3); }
.badge-easy   { background: rgba(60,180,120,0.2); color: #60d09a; border: 1px solid rgba(96,208,154,0.3); }
.route-info h3 { font-family: var(--font-h); font-size: 1.3rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--white); }
.route-info p { font-size: 0.875rem; color: rgba(255,255,255,0.55); margin-bottom: 0.75rem; }
.route-meta { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: 0.78rem; color: rgba(255,255,255,0.4); }
.route-action { align-self: center; flex-shrink: 0; }

/* === ACADEMIA === */
.academia { background: var(--off); }
.academia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.academia-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}
.academia-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.list-icon {
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-h);
  font-size: 0.85rem;
  font-weight: 900;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: 2px;
}
.academia-list li strong { display: block; font-weight: 600; color: var(--navy); margin-bottom: 0.25rem; }
.academia-list li p { font-size: 0.875rem; color: var(--muted); }
.academia-visual {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
  box-shadow: 0 12px 40px rgba(34,51,92,0.15);
}
.academia-visual img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }

/* === COMUNIDAD === */
.comunidad { background: var(--white); }
.comunidad-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.com-card {
  background: var(--off);
  border: 1.5px solid var(--light);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: border-color var(--trans), transform var(--trans), box-shadow var(--trans);
}
.com-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(248,191,62,0.15);
}
.com-icon {
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.com-icon svg { width: 22px; height: 22px; color: var(--gold); }
.com-card h3 { font-family: var(--font-h); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--navy); }
.com-card p { font-size: 0.875rem; color: var(--muted); margin-bottom: 1.25rem; }
.link-arrow {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
  transition: color var(--trans);
}
.link-arrow:hover { color: var(--gold-d); }

/* === PATROCINADORES === */
.patrocinadores { background: var(--off); }
.sponsors-grid {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.sponsor-slot {
  background: var(--white);
  border: 2px dashed var(--light);
  border-radius: var(--radius);
  width: 180px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--trans);
}
.sponsor-slot:hover { border-color: var(--gold); }
.sponsor-placeholder {
  font-size: 0.72rem;
  color: var(--light);
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.sponsors-cta { text-align: center; }
.sponsors-cta p { color: var(--muted); margin-bottom: 1rem; }

/* === CONTACTO === */
.contacto { background: var(--navy); }
.contacto .section-label { color: var(--gold); }
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contacto-text h2 { margin: 0.75rem 0 1rem; color: var(--white); }
.contacto-text > p { color: rgba(255,255,255,0.6); margin-bottom: 2rem; }
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #25D366;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  transition: background var(--trans), transform var(--trans);
}
.whatsapp-btn:hover { background: #1ebe5a; transform: translateY(-1px); }
.whatsapp-btn svg { width: 20px; height: 20px; }
.contact-links { display: flex; flex-direction: column; gap: 0.6rem; }
.contact-links a,
.contact-links span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--trans);
}
.contact-links a:hover { color: var(--gold); }
.contact-links a svg,
.contact-links span svg { width: 15px; height: 15px; flex-shrink: 0; }

/* FORM */
.contacto-form {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.75rem; font-weight: 700; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.08em; }
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  color: var(--white);
  font-family: var(--font-b);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--trans);
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.25); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group select option { background: var(--navy); color: var(--white); }
.form-group textarea { resize: vertical; }

/* === FOOTER === */
.footer {
  background: var(--navy-d);
  border-top: 3px solid var(--gold);
  padding: 3rem 0;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; text-align: center; }
.footer-logo { height: 52px; width: auto; }
.footer-tagline { font-size: 0.85rem; color: rgba(255,255,255,0.45); }
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.45); transition: color var(--trans); }
.footer-links a:hover { color: var(--gold); }
.footer-social {
  display: flex;
  gap: 1rem;
}
.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  transition: background var(--trans), color var(--trans), border-color var(--trans);
}
.footer-social a:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.footer-social a svg { width: 18px; height: 18px; }
.footer-contact-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-contact-row a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--trans);
}
.footer-contact-row a:hover { color: var(--gold); }
.footer-contact-row span { color: rgba(255,255,255,0.2); font-size: 0.8rem; }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.25); }
.com-social-links { display: flex; flex-direction: column; gap: 0.4rem; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .comunidad-cards { grid-template-columns: repeat(2, 1fr); }
  .nosotros-grid, .academia-grid, .contacto-grid { gap: 3rem; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    padding: 1.5rem 2rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--light);
    box-shadow: 0 8px 24px rgba(34,51,92,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--muted) !important; }
  .nav-links a:hover { color: var(--navy) !important; }
  .burger { display: flex; }
  .nosotros-grid, .academia-grid, .contacto-grid { grid-template-columns: 1fr; }
  .card-secondary { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.tall { grid-row: span 1; aspect-ratio: 1; min-height: auto; }
  .gallery-item.wide { grid-column: span 2; }
  .comunidad-cards { grid-template-columns: 1fr 1fr; }
  .route-card { flex-wrap: wrap; }
  .route-action { flex-basis: 100%; }
  .stats { gap: 1.5rem; }
  .section { padding: 4rem 0; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.wide { grid-column: span 1; aspect-ratio: 4/3; }
  .comunidad-cards { grid-template-columns: 1fr; }
  .sponsors-grid { flex-direction: column; align-items: center; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
}
