/* ===========================================================
   Centinela Andino Navegación — Landing
   Paleta tomada de las fotos: lago turquesa, azul profundo,
   blanco, acento arena. Mobile-first.
   =========================================================== */

:root {
  --blue-deep:   #0b3d5c;   /* azul profundo del lago/cielo */
  --blue:        #14689e;   /* azul medio */
  --teal:        #2ba0a8;   /* turquesa del agua */
  --sand:        #e0a96d;   /* acento cálido (arena) */
  --sand-dark:   #c8894b;
  --whatsapp:    #25d366;
  --whatsapp-dk: #1da851;
  --ink:         #15242e;   /* texto principal */
  --muted:       #5a6b75;   /* texto secundario */
  --bg:          #ffffff;
  --bg-alt:      #f4f8fa;   /* off-white azulado */
  --border:      #e2eaee;
  --shadow:      0 10px 40px rgba(11, 61, 92, 0.10);
  --shadow-sm:   0 4px 16px rgba(11, 61, 92, 0.08);
  --radius:      18px;
  --container:   1140px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}
.container--narrow { max-width: 760px; }

/* ===================== BOTONES ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--whatsapp { background: var(--whatsapp); color: #fff; box-shadow: 0 8px 22px rgba(37,211,102,.35); }
.btn--whatsapp:hover { background: var(--whatsapp-dk); }

.btn--ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.6);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(255,255,255,.22); }

.btn--block { width: 100%; }
.btn--lg { padding: 18px 38px; font-size: 1.1rem; }

/* ===================== HEADER ===================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background .3s ease, box-shadow .3s ease;
  padding: 18px 0;
}
.header.is-scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}

.nav { display: flex; align-items: center; justify-content: space-between; }

.nav__logo {
  position: relative;
  display: block;
  width: 112px;
  height: 112px;
  transition: width .3s ease, height .3s ease;
}
.nav__logo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity .3s ease;
}
.nav__logo-img--dark { opacity: 0; }
.header.is-scrolled .nav__logo { width: 52px; height: 52px; }
.header.is-scrolled .nav__logo-img--light { opacity: 0; }
.header.is-scrolled .nav__logo-img--dark { opacity: 1; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav__link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  transition: color .2s ease, opacity .2s ease;
  opacity: .92;
}
.nav__link:hover { opacity: 1; }
.header.is-scrolled .nav__link { color: var(--ink); }

.nav__lang { display: flex; align-items: center; gap: 6px; }
.lang-btn {
  background: none;
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  opacity: .55;
  font-family: inherit;
  transition: opacity .2s ease;
}
.lang-btn.is-active { opacity: 1; text-decoration: underline; }
.nav__lang span { color: #fff; opacity: .5; }
.header.is-scrolled .lang-btn,
.header.is-scrolled .nav__lang span { color: var(--ink); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1100;
}
.nav__toggle span {
  width: 26px; height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: .3s ease;
}
.header.is-scrolled .nav__toggle span { background: var(--ink); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  background: url('assets/hero-desktop.jpeg') center/cover no-repeat;
  background-attachment: scroll;
}
/* En viewports verticales la foto apaisada se recortaria a los costados
   y cortaria proa y popa: ahi va la original vertical, con el texto centrado. */
@media (max-aspect-ratio: 1/1) {
  .hero {
    align-items: center;
    background-image: url('assets/hero-mobile.jpeg');
  }
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,61,92,.55) 0%, rgba(11,61,92,.25) 40%, rgba(11,61,92,.65) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 720px;
  padding-top: 160px;
  padding-bottom: 72px;
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .8rem;
  font-weight: 600;
  opacity: .9;
  margin-bottom: 18px;
}
.hero__title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin-bottom: 20px;
  text-shadow: 0 2px 30px rgba(0,0,0,.25);
}
.hero__subtitle {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  font-weight: 400;
  opacity: .95;
  margin-bottom: 36px;
  max-width: 560px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===================== SECCIONES ===================== */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }

.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--blue-deep);
  margin-bottom: 16px;
}
.section__lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 48px;
}

