/* ── Variables ── */
:root {
  --blue: #2b53a3;
  --blue-dark: #1e3d7a;
  --blue-light: #3d6bc4;
  --gray: #212121;
  --gray-mid: #4a4a4a;
  --gray-light: #f4f4f5;
  --white: #ffffff;
  --stripe: rgba(43, 83, 163, 0.04);

  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(33, 33, 33, 0.08);
  --shadow-lg: 0 20px 60px rgba(33, 33, 33, 0.12);
  --nav-h: 72px;
  --max-w: 1120px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* ── Utilities ── */
.container {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--gray-light);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 12px,
    var(--stripe) 12px,
    var(--stripe) 24px
  );
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--gray);
  margin-bottom: 1rem;
}

.section__title span {
  color: var(--blue);
}

.section__lead {
  font-size: 1.125rem;
  color: var(--gray-mid);
  max-width: 52ch;
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal--left {
  transform: translateX(-40px);
}

.reveal--right {
  transform: translateX(40px);
}

.reveal--scale {
  transform: scale(0.94);
}

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

.reveal.reveal-stagger {
  opacity: 1;
  transform: none;
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-stagger.reveal--visible > * {
  opacity: 1;
  transform: none;
}

.reveal-stagger.reveal--visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.reveal--visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.reveal--visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.reveal--visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.reveal--visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.reveal--visible > *:nth-child(6) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--blue-dark);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.whatsapp-link__icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.btn.whatsapp-link {
  gap: 0.625rem;
}

.btn--dark {
  background: var(--gray);
  color: var(--white);
}

.btn--dark:hover {
  background: #000;
}

/* ── Nav ── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(33, 33, 33, 0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--white);
}

.nav--scrolled .nav__brand {
  color: var(--gray);
}

.nav__logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.nav__logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  transition: color var(--transition);
}

.nav--scrolled .nav__link {
  color: var(--gray-mid);
}

.nav__link:hover {
  color: var(--blue);
}

.nav__cta {
  display: none;
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: background var(--transition);
}

.nav--scrolled .nav__toggle span {
  background: var(--gray);
}

.nav--open .nav__links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--white);
  padding: 1.5rem 1rem 2rem;
  gap: 1.25rem;
  box-shadow: var(--shadow);
}

.nav--open .nav__link {
  color: var(--gray);
  font-size: 1rem;
}

@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }

  .nav__cta {
    display: inline-flex;
  }

  .nav__toggle {
    display: none;
  }
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 3rem) 0 4rem;
  background: var(--gray);
  color: var(--white);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--gray) 0%, #2a2a2a 65%, var(--blue-dark) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(43, 83, 163, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-light);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.hero__title {
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.hero__title .accent {
  color: var(--blue-light);
}

.hero__camp {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  opacity: 0.9;
}

.hero__camp::before,
.hero__camp::after {
  content: "—";
  margin: 0 0.5rem;
  opacity: 0.4;
}

.hero__slogan {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 38ch;
}

.hero__slogan em {
  font-style: normal;
  color: var(--blue-light);
  font-weight: 700;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: 2.5rem;
}

.hero__meta-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.hero__meta-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(43, 83, 163, 0.4);
  border-radius: 10px;
  flex-shrink: 0;
}

.hero__meta-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--white);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── About ── */
.about__grid {
  display: grid;
  gap: 3rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .about__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.about__text p + p {
  margin-top: 1rem;
  color: var(--gray-mid);
}

.pillars {
  display: grid;
  gap: 1rem;
}

.pillar {
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--blue);
  box-shadow: var(--shadow);
}

.pillar h3 {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--gray);
  margin-bottom: 0.35rem;
}

.pillar p {
  font-size: 0.875rem;
  color: var(--gray-mid);
}

/* ── Staff ── */
.staff-showcase {
  margin-top: 2.5rem;
}

.staff-showcase__photo {
  line-height: 0;
}

.staff-showcase__photo img {
  width: 100%;
  height: auto;
  display: block;
}

.staff-showcase__names {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 0.5rem 0.25rem 0;
  text-align: center;
}

.staff-showcase__name {
  font-size: clamp(0.8125rem, 2vw, 1rem);
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 0.35rem;
}

.staff-showcase__role {
  font-size: clamp(0.6875rem, 1.5vw, 0.8125rem);
  font-weight: 600;
  color: var(--gray-mid);
  line-height: 1.35;
  max-width: 22ch;
  margin-inline: auto;
}

@media (max-width: 640px) {
  .staff-showcase__names {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 0.75rem;
    padding-top: 1rem;
  }
}

/* ── Details ── */
.details__grid {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .details__grid {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }
}

.details__cards {
  display: grid;
  gap: 1rem;
}

.detail-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.detail-card__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  border-radius: 10px;
}

.detail-card__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--white);
}

.detail-card h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
  margin-bottom: 0.2rem;
}

.detail-card p {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray);
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 320px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

/* ── Form ── */
.inscripcion {
  background: var(--gray);
  color: var(--white);
}

.inscripcion .section__title {
  color: var(--white);
}

.inscripcion .section__lead {
  color: rgba(255, 255, 255, 0.75);
}

.form-layout {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .form-layout {
    grid-template-columns: 1fr 1.4fr;
    align-items: start;
  }
}

.form-aside h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.form-aside ul {
  display: grid;
  gap: 0.75rem;
}

.form-aside li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
}

.form-aside li::before {
  content: "✓";
  color: var(--blue-light);
  font-weight: 800;
  flex-shrink: 0;
}

.form-aside__contact {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.form-aside__contact p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.5rem;
}

.form-aside__contact a {
  color: var(--blue-light);
  font-weight: 600;
}

.form-aside__contact a:hover {
  text-decoration: underline;
}

.inscripcion-form {
  background: var(--white);
  color: var(--gray);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.form-group-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 1.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-light);
}

.form-group-title:first-child {
  margin-top: 0;
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 480px) {
  .form-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--gray);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  background: var(--white);
  color: var(--gray);
  transition: border-color var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.form-field textarea {
  resize: vertical;
  min-height: 96px;
}

.form-field--optional label::after {
  content: " (opcional)";
  font-weight: 500;
  color: var(--gray-mid);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--gray-mid);
}

.form-checkbox input {
  margin-top: 3px;
  accent-color: var(--blue);
}

.inscripcion-form .btn {
  width: 100%;
  margin-top: 1.5rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
}

.form-status--success {
  background: #e8f5e9;
  color: #2e7d32;
}

.form-status--error {
  background: #ffebee;
  color: #c62828;
}

/* ── Sponsors ── */
.sponsors__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .sponsors__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.sponsor-slot {
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 2px dashed #d0d0d0;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 700;
  color: #aaa;
  letter-spacing: 0.05em;
}

.sponsors__cta {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--gray-mid);
}

.sponsors__cta a {
  color: var(--blue);
  font-weight: 700;
}

.sponsors__cta a:hover {
  text-decoration: underline;
}

/* ── Footer ── */
.footer {
  background: var(--gray);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2rem;
}

.footer__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer__logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.footer__logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.footer__name {
  font-weight: 800;
  color: var(--white);
  font-size: 0.9rem;
}

.footer__tagline {
  font-size: 0.875rem;
  max-width: 28ch;
}

.footer h4 {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer__links {
  display: grid;
  gap: 0.5rem;
}

.footer__links a {
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--blue-light);
}

.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  text-align: center;
}
