/* ==========================================================
   Senderos Viajes y Turismo — Landing
   Paleta tomada del logo: verde bosque, negro y blanco
   ========================================================== */

:root {
  --green: #3D5437;
  --green-light: #5f7a57;
  --green-soft: #a9bba2;
  --green-dark: #26361f;
  --ink: #141c11;
  --text: #1d2419;
  --muted: #5b6656;
  --paper: #f6f7f3;
  --mist: #e8ede5;
  --white: #ffffff;

  --radius: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-loading { overflow: hidden; }

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

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

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.08;
  margin: 0;
  letter-spacing: -.02em;
}

.container {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--paper);
  transition: opacity .6s var(--ease), visibility .6s;
}
.preloader__icon {
  width: 56px;
  animation: grow 1.2s var(--ease) infinite alternate;
}
.preloader.is-done { opacity: 0; visibility: hidden; }

@keyframes grow {
  from { transform: scaleY(.6); opacity: .4; transform-origin: bottom; }
  to   { transform: scaleY(1);  opacity: 1;  transform-origin: bottom; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s, box-shadow .3s, transform .3s var(--ease);
  will-change: transform;
}
.btn .ico { width: 20px; height: 20px; fill: currentColor; }
.btn--light { background: var(--white); color: var(--green-dark); }
.btn--light:hover { background: var(--mist); box-shadow: 0 12px 30px -10px rgba(0,0,0,.45); }
.btn--ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--sm { padding: .55rem 1.1rem; font-size: .9rem; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 1.2rem 0;
  transition: padding .4s var(--ease), background .4s, box-shadow .4s, transform .4s var(--ease);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav__logo img {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter .4s, height .4s var(--ease);
}
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a:not(.btn) {
  position: relative;
  color: rgba(255,255,255,.85);
  font-weight: 500;
  font-size: .95rem;
  transition: color .3s;
}
.nav__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__links a:not(.btn):hover { color: var(--white); }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

.nav.is-scrolled {
  padding: .7rem 0;
  background: rgba(246,247,243,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 30px -18px rgba(20,28,17,.5);
}
.nav.is-scrolled .nav__logo img { filter: none; height: 42px; }
.nav.is-scrolled .nav__links a:not(.btn) { color: var(--text); }
.nav.is-scrolled .nav__links a:not(.btn):hover { color: var(--green); }
.nav.is-scrolled .nav__cta { background: var(--green); color: var(--white); }
.nav.is-scrolled .nav__cta:hover { background: var(--green-dark); }
.nav.is-hidden { transform: translateY(-110%); }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.nav__toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--white);
  transition: transform .4s var(--ease), top .4s var(--ease), background .3s;
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav.is-scrolled .nav__toggle span { background: var(--ink); }
.nav.is-open .nav__toggle span { background: var(--white); }
.nav.is-open .nav__toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}
.hero__sky {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 60% 50% at 70% 20%, rgba(169,187,162,.35), transparent 70%),
    linear-gradient(180deg, #0f150d 0%, #1e2a19 45%, #3D5437 100%);
}
.hero__layer {
  position: absolute;
  left: -5%;
  bottom: 0;
  width: 110%;
  max-width: none;
  height: 52%;
  z-index: -2;
  will-change: transform;
}
.hero__layer--far { height: 70%; }
.hero__layer--front { z-index: -1; }

.hero__snow {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
.hero__snow i {
  position: absolute;
  top: -10px;
  border-radius: 50%;
  background: rgba(255,255,255,.8);
  animation: fall linear infinite;
}
@keyframes fall {
  to { transform: translate3d(var(--x, 20px), 110vh, 0); }
}

.hero__content { padding: 8rem 0 10rem; max-width: 860px; margin-left: max(20px, (100% - 1180px) / 2); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1.4rem;
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green-soft);
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.eyebrow--dark { color: var(--green); }

.hero__title {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  font-weight: 800;
  margin-bottom: 1.6rem;
}
.hero__title em { font-style: normal; }
.hero__title em .word > span {
  background: linear-gradient(90deg, #ffffff, var(--green-soft), #ffffff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 620px;
  color: rgba(255,255,255,.82);
  margin: 0 0 2.4rem;
}
.hero__lead strong { color: var(--white); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  width: 28px; height: 46px;
  margin-left: -14px;
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 20px;
}
.hero__scroll span {
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--white);
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(16px); }
}

/* Texto dividido en palabras */
.split .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .08em;
}
.split .word > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1s var(--ease);
  transition-delay: calc(var(--i) * 70ms + .2s);
}
.split.is-in .word > span { transform: none; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  padding: 1.3rem 0;
  border-block: 1px solid rgba(255,255,255,.06);
}
.marquee__track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 30s linear infinite;
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 600;
  white-space: nowrap;
}
.marquee__track i { color: var(--green-light); font-style: normal; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(5rem, 10vw, 8rem) 0; }
.section--dark { background: var(--green-dark); color: var(--white); }
.section__head { margin-bottom: 3.5rem; max-width: 640px; }
.section__title { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 700; }

