/* =========================
   NAVBAR
========================= */

/* Header contenedor */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-h);
  z-index: 1000;
  transition: transform 0.4s ease;
}

/* =========================
   NAVBAR MINIMAL
========================= */

.main-navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 5%;

  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);

  border-bottom: 1px solid rgba(0, 0, 0, 0.05);

  z-index: 1000;

  transition: transform 0.35s ease;
}

/* menú */

.menu {
  display: flex;
  gap: 2rem;
}

.menu a {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.05em;

  transition: color 0.2s ease;
}

.menu a:hover,
.menu a.active {
  color: var(--color-accent);
}

/* icono */

.icons {
  display: flex;
  align-items: center;
}

.org-icon {
  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: #f5f5f5;

  color: #333;

  transition: transform 0.15s ease;
}

.org-icon:hover {
  transform: translateY(-2px);
}

/* =========================
   HERO
========================= */

.hero-section {
  padding-top: 120px;
  background: #f5f1e8;
}

/* contenido */

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 60px;
  text-align: center;
}

/* logo */

.hero-logo img {
  height: 180px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(40px, 7vw, 90px);
  font-weight: 300;
  color: #2f3e2f;
  line-height: 1.05;
  margin-bottom: 10px;
}

/* descripción */

.hero-meta {
  font-size: 18px;
  color: #555;
  letter-spacing: 0.5px;
  line-height: 1.5;
  margin-bottom: 12px;
}

/* distancias */

.hero-distancias {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #c79a2b; /* dorado del branding */
}

/* imagen */

.hero-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: block;
}

/* mobile */

@media (max-width: 768px) {
  .hero-logo img {
    height: 120px;
  }

  .hero-image img {
    height: 350px;
  }
}
/* ===== ABOUT LAYOUT ===== */

.about-section {
  background: #fff;
  padding: clamp(48px, 10vw, 120px) 0;
  color: var(--color-text);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 6vw, 72px);
}

.about-title {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 700;
  /* color: #f5f1e8; */
  letter-spacing: 3px;
  margin-bottom: 60px;
  text-transform: uppercase;
}

/* Imagen a la derecha, alta y limpia */
.about-media {
  margin: 0;
}

.about-media img {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: center bottom;
  will-change: transform;
}

/* zoom suave mientras la sección entra y sale del viewport */
@supports (animation-timeline: view()) {
  .about-media {
    view-timeline-name: --about; /* crea una línea de tiempo ligada a la vista */
    view-timeline-axis: block;
  }
  .about-media img {
    animation: zoom-on-scroll both linear;
    animation-timeline: --about;
    animation-range: entry 0% exit 100%; /* desde que entra hasta que sale */
  }
  @keyframes zoom-on-scroll {
    from {
      transform: scale(1) translateY(0);
    }
    to {
      transform: scale(1.15) translateY(-12px);
    } /* ajustá 1.10~1.2 y el translate */
  }
}

/* Responsive: apilar en mobile */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-media {
    order: 2; /* imagen debajo del texto */
    margin-top: 24px;
  }

  .about-media img {
    display: none;
  }
}

/* ===== TIMELINE LAYOUT ===== */

