/* =========================================================
   MÉRIDA CLANDESTINA · styles.css
   Enfoque Mobile-First: los estilos base son para teléfono
   y se amplían con @media (min-width: ...)
   ========================================================= */

/* ---------- 1. Variables (paleta andina) ---------- */
:root {
  --forest: #1f4d3a;      /* verde bosque */
  --pine:   #2d6a4f;      /* verde pino */
  --moss:   #6a994e;      /* verde musgo / frailejón */
  --mist:   #e8f1f2;      /* neblina */
  --sky:    #8ecae6;      /* azul cielo */
  --night:  #0b2a3a;      /* azul noche de montaña */
  --gold:   #e0a526;      /* dorado cálido */
  --gold-d: #c58b12;
  --sand:   #f6f1e7;      /* arena / fondo claro */
  --ink:    #1d2b2a;      /* texto */
  --muted:  #5c6b69;
  --white:  #ffffff;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(11, 42, 58, .12);
  --shadow-lg: 0 20px 50px rgba(11, 42, 58, .22);

  --font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-title: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* ---------- 2. Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul { padding: 0; margin: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1180px, 100% - 2.2rem); margin-inline: auto; }
.section { padding: 4.5rem 0; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .8rem;
}
.eyebrow.dark { color: var(--pine); }

.section-head { max-width: 680px; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); color: var(--forest); }
.section-head p { color: var(--muted); }
.section-head.light h2 { color: var(--white); }
.section-head.light p { color: rgba(255,255,255,.82); }

/* ---------- 3. Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600; font-size: .95rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .55rem 1.2rem; font-size: .85rem; }
.btn-gold { background: var(--gold); color: #2a1d00; box-shadow: 0 8px 20px rgba(224,165,38,.4); }
.btn-gold:hover { background: var(--gold-d); }
.btn-ghost { border-color: rgba(255,255,255,.8); color: var(--white); background: rgba(255,255,255,.08); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: var(--white); color: var(--forest); }
.btn-green { background: var(--forest); color: var(--white); }
.btn-green:hover { background: var(--pine); }
.btn-outline { border-color: var(--pine); color: var(--pine); background: transparent; }
.btn-outline:hover { background: var(--pine); color: var(--white); }
.btn-wa { background: #25d366; color: #05331a; width: 100%; font-size: 1.02rem; box-shadow: 0 10px 24px rgba(37,211,102,.35); }
.btn-wa:hover { background: #1ebe5a; }
.btn-wa.disabled { pointer-events: none; opacity: .5; }

/* ---------- 4. Header / navegación ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: .85rem 0;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.site-header.scrolled {
  background: rgba(11, 42, 58, .94);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 24px rgba(0,0,0,.2);
  padding: .55rem 0;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--white); font-size: 1.1rem; }
.brand-mark { color: var(--sky); display: grid; place-items: center; }
.brand-text strong { color: var(--gold); font-family: var(--font-title); }

.nav-toggle {
  width: 44px; height: 44px; background: transparent; border: 0;
  display: grid; align-content: center; gap: 6px; padding: 10px; z-index: 60;
}
.nav-toggle span { height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-menu {
  position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
  background: var(--night);
  display: flex; flex-direction: column; justify-content: center; gap: 1.4rem;
  padding: 2rem;
  transform: translateX(100%);
  transition: transform .35s ease;
  z-index: 55;
}
.nav-menu.open { transform: translateX(0); box-shadow: -20px 0 50px rgba(0,0,0,.35); }
.nav-menu a { color: var(--white); font-size: 1.1rem; font-weight: 500; }
.nav-menu a:not(.btn):hover { color: var(--gold); }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  color: var(--white);
  /* Capas: degradado oscuro + FOTO + degradado de respaldo.
     👉 Para usar tu propia foto, guarda una imagen en public/img/hero.jpg
        (si no existe, se ve el degradado andino). */
  background:
    linear-gradient(180deg, rgba(11,42,58,.55) 0%, rgba(11,42,58,.25) 45%, rgba(31,77,58,.65) 100%),
    url('img/hero.jpg') center / cover no-repeat,
    linear-gradient(160deg, #0b2a3a 0%, #1f4d3a 45%, #6a994e 80%, #8ecae6 100%);
  padding: 7rem 0 9rem;
}
.hero-content { position: relative; z-index: 2; }
.hero h1 { max-width: 760px; font-size: clamp(2.4rem, 8.5vw, 4.6rem); font-weight: 800; text-shadow: 0 4px 24px rgba(0,0,0,.35); }
.hero h1 span { color: var(--gold); }
.hero-sub { font-size: clamp(1rem, 2.6vw, 1.2rem); max-width: 580px; color: rgba(255,255,255,.92); margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-badges li {
  font-size: .82rem; padding: .4rem .9rem;
  border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
}
.hero-mountains { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(90px, 16vw, 200px); z-index: 1; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(circle at 80% 20%, rgba(142,202,230,.35), transparent 55%);
}

/* ---------- 6. Sobre nosotros ---------- */
.about { background: var(--sand); }
.about-grid { display: grid; gap: 2.5rem; align-items: center; }
.about-text h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); color: var(--forest); }
.about-text p { color: var(--muted); }
.about-cards { display: grid; gap: 1rem; }
.feature {
  background: var(--white); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow);
  border-top: 4px solid var(--moss);
}
.feature:nth-child(even) { border-top-color: var(--gold); }
.feature-ico { font-size: 1.8rem; }
.feature h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; margin: .4rem 0 .3rem; color: var(--forest); }
.feature p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---------- 7. Catálogo ---------- */
.plans { background: linear-gradient(180deg, var(--sand) 0%, var(--mist) 100%); }

