/* ============================================================
   AVENTI TRAVEL — Design System
   Navy + champagne gold, editorial-luxury travel identity
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Jost:wght@300;400;500;600&display=swap');

:root {
  /* Color */
  --navy-deep:   #0D2833;
  --navy:        #122F3E;
  --navy-light:  #1E4356;
  --gold:        #C9A24B;
  --gold-pale:   #E3C08C;
  --cream:       #FAF6EE;
  --cream-dim:   #F1EAD9;
  --ink:         #1C2A2E;
  --ink-soft:    #4A5C61;
  --white:       #FFFFFF;

  /* Type */
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;

  /* Layout */
  --max-w: 1200px;
  --nav-h: 84px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* Eyebrow labels */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 18px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(42px, 6vw, 78px); }
h2 { font-size: clamp(32px, 4.2vw, 52px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); }

.serif-italic { font-style: italic; font-weight: 400; color: var(--gold); }

p.lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 46ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all .35s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-gold:hover { background: var(--gold-pale); transform: translateY(-2px); }
.btn-outline {
  border-color: rgba(250,246,238,0.4);
  color: var(--cream);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline-dark {
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-dark:hover { background: var(--navy); color: var(--cream); }

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background .4s ease, box-shadow .4s ease, height .4s ease;
}
.site-nav.solid {
  background: rgba(13,40,51,0.96);
  backdrop-filter: blur(6px);
  height: 68px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.logo {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.06em;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo span.small {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.42em;
  color: var(--gold);
  margin-top: 6px;
  font-weight: 500;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .35s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 110;
}
.nav-toggle span {
  width: 26px; height: 1px;
  background: var(--cream);
  transition: all .3s ease;
}

/* ---------- Horizon line signature (SVG divider) ---------- */
.horizon {
  width: 100%;
  display: block;
  height: auto;
}
.horizon path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 2.6s ease forwards .3s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1544551763-46a013bb70d5?q=80&w=1800&auto=format&fit=crop') center/cover;
  opacity: 0.28;
  mix-blend-mode: luminosity;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(201,162,75,0.12), transparent 55%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 100px 0 140px;
}
.hero h1 { color: var(--cream); max-width: 15ch; }
.hero p.lede { color: rgba(250,246,238,0.72); margin: 26px 0 40px; }
.hero-cta { display: flex; gap: 18px; flex-wrap: wrap; }
.hero-horizon-wrap { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; opacity: 0.9; }

.hero-stats {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(250,246,238,0.14);
  margin-top: 70px;
  padding-top: 34px;
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}
.hero-stats div { color: var(--cream); }
.hero-stats .num { font-family: var(--font-display); font-size: 36px; color: var(--gold); }
.hero-stats .label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(250,246,238,0.6); margin-top: 4px; }

/* ---------- Section generic ---------- */
section { padding: 120px 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: var(--cream); }
.section-navy h2, .section-navy h3 { color: var(--cream); }
.section-dim { background: var(--cream-dim); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

/* ---------- Package / destination cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.card {
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.card-media {
  height: 320px;
  overflow: hidden;
  position: relative;
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.card:hover .card-media img { transform: scale(1.07); }
.card-media .tag {
  position: absolute; top: 20px; left: 20px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 14px;
  font-weight: 500;
}
.card-body { padding: 30px 28px 34px; }
.card-body h3 { margin-bottom: 10px; }
.card-body p { color: var(--ink-soft); font-size: 15px; margin-bottom: 22px; }
.card-link {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
}

/* ---------- Why us / features ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.feature .mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 30px;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
}
.feature h4 { font-size: 18px; margin-bottom: 10px; color: var(--navy); }
.feature p { font-size: 14.5px; color: var(--ink-soft); }
.section-navy .feature h4 { color: var(--cream); }

/* ---------- Split blocks ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split img { width: 100%; height: 560px; object-fit: cover; }
.split .frame { position: relative; }
.split .frame::after {
  content: '';
  position: absolute;
  inset: 20px -20px -20px 20px;
  border: 1px solid var(--gold);
  z-index: -1;
}

/* ---------- Testimonial ---------- */
.testi {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.testi q {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(24px, 3vw, 34px);
  color: var(--cream);
  display: block;
  margin-bottom: 30px;
  line-height: 1.4;
}
.testi .who { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-deep);
  padding: 90px 0;
  text-align: center;
}
.cta-band h2 { color: var(--cream); margin-bottom: 30px; }
.cta-band .btn-row { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy-deep);
  color: rgba(250,246,238,0.65);
  padding: 70px 0 30px;
  border-top: 1px solid rgba(250,246,238,0.1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
footer h4 {
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 22px;
}
footer ul li { margin-bottom: 12px; font-size: 14.5px; }
footer ul li a:hover { color: var(--gold); }
.footer-logo { color: var(--cream); font-family: var(--font-display); font-size: 26px; margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(250,246,238,0.1);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}
.social-row { display: flex; gap: 16px; }
.social-row a {
  width: 38px; height: 38px;
  border: 1px solid rgba(250,246,238,0.25);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: all .3s ease;
}
.social-row a:hover { border-color: var(--gold); background: var(--gold); color: var(--navy-deep); }
.social-row svg { width: 16px; height: 16px; }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: var(--navy) center/cover no-repeat;
  padding: 190px 0 90px;
  position: relative;
  overflow: hidden;
}
.page-header-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,40,51,0.88), rgba(13,40,51,0.94));
}
.page-header .wrap { position: relative; z-index: 2; }
.page-header h1 { color: var(--cream); font-size: clamp(38px, 5vw, 60px); }
.breadcrumb { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 24px; }
.form-field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid #D9D0BC;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
/* intl-tel-input compatibility */
.iti { width: 100%; }
.iti__country-list {
  font-family: var(--font-body);
  font-size: 14px;
  text-align: left;
}
.iti__selected-country { background: var(--white) !important; }

