/* ===================================================================
   Joshual Tours — estilos
   Paleta oficial:
   verde #2F5D50 · salvia #A4B69A · crema #F2EFE7 · caramelo #D4A373 · noche #1E293B
   =================================================================== */

:root {
  --green:  #2F5D50;
  --green-d:#244a40;
  --sage:   #A4B69A;
  --sage-l: #d7e0d2;
  --cream:  #F2EFE7;
  --tan:    #D4A373;
  --navy:   #1E293B;
  --white:  #ffffff;
  --wa:     #25D366;

  --maxw: 1140px;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(30,41,59,.10);
  --shadow-sm: 0 4px 14px rgba(30,41,59,.08);

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

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px; /* compensa el header fijo */
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--navy);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Tipografía ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; color: var(--green); }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); margin: 0 0 .5em; }
h3 { font-size: 1.3rem; margin: 0 0 .4em; }
p  { margin: 0 0 1em; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--tan);
  margin: 0 0 .6em;
}
.eyebrow-dark { color: var(--green); }
.lead { font-size: 1.12rem; max-width: 65ch; }
.on-dark { color: var(--cream); }
h2.on-dark { color: var(--white); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .95rem;
  padding: .72em 1.4em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: .9em 1.8em; font-size: 1.02rem; }

.btn-wa { background: var(--green); color: var(--white); }
.btn-wa:hover { background: var(--green-d); }

.btn-ghost { background: rgba(255,255,255,.12); color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }

.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(30,41,59,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 84px;
}
.brand-logo { height: 66px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.nav > a {
  font-weight: 500;
  font-size: .96rem;
  color: var(--navy);
  transition: color .2s ease;
}
.nav > a:hover { color: var(--green); }
.nav-cta { color: var(--white) !important; padding: .55em 1.1em; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: .25s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  color: var(--white);
  /* Para foto real: añade  background-image: url('assets/hero.jpg');  y borra el gradiente base */
  background:
    radial-gradient(120% 90% at 80% 10%, rgba(164,182,154,.28), transparent 60%),
    linear-gradient(150deg, #35695a 0%, var(--green) 42%, var(--navy) 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(30,41,59,.35), transparent 70%);
}
.hero-content { position: relative; padding-block: 90px; max-width: 760px; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: italic; color: var(--sage-l); }
.hero-sub { font-size: 1.2rem; color: rgba(255,255,255,.92); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-sage  { background: var(--sage-l); }
.section-green { background: var(--green); }
.section-green .eyebrow { color: var(--sage-l); }

/* ---------- El tour ---------- */
.tour-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 1.5rem;
}
.facts {
  list-style: none;
  padding: 0; margin: 1.8rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--sage);
  border-radius: var(--radius);
  overflow: hidden;
}
.facts li {
  background: var(--white);
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
}
.fact-num { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--green); }
.fact-label { font-size: .85rem; color: #5b6b63; }

.photo-placeholder {
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, var(--sage), var(--green));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 500;
  letter-spacing: .04em;
  box-shadow: var(--shadow);
  min-height: 220px;
}
.photo-placeholder span { opacity: .9; padding: 1rem; }
.ph-tall { min-height: 380px; }

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 90px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--sage);
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.5rem;
  padding-bottom: 1.8rem;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline .time {
  font-weight: 600;
  color: var(--tan);
  text-align: right;
  padding-top: 2px;
}
.timeline li > div { position: relative; padding-left: 1.6rem; }
.timeline li > div::before {
  content: "";
  position: absolute;
  left: -8px; top: 7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--sage-l);
}
.timeline h3 { color: var(--green); margin-bottom: .2em; }
.timeline p { margin: 0; color: #3f4a44; }

/* ---------- Precios ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  margin-top: 1.5rem;
}
.price-card {
  position: relative;
  background: var(--white);
  border: 1px solid #e6e2d7;
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.price-card.featured { border: 2px solid var(--green); box-shadow: var(--shadow); }
.badge {
  position: absolute;
  top: -12px; left: 1.8rem;
  background: var(--tan);
  color: var(--white);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35em .9em;
  border-radius: 999px;
}
.price { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: var(--green); margin: .2em 0 .6em; }
.price span { font-size: .9rem; font-family: var(--sans); color: #6a7871; }
.check { list-style: none; padding: 0; margin: 0 0 1.6rem; flex: 1; }
.check li { position: relative; padding-left: 1.7rem; margin-bottom: .55rem; }
.check li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--green);
  font-weight: 700;
}
.price-card .btn { align-self: flex-start; }

/* ---------- Recomendaciones ---------- */
.recos { margin-top: 3rem; }
.reco-list {
  list-style: none; padding: 0; margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .6rem 1.5rem;
}
.reco-list li { position: relative; padding-left: 1.6rem; }
.reco-list li::before {
  content: "";
  position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--tan);
}

/* ---------- Nosotros ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.value-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  backdrop-filter: blur(2px);
}
.value-card h3 { color: var(--white); }
.value-card p { color: rgba(255,255,255,.9); margin: 0; }

/* ---------- FAQ ---------- */
.faq { margin-top: 1.5rem; }
.faq details {
  background: var(--white);
  border: 1px solid #e6e2d7;
  border-radius: 12px;
  padding: .2rem 1.2rem;
  margin-bottom: .7rem;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--green);
  padding: .95rem 1.8rem .95rem 0;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400;
  color: var(--tan);
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1rem; color: #3f4a44; }

.policies-title { margin-top: 2.6rem; }
.policies { padding-left: 1.2rem; margin-top: .5rem; }
.policies li { margin-bottom: .6rem; }

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  margin-top: 2rem;
}
.contact-item {
  display: block;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  margin-bottom: 1rem;
  transition: background .2s ease;
}
.contact-item:hover { background: rgba(255,255,255,.18); }
.contact-item strong { display: block; color: var(--sage-l); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .2rem; }
.contact-item span { color: var(--white); }
.socials { display: flex; gap: 1rem; margin-top: .4rem; }
.socials a {
  color: var(--white);
  font-weight: 500;
  border-bottom: 2px solid var(--tan);
  padding-bottom: 2px;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.85); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 3rem;
}
.footer-brand { max-width: 340px; }
.footer-logo { height: 116px; width: auto; margin-bottom: 1rem; }
.footer-brand p { color: rgba(255,255,255,.7); margin: 0; }
.footer-links { display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { color: rgba(255,255,255,.85); }
.footer-links a:hover { color: var(--sage-l); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.2rem; font-size: .85rem; color: rgba(255,255,255,.6); }

/* ---------- Botón flotante WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 60;
  width: 58px; height: 58px;
  background: var(--wa);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  transition: transform .18s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: 84px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    box-shadow: 0 12px 24px rgba(30,41,59,.12);
    padding: .5rem 22px 1.2rem;
    display: none;
  }
  .nav.open { display: flex; }
  .nav > a { padding: .85rem 0; border-bottom: 1px solid #eee; }
  .nav-cta { text-align: center; margin-top: .8rem; border-bottom: 0 !important; }
  .nav-toggle { display: flex; }

  .tour-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .facts,
  .reco-list { grid-template-columns: 1fr; }
  .timeline::before { left: 70px; }
  .timeline li { grid-template-columns: 70px 1fr; gap: 1rem; }
  .hero { min-height: 78vh; }
  .eyebrow { letter-spacing: .1em; font-size: .7rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
