/* ============================================================
   TEAM ACTIVATE — styles.css
   Paleta: negro (#0a0a0a), blanco (#f5f5f2), naranja marca
   ============================================================ */

:root {
  --black: #0a0a0a;
  --black-soft: #141414;
  --white: #f5f5f2;
  --orange: #ff8c00;
  --orange-dark: #a84700;
  --gray: #8a8a86;
  --gray-line: rgba(245,245,242,0.15);
  --max-w: 1180px;
  --radius: 14px;
  --shadow: 0 20px 50px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.font-display { font-family: 'Oswald', sans-serif; font-weight: 700; letter-spacing: 0.01em; }
.font-script  { font-family: 'Oswald', sans-serif; font-weight: 300; font-style: italic; letter-spacing: 0.01em; }
.font-condensed { font-family: 'League Gothic', sans-serif; letter-spacing: 0.02em; }
.font-body { font-family: 'Oswald', sans-serif; }

.accent { color: var(--orange); }

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 1.2em; height: 1.2em; fill: currentColor; flex-shrink: 0; }

.btn-whatsapp {
  background: var(--orange);
  color: var(--black);
}
.btn-whatsapp:hover { background: #ffa733; }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(245,245,242,0.4);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(245,245,242,0.08); }

.btn-outline {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}
.btn-outline:hover { background: var(--orange); color: var(--black); }

/* ============================================================
   HERO / CONTACTO (comparten .hero)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 2rem 1.25rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.55) 40%, rgba(10,10,10,0.92) 100%),
    linear-gradient(90deg, rgba(10,10,10,0.6) 0%, rgba(10,10,10,0.15) 50%, rgba(10,10,10,0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 720px;
}

.hero-logo {
  width: 150px;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,0.5));
}
.hero-logo-small { width: 110px; }

.hero-tagline {
  font-size: clamp(1rem, 4.2vw, 2rem);
  color: var(--white);
  margin: 0;
  text-shadow: 0 4px 18px rgba(0,0,0,0.6);
  white-space: nowrap;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(245,245,242,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2s ease-in-out infinite;
}
.scroll-cue svg { width: 16px; height: 16px; fill: var(--white); }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.footer-credit {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: rgba(245,245,242,0.55);
}
.footer-powered {
  margin-top: 0.35rem;
  font-size: 0.7rem;
  color: rgba(245,245,242,0.35);
}
.footer-powered a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(245,245,242,0.25);
  transition: color 0.2s ease;
}
.footer-powered a:hover {
  color: rgba(245,245,242,0.65);
}

.contact .hero-content { gap: 1.25rem; }

/* ============================================================
   SECCIONES GENERALES
   ============================================================ */
.section {
  padding: 5rem 1.25rem;
  background: var(--black);
}
.section-dark {
  background: var(--black-soft);
}
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin: 0 0 0.6rem;
  line-height: 1.1;
}
.section-lead {
  color: var(--gray);
  font-size: 1.1rem;
  margin: 0 0 2.5rem;
  max-width: 620px;
}
.section-lead.font-script {
  color: var(--white);
  font-size: 1.3rem;
}
.sponsors-title {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}

/* ============================================================
   SERVICIOS — RUTA / CIRCUITOS
   ============================================================ */
.route {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.route-line {
  position: absolute;
  top: 42px;
  left: 8%;
  right: 8%;
  height: 3px;
  background-image: linear-gradient(90deg, var(--orange) 0%, var(--orange) 50%, transparent 50%);
  background-size: 24px 3px;
  background-repeat: repeat-x;
  z-index: 0;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.1s cubic-bezier(0.65, 0, 0.35, 1);
}
.route-line.is-visible { transform: scaleX(1); }

.circuit-card {
  position: relative;
  z-index: 1;
  background: var(--black-soft);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.5rem;
  text-align: left;
  color: var(--white);
  cursor: pointer;
  font-family: inherit;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.circuit-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
}

.circuit-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--black);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  margin-bottom: 0.5rem;
}

