/* ============================
   RESET & TOKENS
   ============================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:         #0B2540;   /* texto principal */
  --ink-soft:    #40566B;   /* texto secundario (7:1 sobre blanco) */
  --bg:          #FFFFFF;
  --bg-alt:      #F2F7F9;
  --line:        #D5E0E7;
  --accent:      #FF6B35;   /* fondo de botones, siempre con texto --ink */
  --accent-dark: #B5400F;   /* naranja para texto sobre blanco */
  --accent-soft: #FFF1EA;
  --sea:         #0B6B80;
  --whatsapp:    #25D366;

  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(11,37,64,.10);
}

html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 84px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }
input, select, textarea, button { font-family: inherit; font-size: 1rem; color: inherit; }

:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  font-size: 1.0625rem; font-weight: 600; text-decoration: none;
  border-radius: 10px; border: 2px solid transparent; cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: #FF824F; }
.btn-whatsapp { background: var(--whatsapp); color: var(--ink); }
.btn-whatsapp:hover { background: #3CE07A; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--bg-alt); }
.btn-block { width: 100%; }

/* ============================
   NAVBAR
   ============================ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.logo svg { color: var(--accent-dark); flex-shrink: 0; }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  padding: 10px 12px; border-radius: 8px;
  font-size: 1rem; font-weight: 500; text-decoration: none; color: var(--ink);
}
.nav-links a:hover { background: var(--bg-alt); }
.nav-right { display: flex; align-items: center; gap: 12px; }

.lang-switch { display: flex; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; }
.lang-btn {
  min-width: 46px; min-height: 40px; padding: 6px 10px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; text-decoration: none;
  font-size: .9375rem; font-weight: 600;
}
.lang-btn:hover { background: var(--bg-alt); }
.lang-btn[aria-current="page"] { background: var(--ink); color: #fff; }

.nav-toggle {
  display: none; width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); }

/* ============================
   HERO
   ============================ */
.hero {
  position: relative; min-height: min(86vh, 720px);
  display: flex; align-items: flex-end;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,27,47,.92) 0%, rgba(7,27,47,.70) 45%, rgba(7,27,47,.15) 100%);
}
.hero-content {
  position: relative; width: 100%; max-width: 1160px; margin: 0 auto;
  padding: 120px 24px 64px; color: #fff;
}
.hero-eyebrow { font-size: 1rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 14px; color: #FFD9C7; }
.hero h1 { font-size: clamp(2.25rem, 6vw, 4rem); max-width: 760px; margin-bottom: 18px; }
.hero-sub { font-size: 1.1875rem; max-width: 620px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================
   SECTIONS
   ============================ */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-tag {
  font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: 10px;
}
.section-sub { margin-top: 12px; color: var(--ink-soft); font-size: 1.125rem; }

/* ============================
   TOUR CARDS
   ============================ */
.tour-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tour-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.tour-media { position: relative; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.tour-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tour-media-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, #DCEEF3 0%, #FFE9DD 100%);
  color: var(--ink-soft); font-size: .9375rem; font-weight: 500;
}
.tour-badge {
  position: absolute; top: 14px; left: 14px;
  background: #fff; color: var(--ink);
  font-size: .875rem; font-weight: 600; padding: 6px 12px; border-radius: 999px;
}
.tour-body { display: flex; flex-direction: column; flex: 1; gap: 12px; padding: 24px; }
.tour-body h3 { font-size: 1.375rem; }
.tour-body p { color: var(--ink-soft); flex: 1; }

/* ============================
   TOUR DETAIL
   ============================ */
.detail-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: center; }
.detail-photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 85%;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.detail-text h2 { margin-bottom: 16px; }
.detail-text h3 { margin: 28px 0 12px; }
.lead { font-size: 1.1875rem; }
.check-list { display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before {
  content: '✓'; position: absolute; left: 0; top: 2px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--sea); color: #fff;
  font-size: .875rem; font-weight: 700; line-height: 24px; text-align: center;
}
.info-box {
  margin-top: 28px; padding: 18px 22px;
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--accent);
  border-radius: 10px;
}
.info-box h3 { margin: 0 0 6px; font-size: 1.125rem; }
.note { margin: 24px 0 18px; color: var(--ink-soft); }

/* ============================
   GALLERY
   ============================ */
/* FAQ */
.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.faq summary {
  cursor: pointer; padding: 18px 52px 18px 20px; position: relative;
  font-weight: 600; font-size: 1.0625rem; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 500; color: var(--sea);
}
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 20px 18px; color: var(--ink-soft); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-item {
  padding: 0; border: none; background: var(--bg-alt); cursor: zoom-in;
  border-radius: 10px; overflow: hidden; aspect-ratio: 1;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.04); }

.lightbox {
  border: none; padding: 0; background: transparent;
  max-width: 94vw; max-height: 94vh; margin: auto; overflow: visible;
}
.lightbox::backdrop { background: rgba(7,27,47,.9); }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: -18px; right: -6px; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: none; cursor: pointer; font-size: 1.125rem; font-weight: 700;
}

/* ============================
   STEPS
   ============================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.step-num {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: var(--ink);
  font-size: 1.375rem; font-weight: 700; margin-bottom: 16px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-soft); }

/* ============================
   CONTACT
   ============================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.channels { display: grid; gap: 12px; margin-top: 28px; }
.channel {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px;
  text-decoration: none; background: #fff;
}
.channel[hidden] { display: none; }
a.channel:hover { border-color: var(--ink); }
.channel-icon {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-dark);
}
.channel-wa { background: var(--whatsapp); color: var(--ink); }
.channel strong { display: block; font-weight: 600; }
.channel span > span { color: var(--ink-soft); }

.contact-form {
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px;
}
.contact-form h3 { font-size: 1.375rem; margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field label { font-size: 1rem; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: #fff; border: 2px solid #8FA3B3; border-radius: 8px;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(11,107,128,.2);
}
.form-field textarea { resize: vertical; }
.form-note { margin-top: 12px; text-align: center; font-size: .9375rem; color: var(--ink-soft); }

/* ============================
   FOOTER
   ============================ */
.footer { background: var(--ink); color: #fff; padding: 48px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer-logo { font-size: 1.25rem; font-weight: 700; margin-bottom: 4px; }
.footer-inner p { color: #D5E0E7; }
.footer-links { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.footer-links a { color: #fff; text-decoration: none; padding: 6px 0; }
.footer-links a:hover { text-decoration: underline; }
.footer-copy {
  max-width: 1160px; margin: 32px auto 0; padding: 20px 24px 0;
  border-top: 1px solid rgba(255,255,255,.2);
  font-size: .9375rem; color: #D5E0E7;
}

/* ============================
   WHATSAPP FAB
   ============================ */
.whatsapp-fab {
  position: fixed; bottom: 22px; right: 22px; z-index: 200;
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--whatsapp); color: var(--ink);
  box-shadow: 0 6px 20px rgba(11,37,64,.3);
}

/* ============================
   SCROLL REVEAL (suave)
   ============================ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 12px; font-size: 1.125rem; }

  .tour-grid, .steps { grid-template-columns: 1fr; }
  .detail-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .detail-photo img { aspect-ratio: 4 / 3; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
}

@media (max-width: 520px) {
  .wrap, .nav-inner { padding-left: 18px; padding-right: 18px; }
  .logo { font-size: 1.0625rem; }
  .hero-content { padding-bottom: 44px; }
  .hero-actions .btn { width: 100%; }
  .contact-form { padding: 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
