/* ══════════════════════════════════════════════════════════════
   COORDENADA VIAJES — style.css
   Mobile-first. Vanilla CSS. EB Garamond + Arial.
   Colors: --green #2D5016 / --gold #C9A84C / --cream #F5F0E8
══════════════════════════════════════════════════════════════ */

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Variables ────────────────────────────────────────────── */
:root {
  --green:      #2D5016;
  --gold:       #C9A84C;
  --cream:      #F5F0E8;
  --dark-green: #1e3a0f;
  --muted:      #7a6e5a;
  --border:     #d6cfbf;
  --white:      #ffffff;
  --text:       #2a2318;

  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans:  Arial, Helvetica, sans-serif;

  --nav-h:     64px;
  --container: 1120px;
  --radius:    3px;
  --ease:      0.2s ease;
}

/* ── Base ─────────────────────────────────────────────────── */
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
}

/* ── Container ────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Anchor scroll offset (accounts for sticky nav) ──────── */
#viajes, #nosotros, #contacto {
  scroll-margin-top: var(--nav-h);
}


/* ══════════════════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--gold);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* ── Logo ── */
.nav-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity var(--ease);
}
.nav-logo:hover { opacity: 0.82; }
.nav-logo img { display: block; width: 140px; height: auto; }

.nav-logo-text {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 3px;
  color: var(--green);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Nav links ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--ease);
  padding: 4px 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--ease);
}

.nav-links a:hover { color: var(--green); }
.nav-links a:hover::after { width: 100%; }

/* ── Hamburger ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 6px 4px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green);
  border-radius: 1px;
  transition: transform var(--ease), opacity var(--ease);
}

/* ── Mobile nav ── */
@media (max-width: 680px) {
  .nav-inner {
    height: auto;
    flex-wrap: wrap;
    padding: 14px 20px;
  }

  .nav-hamburger { display: flex; }

  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease;
  }

  .nav-links.open { max-height: 220px; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 13px 0;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
  }

  .nav-links a::after { display: none; }

  /* Hamburger → X */
  .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}


/* ══════════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--ease), color var(--ease), border-color var(--ease), opacity var(--ease);
  white-space: nowrap;
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Gold — hero CTA */
.btn-gold {
  background: var(--gold);
  color: var(--dark-green);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: #b8963e;
  border-color: #b8963e;
}

/* Green — trip card CTA */
.btn-green {
  background: var(--green);
  color: var(--cream);
  border-color: var(--green);
}
.btn-green:hover {
  background: var(--dark-green);
  border-color: var(--dark-green);
}

/* Outlined cream — footer on dark bg */
.btn-outline-cream {
  background: transparent;
  color: var(--cream);
  border-color: rgba(245, 240, 232, 0.55);
}
.btn-outline-cream:hover {
  background: var(--gold);
  color: var(--dark-green);
  border-color: var(--gold);
}

/* Outlined dark — simple card */
.btn-outline-dark {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
  padding: 10px 22px;
  font-size: 0.72rem;
}
.btn-outline-dark:hover {
  background: var(--green);
  color: var(--cream);
}


/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
.hero {
  background: var(--green);
  color: var(--cream);
  min-height: calc(88vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
}

.hero-inner {
  max-width: 740px;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 22px;
  letter-spacing: -0.5px;
}

.hero-tagline {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 52px;
  opacity: 0.85;
}

.hero-logo {
  display: block;
  width: min(420px, 70%);
  height: auto;
  margin: 0 auto 48px;
}

.hero-cta {
  font-size: 0.8rem;
  padding: 16px 40px;
  letter-spacing: 2.5px;
}


/* ══════════════════════════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════════════════════════ */
.section {
  padding: 88px 0;
  background: var(--cream);
}

.section-heading {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 400;
  color: var(--green);
  text-align: center;
  margin-bottom: 52px;
}

.section-heading::after {
  content: '';
  display: block;
  width: 36px;
  height: 1.5px;
  background: var(--gold);
  margin: 16px auto 0;
}

.section-heading--left {
  text-align: left;
  margin-bottom: 28px;
}
.section-heading--left::after {
  margin: 16px 0 0;
}


/* ══════════════════════════════════════════════════════════════
   TRIPS GRID
══════════════════════════════════════════════════════════════ */
.trips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  align-items: stretch;
}

@media (max-width: 780px) {
  .trips-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
}

.trips-loading,
.trips-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 1px;
  padding: 64px 0;
}

.trips-empty { font-style: italic; }


/* ══════════════════════════════════════════════════════════════
   TRIP CARD — SHARED
══════════════════════════════════════════════════════════════ */
.trip-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--ease), transform var(--ease);
}