.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.chip {
  padding: .5rem 1.1rem; border-radius: 999px;
  border: 1.5px solid var(--pine); color: var(--pine); background: transparent;
  font-size: .85rem; font-weight: 500; transition: all .2s ease;
}
.chip:hover { background: rgba(45,106,79,.1); }
.chip.active { background: var(--pine); color: var(--white); }

.plans-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }

.plan-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan-card.hidden { display: none; }

.plan-media {
  position: relative; height: 170px;
  display: grid; place-items: center;
  color: var(--white);
  background-size: cover; background-position: center;
}
.plan-emoji { font-size: 3.6rem; filter: drop-shadow(0 6px 10px rgba(0,0,0,.3)); }
.plan-tag {
  position: absolute; top: .8rem; left: .8rem;
  background: rgba(11,42,58,.75); backdrop-filter: blur(4px);
  font-size: .72rem; padding: .25rem .7rem; border-radius: 999px; letter-spacing: .04em;
}
.plan-duration {
  position: absolute; bottom: .8rem; right: .8rem;
  background: var(--gold); color: #2a1d00;
  font-size: .75rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px;
}

/* Fondos de tarjeta (cada plan elige uno con la propiedad "theme") */
.theme-forest { background-image: linear-gradient(135deg, #1f4d3a, #6a994e); }
.theme-sky    { background-image: linear-gradient(135deg, #0b2a3a, #4a9bc0); }
.theme-gold   { background-image: linear-gradient(135deg, #8a5a0a, #e0a526); }
.theme-mist   { background-image: linear-gradient(135deg, #3d6b7a, #a8d0dd); }
.theme-night  { background-image: linear-gradient(135deg, #0b1d33, #3b4a8a); }
.theme-earth  { background-image: linear-gradient(135deg, #5a3d2b, #b08968); }

.plan-body { padding: 1.3rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.plan-body h3 { font-size: 1.35rem; color: var(--forest); }
.plan-body > p { font-size: .92rem; color: var(--muted); }

.plan-price { margin: .2rem 0 1rem; font-size: .85rem; color: var(--muted); }
.plan-price strong { font-size: 1.3rem; color: var(--pine); font-family: var(--font-title); }

.itinerary { border-top: 1px dashed #cfd9d6; padding-top: .6rem; margin-bottom: 1rem; }
.itinerary summary {
  cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--pine);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.itinerary summary::-webkit-details-marker { display: none; }
.itinerary summary::after { content: '+'; font-size: 1.3rem; transition: transform .2s; }
.itinerary[open] summary::after { content: '−'; }
.itinerary ol { margin: .8rem 0 .4rem; padding: 0; list-style: none; counter-reset: stop; }
.itinerary li {
  counter-increment: stop; position: relative;
  padding: .15rem 0 .15rem 2rem; font-size: .88rem;
}
.itinerary li::before {
  content: counter(stop);
  position: absolute; left: 0; top: .2rem;
  width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--mist); color: var(--forest);
  font-size: .7rem; font-weight: 600; display: grid; place-items: center;
}
.itinerary .meta { font-size: .8rem; color: var(--muted); margin: .5rem 0 0; }
.itinerary .meta b { color: var(--forest); }

.plan-actions { margin-top: auto; }
.plan-actions .btn { width: 100%; }

/* ---------- 8. Cotizador ---------- */
.quoter {
  background:
    linear-gradient(rgba(11,42,58,.9), rgba(31,77,58,.93)),
    url('img/cotizador.jpg') center / cover no-repeat,
    linear-gradient(160deg, #0b2a3a, #1f4d3a);
  position: relative;
}
.quoter-card {
  display: grid; gap: 0;
  background: var(--white);
  border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.quoter-form { padding: 1.6rem 1.4rem; display: grid; gap: 1.2rem; align-content: start; }
.field { display: grid; gap: .4rem; }
.field-row { display: grid; gap: 1.2rem; }
.field label { font-weight: 600; font-size: .9rem; color: var(--forest); }
.opt { font-weight: 400; color: var(--muted); font-size: .8rem; }
.hint { color: var(--muted); font-size: .78rem; }

.field select,
.field input[type="number"],
.field input[type="text"],
.field input[type="date"] {
  width: 100%; padding: .85rem 1rem;
  border: 1.5px solid #cfd9d6; border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fbfdfc;
  transition: border-color .2s, box-shadow .2s;
}
.field select:focus, .field input:focus {
  outline: none; border-color: var(--pine); box-shadow: 0 0 0 4px rgba(45,106,79,.15);
}
.stepper { display: flex; align-items: stretch; gap: .5rem; }
.stepper input { text-align: center; font-weight: 600; font-size: 1.1rem; }
.stepper button {
  width: 52px; border-radius: var(--radius-sm); border: 1.5px solid var(--pine);
  background: var(--white); color: var(--pine); font-size: 1.5rem; line-height: 1;
  transition: background .2s, color .2s;
}
.stepper button:hover { background: var(--pine); color: var(--white); }

/* Remueve flechas nativas del input number */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

.quote-result {
  background: linear-gradient(160deg, var(--forest), var(--night));
  color: var(--white); padding: 1.8rem 1.4rem;
  display: flex; flex-direction: column; gap: .4rem;
}
.result-label { text-transform: uppercase; letter-spacing: .15em; font-size: .75rem; color: var(--sky); margin: 0; }
.result-total { font-family: var(--font-title); font-size: clamp(2.6rem, 9vw, 3.6rem); font-weight: 800; color: var(--gold); margin: 0; line-height: 1.1; }
.result-total small { font-size: 1rem; font-family: var(--font-body); color: rgba(255,255,255,.7); font-weight: 400; }
.result-note { min-height: 1.4em; font-size: .85rem; color: rgba(255,255,255,.85); margin: 0 0 .6rem; }
.result-note.warn { color: #ffd98a; }

.result-list { margin: 0 0 1.2rem; border-top: 1px solid rgba(255,255,255,.18); }
.result-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .88rem;
}
.result-list li span:first-child { color: rgba(255,255,255,.7); }
.result-list li span:last-child { font-weight: 500; text-align: right; }
.legal { font-size: .72rem; color: rgba(255,255,255,.6); margin: .8rem 0 0; }

/* ---------- 9. Contacto ---------- */
.contact { background: var(--sand); text-align: center; }
.contact .section-head { margin-inline: auto; }
.phone-link {
  display: inline-block; font-family: var(--font-title); font-size: clamp(1.6rem, 6vw, 2.2rem);
  color: var(--forest); font-weight: 700; margin-bottom: 2rem;
}
.social-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: 720px; margin-inline: auto; }
.social {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: 1.4rem 1rem; border-radius: var(--radius);
  color: var(--white); font-weight: 600; font-size: .95rem;
  box-shadow: var(--shadow); transition: transform .25s ease;
}
.social:hover { transform: translateY(-5px); }
.social.ig { background: linear-gradient(135deg, #833ab4, #fd1d1d 60%, #fcb045); }
.social.fb { background: #1877f2; }
.social.tt { background: #111; }
.social.wa { background: #25d366; color: #05331a; }

/* ---------- 10. Footer y botón flotante ---------- */
.site-footer { background: var(--night); color: rgba(255,255,255,.8); padding: 2rem 0; text-align: center; font-size: .9rem; }
.site-footer p { margin: .2rem 0; }
.site-footer .small { font-size: .78rem; color: rgba(255,255,255,.5); }
.site-footer strong { color: var(--gold); }
.admin-link { color: rgba(255,255,255,.45); text-decoration: underline dotted; }
.admin-link:hover { color: var(--gold); }

.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #05331a;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(37,211,102,.5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
  70% { box-shadow: 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- 11. Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float { animation: none; }
}

/* =========================================================
   TABLET  (≥ 700px)
   ========================================================= */
@media (min-width: 700px) {
  .about-cards { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .social-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================
   ESCRITORIO  (≥ 960px)
   ========================================================= */
@media (min-width: 960px) {
  .section { padding: 6rem 0; }

  /* Menú horizontal */
  .nav-toggle { display: none; }
  .nav-menu {
    position: static; transform: none; width: auto; background: transparent;
    flex-direction: row; align-items: center; padding: 0; gap: 1.8rem; box-shadow: none;
  }
  .nav-menu a { font-size: .95rem; }

  .about-grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
  .plans-grid { grid-template-columns: repeat(3, 1fr); }

  .quoter-card { grid-template-columns: 1.1fr 1fr; }
  .quoter-form { padding: 2.4rem; }
  .quote-result { padding: 2.4rem; }
}