/* ---------- Cards servicios ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  position: relative;
  padding: 2.4rem 2rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--mist);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: box-shadow .5s var(--ease), border-color .5s, transform .3s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(61,84,55,.12), transparent 45%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.card:hover { box-shadow: 0 30px 60px -30px rgba(38,54,31,.45); border-color: var(--green-soft); }
.card:hover::before { opacity: 1; }
.card__num {
  position: absolute;
  top: 1.4rem; right: 1.6rem;
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--mist);
  transition: color .5s;
}
.card:hover .card__num { color: var(--green-soft); }
.card__icon {
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--green);
  margin-bottom: 1.6rem;
  transition: transform .5s var(--ease), border-radius .5s var(--ease);
}
.card:hover .card__icon { transform: rotate(-8deg) scale(1.08); border-radius: 50%; }
.card__icon svg {
  width: 26px; height: 26px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 { font-size: 1.45rem; margin-bottom: .7rem; }
.card p { margin: 0; color: var(--muted); }

/* ---------- Destinos ---------- */
.destinos { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.destino {
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .6s var(--ease), border-color .5s;
}
.destino:hover { border-color: rgba(255,255,255,.25); }
.destino__art { aspect-ratio: 16 / 10; overflow: hidden; }
.destino__art svg {
  width: 100%; height: 100%;
  transition: transform 1.2s var(--ease);
}
.destino:hover .destino__art svg { transform: scale(1.08); }
.destino__body { padding: 1.8rem 2rem 2.2rem; }
.destino__tag {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-soft);
  font-weight: 600;
}
.destino h3 { font-size: 2rem; margin: .5rem 0 .7rem; }
.destino p { margin: 0; color: rgba(255,255,255,.72); }

.wave { animation: wave 4s ease-in-out infinite; }
.wave--2 { animation-delay: -2s; }
@keyframes wave {
  50% { transform: translateX(-20px); }
}

/* ---------- Pasos ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 28px; left: 28px; right: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--green) 0 var(--progress, 0%), var(--mist) var(--progress, 0%));
}
.step { position: relative; }
.step__dot {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--green);
  color: var(--green);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  position: relative;
  transition: background .4s, color .4s;
}
.step:hover .step__dot { background: var(--green); color: var(--white); }
.step h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) 0;
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, rgba(95,122,87,.55), transparent 60%),
    var(--green);
  color: var(--white);
  overflow: hidden;
}
.contact::after {
  content: "";
  position: absolute;
  right: -80px; bottom: -120px;
  width: 420px; height: 420px;
  background: url("../img/isotipo.png") center / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: .06;
  pointer-events: none;
}
.contact__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.contact .eyebrow { color: var(--green-soft); }
.contact__text p:last-child { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 480px; }
.contact__cards { display: grid; gap: 1rem; }
.contact__card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  transition: background .4s, border-color .4s, transform .4s var(--ease);
}
.contact__card:not(.contact__card--static):hover { background: var(--white); color: var(--green-dark); }
.contact__card small {
  display: block;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .7;
}
.contact__card strong { font-family: var(--font-head); font-size: clamp(1.1rem, 2.4vw, 1.45rem); }
.contact__icon {
  flex: none;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--green);
}
.contact__icon svg { width: 24px; height: 24px; fill: currentColor; }
.contact__card--static .contact__icon svg { fill: none; stroke: currentColor; stroke-width: 2; }
.contact__card:not(.contact__card--static):hover .contact__icon { background: var(--green); color: var(--white); }
.contact__arrow {
  margin-left: auto;
  font-size: 1.5rem;
  transition: transform .4s var(--ease);
}
.contact__card:hover .contact__arrow { transform: translateX(6px); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.65); padding: 2.5rem 0; font-size: .92rem; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.footer p { margin: 0; }
.footer__logo { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.footer__credit a {
  color: var(--white);
  font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .4s var(--ease), color .3s;
}
.footer__credit a:hover { background-size: 100% 1px; color: var(--green-soft); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 60px; height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  box-shadow: 0 14px 30px -10px rgba(20,28,17,.6);
  transform: scale(0);
  transition: transform .5s var(--ease), background .3s;
}
.wa-float.is-visible { transform: scale(1); }
.wa-float:hover { background: var(--green-dark); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; position: relative; }
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  from { transform: scale(1); opacity: .6; }
  to { transform: scale(1.7); opacity: 0; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .steps::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--green) 0 var(--progress, 0%), var(--mist) var(--progress, 0%)); }
  .step { padding-left: 80px; }
  .step__dot { position: absolute; left: 0; top: 0; margin: 0; }
  .destinos, .contact__inner { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 1.8rem;
    background: var(--green-dark);
    clip-path: circle(0 at calc(100% - 42px) 42px);
    transition: clip-path .7s var(--ease);
  }
  .nav.is-open .nav__links { clip-path: circle(150% at calc(100% - 42px) 42px); }
  .nav__links a:not(.btn),
  .nav.is-scrolled .nav__links a:not(.btn) { color: var(--white); font-size: 1.6rem; font-family: var(--font-head); }
  .nav.is-open { background: transparent; box-shadow: none; backdrop-filter: none; }
  .nav.is-open .nav__logo img { filter: brightness(0) invert(1); position: relative; z-index: 2; }
  .nav__logo { position: relative; z-index: 2; }
  .hero__content { padding: 7rem 0 9rem; }
  .footer__inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html { scroll-behavior: auto; }
  .hero__snow { display: none; }
}