/* ---------- Contact info list ---------- */
.info-list li {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(28,42,46,0.1);
}
.info-list .ico {
  width: 22px; flex-shrink: 0; color: var(--gold);
}
.info-list .lbl { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.info-list .val { font-family: var(--font-display); font-size: 19px; color: var(--navy); }

/* ---------- Map ---------- */
.map-frame { width: 100%; height: 420px; border: 0; filter: grayscale(0.4) sepia(0.15); }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.team-card img { height: 380px; object-fit: cover; width: 100%; }
.team-card .name { font-family: var(--font-display); font-size: 22px; color: var(--navy); margin-top: 20px; }
.team-card .role { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Values numbered list (Nosotros) ---------- */
.values-list { border-top: 1px solid rgba(28,42,46,0.12); }
.value-row {
  display: grid;
  grid-template-columns: 90px 1fr 2fr;
  gap: 30px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(28,42,46,0.12);
  align-items: baseline;
}
.value-row .idx { font-family: var(--font-display); font-style: italic; font-size: 30px; color: var(--gold); }
.value-row h4 { color: var(--navy); }
.value-row p { color: var(--ink-soft); font-size: 15px; }

/* ---------- WhatsApp pre-form modal ---------- */
.wa-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,40,51,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  padding: 20px;
}
.wa-modal-overlay.open { opacity: 1; pointer-events: all; }
.wa-modal {
  background: var(--cream);
  max-width: 440px;
  width: 100%;
  padding: 44px 36px 36px;
  position: relative;
  transform: translateY(16px);
  transition: transform .3s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.wa-modal-overlay.open .wa-modal { transform: translateY(0); }
.wa-modal-close {
  position: absolute;
  top: 16px; right: 18px;
  font-size: 26px;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  background: none;
  border: none;
}
.wa-modal-close:hover { color: var(--navy); }
.wa-modal h3 { margin: 6px 0 26px; }
.wa-modal .form-field:last-of-type { margin-bottom: 28px; }
.wa-modal .btn { width: 100%; justify-content: center; }

/* ---------- Email fallback panel ---------- */
.email-fallback {
  margin-top: 16px;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid #D9D0BC;
  display: none;
}
.email-fallback.show { display: block; }
.email-fallback p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.email-fallback textarea {
  width: 100%;
  min-height: 110px;
  padding: 12px 14px;
  border: 1px solid #D9D0BC;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--ink);
  background: var(--cream);
  resize: vertical;
  margin-bottom: 12px;
}
.email-fallback-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.email-fallback-copy {
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--navy);
  color: var(--cream);
  border: none;
  cursor: pointer;
}
.email-fallback-copy:hover { background: var(--navy-light); }
.email-fallback-copy.copied { background: var(--gold); color: var(--navy-deep); }
.email-fallback-to { font-size: 13px; color: var(--navy); }
.email-fallback-to strong { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split img { height: 400px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .value-row { grid-template-columns: 60px 1fr; }
  .value-row p { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 78%;
    background: var(--navy-deep);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    transform: translateX(100%);
    transition: transform .4s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 16px; }
  .nav-toggle { display: flex; }
  .hero-stats { gap: 24px 34px; }
  .grid-4 { grid-template-columns: 1fr; gap: 36px; }
  .grid-3 { gap: 40px; }
  .section-head { gap: 24px; margin-bottom: 44px; }
  section { padding: 64px 0; }
  .hero-inner { padding: 60px 0 90px; }
  h1 { line-height: 1.08; }
  p.lede { font-size: 17px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  section { padding: 80px 0; }
  .page-header { padding: 150px 0 60px; }
}