.circuit-name {
  font-size: 1.7rem;
  line-height: 1;
}
.circuit-hint {
  color: var(--gray);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.circuit-detail {
  clip-path: circle(0% at 20% 0%);
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  transition: clip-path 0.6s cubic-bezier(0.65, 0, 0.35, 1), max-height 0.5s ease, opacity 0.4s ease, margin-top 0.4s ease;
}
.circuit-card[aria-expanded="true"] .circuit-detail {
  clip-path: circle(150% at 20% 0%);
  max-height: 220px;
  opacity: 1;
  margin-top: 0.75rem;
}
.circuit-card[aria-expanded="true"] {
  border-color: var(--orange);
}
.circuit-detail ul {
  margin: 0;
  padding: 0.9rem 0 0;
  list-style: none;
  border-top: 1px solid var(--gray-line);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.circuit-detail li { font-size: 0.92rem; color: var(--white); }
.circuit-detail strong { color: var(--orange); }

.personalized-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: linear-gradient(120deg, rgba(255,140,0,0.12), rgba(255,140,0,0.02));
  border: 1px solid rgba(255,140,0,0.35);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
}
.personalized-card h3 { margin: 0 0 0.25rem; font-size: 1.6rem; color: rgba(245,245,242,0.82); }
.personalized-card p { margin: 0; color: var(--gray); }

/* ============================================================
   TRAINING CAMPS
   ============================================================ */
.next-camp {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.85), rgba(10,10,10,0.9)),
    url('images/formulario/bg-formulario.jpg');
  background-size: cover;
  background-position: center;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 3.5rem;
}

.tag {
  display: inline-block;
  background: var(--orange);
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3em 0.8em;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.next-camp-info h3 { font-size: 2rem; margin: 0 0 0.3rem; }
.next-camp-date {
  color: var(--orange);
  font-weight: 600;
  margin: 0 0 1.25rem;
}
.next-camp-includes {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.next-camp-includes li {
  padding-left: 1.4rem;
  position: relative;
  color: rgba(245,245,242,0.85);
  font-size: 0.95rem;
}
.next-camp-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 2px;
  transform: rotate(45deg);
}

.reserve-form {
  background: rgba(10,10,10,0.88);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.reserve-form h4 { margin: 0 0 0.25rem; font-size: 1.4rem; }
.reserve-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--gray);
}
.reserve-form input,
.reserve-form select,
.reserve-form textarea {
  background: var(--black-soft);
  border: 1px solid var(--gray-line);
  border-radius: 8px;
  padding: 0.7em 0.9em;
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
}
.reserve-form input:focus,
.reserve-form select:focus,
.reserve-form textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.reserve-form button { margin-top: 0.4rem; width: 100%; justify-content: center; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

.galleries {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}
.gallery-block h3 { font-size: 1.6rem; margin: 0 0 1rem; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.gallery-thumb {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}
.gallery-thumb:hover img { transform: scale(1.06); filter: brightness(1.1); }
.gallery-thumb::after {
  content: "+";
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(10,10,10,0.6);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-thumb:hover::after { opacity: 1; }

/* ============================================================
   SOBRE MATÍAS
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}
.about-photo {
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  display: block;
}
.about-bio {
  color: var(--gray);
  border-left: 3px solid var(--orange);
  padding-left: 1.25rem;
  font-size: 1rem;
  line-height: 1.65;
}

/* ============================================================
   PATROCINADORES — MARQUEE
   ============================================================ */
.sponsor-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.sponsor-track {
  display: flex;
  align-items: flex-start;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.sponsor-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.sponsor-item img {
  height: 120px;
  width: 120px;
  object-fit: contain;
  border-radius: 14px;
  flex-shrink: 0;
}
.sponsor-name {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.sponsor-marquee:hover .sponsor-track { animation-play-state: paused; }

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 40;
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float .icon { width: 28px; height: 28px; fill: currentColor; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.94);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(245,245,242,0.1);
  border: 1px solid rgba(245,245,242,0.25);
  color: var(--white);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255,140,0,0.85); border-color: transparent; color: var(--black); }
.lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  font-size: 1.6rem;
  line-height: 1;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 1.1rem;
}
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .route { grid-template-columns: 1fr; }
  .route-line { display: none; }
  .next-camp { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { aspect-ratio: 16/9; }
  .galleries { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .section { padding: 3.5rem 1rem; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .personalized-card { flex-direction: column; align-items: flex-start; }
  .personalized-card .btn { width: 100%; justify-content: center; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}