.timeline-section {
  background: linear-gradient(to bottom, #f3f3f3 0%, #ececec 100%);
  padding: 4rem 1rem 0;
  text-align: center;
}

.timeline {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* =========================
   DESCARGAS – TRAIL TÉCNICO
========================= */

.documentos-section {
  background: #1f2a1f; /* verde montaña profundo */
  padding: 140px 20px;
  text-align: center;
  position: relative;
}

/* Título */

.titulo-documentos {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 700;
  color: #f5f1e8; /* arena clara */
  letter-spacing: 3px;
  margin-bottom: 60px;
  text-transform: uppercase;
}

/* Caja técnica */

.documentos-box {
  background: #2f3e2f; /* panel interno */
  padding: 60px;
  max-width: 850px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.documentos-box p {
  font-size: 18px;
  line-height: 1.8;
  color: #d8d8d8;
  margin-bottom: 50px;
}

/* Botones estilo técnico */

.documentos-botones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.btn-doc {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 220px;
  padding: 14px 28px;

  background: transparent;
  color: #f5f1e8;
  border: 2px solid #c79a2b;

  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;

  transition: all 0.25s ease;
}

.btn-doc:hover {
  background: #c79a2b;
  color: #1f2a1f;
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .documentos-botones {
    flex-direction: column;
    align-items: center;
  }

  .btn-doc {
    width: 100%;
    max-width: 280px;
  }
}

/* =========================
   SPONSORS – TRAIL TÉCNICO
========================= */

.sponsors-section {
  padding: 140px 2rem;
  background: #f5f1e8; /* arena natural */
  text-align: center;
}

/* Header */

.sponsors-header {
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sponsors-icon {
  font-size: 2rem;
  color: #c79a2b; /* dorado técnico */
  margin-bottom: 0.75rem;
}

.sponsors-title {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 700;
  color: #1f2a1f; /* verde montaña */
  letter-spacing: 3px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}
/* 
.sponsors-title::after {
  content: "";
  display: block;
  margin: 0.75rem auto 0;
  width: 60%;
  height: 2px;
  background-color: #c79a2b;
  transition: width 0.3s ease;
} */

.sponsors-header:hover .sponsors-title::after {
  width: 85%;
}

.sponsors-subtitle {
  font-size: 0.95rem;
  color: #555;
  margin-top: 0.75rem;
  max-width: 420px;
  line-height: 1.5;
}

/* Grid */

.sponsors-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.sponsors-group + .sponsors-group {
  margin-top: 4rem;
}

/* Animación entrada */

.sponsor-card {
  background: #ffffff;
  padding: 1.2rem;
  border-radius: 8px; /* menos redondeo, más técnico */
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition:
    transform 0.5s ease,
    box-shadow 0.5s ease,
    opacity 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 170px;
  height: 120px;

  opacity: 0;
  transform: translateY(40px);
}

.sponsor-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Imagen */

.sponsor-card img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

/* Tiers */

.sponsor-card.tier-1 {
  width: 230px;
  height: 150px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  transition-delay: 0.1s;
}

.sponsor-card.tier-2 {
  width: 210px;
  height: 140px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition-delay: 0.2s;
}

.sponsor-card.tier-3 {
  width: 190px;
  height: 130px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition-delay: 0.3s;
}

.sponsor-card.tier-4,
.sponsor-card.tier-5 {
  transition-delay: 0.4s;
  opacity: 0.9;
}

/* Hover técnico elegante */

.sponsor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.sponsor-card:hover img {
  transform: scale(1.05);
}

/* Responsive */

@media (max-width: 768px) {
  .sponsor-card {
    width: 130px !important;
    height: 95px !important;
    padding: 0.8rem;
  }

  .sponsors-group {
    gap: 1.5rem;
  }

  .sponsors-subtitle {
    font-size: 0.85rem;
  }

  .sponsors-icon {
    font-size: 1.5rem;
  }
}

/* =========================
   FOOTER – TRAIL TÉCNICO
========================= */

.site-footer {
  background: #1f2a1f;
  color: #f5f1e8;
  padding-top: 80px;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 60px;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Logo */

.footer-brand img {
  height: 110px;
  margin-bottom: 25px;
}

/* Organización */

.footer-org {
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

/* Mail */

.footer-mail {
  color: #f5f1e8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;

  transition: color 0.2s ease;
}

.footer-mail:hover {
  color: #c79a2b;
}

/* Redes */

.footer-social {
  margin-top: 25px;
  display: flex;
  gap: 18px;
}

.footer-social a {
  color: #f5f1e8;
  font-size: 1.4rem;

  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.footer-social a:hover {
  color: #c79a2b;
  transform: translateY(-3px);
}

/* Bottom */

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}