/* ===================== CARDS (experiencias) ===================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--blue);
  background: #eaf3f8;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.card__tag--accent { color: var(--sand-dark); background: #fcf1e3; }
.card h3 { font-size: 1.3rem; color: var(--blue-deep); margin-bottom: 10px; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: .98rem; }
.card--feature {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  border: none;
}
.card--feature h3 { color: #fff; }
.card--feature p { color: rgba(255,255,255,.85); }

/* ===================== PRICING ===================== */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 820px;
}
.plan {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 32px;
  box-shadow: var(--shadow-sm);
}
.plan--featured {
  border-color: var(--teal);
  box-shadow: 0 18px 50px rgba(43,160,168,.20);
}
.plan__badge {
  position: absolute;
  top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--teal);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 100px;
  white-space: nowrap;
}
.plan__name { font-size: 1.3rem; color: var(--blue-deep); margin-bottom: 6px; }
.plan__price { font-size: 2.6rem; font-weight: 800; color: var(--blue-deep); letter-spacing: -.02em; }
.plan__note { color: var(--muted); font-size: .92rem; margin-bottom: 24px; }
.plan__list { list-style: none; margin-bottom: 28px; }
.plan__list li {
  padding: 9px 0 9px 28px;
  position: relative;
  color: var(--ink);
  font-size: .97rem;
  border-bottom: 1px solid var(--border);
}
.plan__list li:last-child { border-bottom: none; }
.plan__list li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--teal);
  font-weight: 800;
}
.pricing__foot { margin-top: 28px; color: var(--muted); font-size: .95rem; }

/* ===================== FEATURES (qué incluye) ===================== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.feature { text-align: left; }
.feature__icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  line-height: 1;
}
.feature h3 { font-size: 1.15rem; color: var(--blue-deep); margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .96rem; }

/* ===================== GALERÍA ===================== */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ===================== REASONS + TRUST ===================== */
.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}
.reason h3 {
  font-size: 1.25rem;
  color: var(--blue-deep);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--sand);
  display: inline-block;
}
.reason p { color: var(--muted); }

.trust {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: #fff;
  padding: 34px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.trust__icon { font-size: 2.6rem; line-height: 1; flex-shrink: 0; }
.trust__text h3 { font-size: 1.35rem; margin-bottom: 8px; }
.trust__text p { color: rgba(255,255,255,.9); }
.trust__data {
  margin-top: 12px;
  font-size: .88rem;
  opacity: .75;
  font-style: italic;
}

/* ===================== FAQ ===================== */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 22px;
  transition: background .2s ease;
}
.faq__item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--blue-deep);
  padding: 18px 0;
  list-style: none;
  position: relative;
  padding-right: 30px;
  font-size: 1.05rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  color: var(--teal);
  font-weight: 400;
  transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { color: var(--muted); padding-bottom: 20px; }

/* ===================== CTA FINAL ===================== */
.cta {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--teal) 100%);
  padding: 90px 0;
  text-align: center;
  color: #fff;
}
.cta__title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 14px; letter-spacing: -.02em; }
.cta__subtitle { font-size: 1.15rem; opacity: .92; margin-bottom: 34px; }

/* ===================== FOOTER ===================== */
.footer {
  background: var(--ink);
  color: #fff;
  padding: 44px 0;
  text-align: center;
}
.footer__logo { width: 96px; height: 96px; margin: 0 auto 16px; }
.footer__brand { font-weight: 800; font-size: 1.2rem; margin-bottom: 8px; }
.footer__text { opacity: .7; font-size: .95rem; }
.footer__legal { opacity: .5; font-size: .85rem; margin-top: 8px; }

/* ===================== WHATSAPP FLOTANTE ===================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 999;
  width: 60px; height: 60px;
  background: var(--whatsapp);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  transition: transform .2s ease;
  animation: pulse 2.4s infinite;
}
.whatsapp-float:hover { transform: scale(1.08); }
@keyframes pulse {
  0%   { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.4); }
  70%  { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); }
}

/* ===================== REVEAL AL SCROLL ===================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__logo { width: 88px; height: 88px; }
  .nav__menu {
    position: fixed;
    top: 0; right: -100%;
    height: 100vh;
    width: min(80%, 320px);
    background: var(--blue-deep);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding: 40px;
    transition: right .35s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,.25);
  }
  .nav__menu.is-open { right: 0; }
  .nav__link, .header.is-scrolled .nav__link { color: #fff; font-size: 1.2rem; }
  .lang-btn, .header.is-scrolled .lang-btn,
  .nav__lang span, .header.is-scrolled .nav__lang span { color: #fff; }
  .nav__toggle.is-open span { background: #fff; }
  .nav__toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .section { padding: 68px 0; }
  .gallery { grid-template-columns: 1fr; }
  .trust { flex-direction: column; gap: 14px; }
}