.trip-card:hover {
  box-shadow: 0 10px 36px rgba(45, 80, 22, 0.11);
  transform: translateY(-3px);
}

/* ── Photo / Placeholder ── */
.trip-photo-wrap {
  position: relative;
  width: 100%;
  padding-top: 125%;
  background: var(--green);
  overflow: hidden;
  flex-shrink: 0;
}

.trip-photo-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* ── Trip card carousel ──────────────────────────────────── */
.trip-carousel { overflow: hidden; }

.tc-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tc-slide.active {
  opacity: 1;
}

.tc-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s;
  line-height: 1;
}
.tc-btn:hover { background: rgba(0,0,0,0.65); }
.tc-prev { left: 10px; }
.tc-next { right: 10px; }

.tc-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.tc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.tc-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

/* Departure date badge */
.trip-date-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--gold);
  color: var(--dark-green);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
  white-space: nowrap;
}

/* ── Card body ── */
.trip-body {
  padding: 28px 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Route */
.trip-route {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

/* Title */
.trip-title {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 400;
  color: var(--dark-green);
  line-height: 1.2;
  margin-bottom: 8px;
}

/* Meta */
.trip-meta {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 24px;
}

/* ── Includes ── */
.trip-includes-label {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.trip-includes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 20px;
  margin-bottom: 24px;
}

@media (max-width: 460px) {
  .trip-includes-grid { grid-template-columns: 1fr; }
}

.trip-includes-item {
  font-family: var(--sans);
  font-size: 0.77rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.trip-includes-item::before {
  content: '·';
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 0.85;
  flex-shrink: 0;
}

/* ── Highlight note ── */
.trip-highlight {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--muted);
  border-left: 3px solid var(--gold);
  padding: 8px 0 8px 16px;
  margin-bottom: 26px;
  line-height: 1.6;
}

/* ── Price ── */
.trip-price-block {
  margin-bottom: 24px;
}

.trip-price-label {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.trip-price {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 500;
  color: var(--green);
  line-height: 1;
  margin-bottom: 5px;
}

.trip-price-note {
  font-family: var(--sans);
  font-size: 0.73rem;
  color: var(--muted);
}

/* ── Monthly payment block ── */
.trip-payment-block {
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 18px 20px 16px;
  margin-bottom: 20px;
  background: rgba(201, 168, 76, 0.06);
}

.trip-payment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.trip-payment-icon {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
}

.trip-payment-label {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.trip-payment-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.trip-payment-price {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--green);
  line-height: 1;
}

.trip-payment-mo {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
}

.trip-payment-detail {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.trip-payment-block {
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
}

.trip-payment-block:hover {
  border-color: #b8963e;
  background: rgba(201, 168, 76, 0.12);
  box-shadow: 0 4px 14px rgba(201, 168, 76, 0.18);
}

.trip-payment-cta {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 10px;
  margin-bottom: 0;
}

/* ── Payment success banner ── */
.pago-success-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  padding: 14px 48px 14px 20px;
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  z-index: 999;
  max-width: calc(100vw - 40px);
  white-space: nowrap;
}

.pago-success-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  padding: 0 4px;
}
.pago-success-close:hover { opacity: 1; }

@media (max-width: 560px) {
  .pago-success-banner { white-space: normal; text-align: center; }
}

/* ── Card footer (CTA) ── */
.trip-footer {
  margin-top: auto;
  padding-top: 4px;
}

.trip-footer .btn {
  width: 100%;
  justify-content: center;
  font-size: 0.74rem;
  padding: 13px 20px;
}

/* ── Simple card extras ── */
.trip-pill {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 4px 13px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.trip-teaser {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}


/* ══════════════════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════════════════ */
.about-grid {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.about-photo {
  position: relative;
}

/* REPLACE WITH PHOTO — swap .photo-placeholder with an <img> */
.photo-placeholder {
  width: 100%;
  padding-top: 120%; /* portrait */
  background: var(--green);
  border-radius: var(--radius);
}

.about-body {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 20px;
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.about-body:last-child { margin-bottom: 0; }


/* ══════════════════════════════════════════════════════════════
   FOOTER / CONTACT
══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--dark-green);
  color: var(--cream);
  padding: 88px 24px 52px;
  text-align: center;
}

.footer-headline {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 44px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.footer-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
}

.footer-micro {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.5;
}

.footer-powered {
  display: block;
  margin-top: 24px;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(245,240,232,0.4);
  text-decoration: none;
}
.footer-powered:hover { color: rgba(245,240,232,0.9); }

@media (max-width: 560px) {
  .footer-ctas { flex-direction: column; align-items: center; }
  .footer-ctas .btn { width: 100%; max-width: 340px; }
}
