/* =========================================================
   TravelDocs — Landing PREVIEW (redesign editorial)
   No toca landing.css. Basado en el mismo markup + clases,
   con tipografía serif display, más aire, copy declarativo
   y componentes más limpios. Referencia: floria (selectivo).
   ========================================================= */

:root {
  --bg: #f4f1ea;            /* ivory cálido */
  --surface: #fffdf8;       /* blanco cálido */
  --surface2: #ece7db;      /* card suave */
  --border: #e0dac9;
  --border2: #c9c2b0;
  --text: #1a1712;          /* tinta cálida */
  --text2: #57514a;
  --text3: #8a8478;
  --accent: #1a3a5c;        /* navy (marca) */
  --accent-hover: #0f2a45;
  --accent-light: #e6edf3;
  --accent-soft: #c9b896;   /* arena cálida para highlights */
  --green: #1e6b3c;   --green-bg: #e8f5ed;
  --amber: #8a5a00;   --amber-bg: #fff8e6;
  --red: #9b1c1c;     --red-bg: #fef0f0;
  --radius: 8px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(26,23,18,0.04), 0 6px 18px rgba(26,23,18,0.05);
  --shadow-lg: 0 2px 6px rgba(26,23,18,0.05), 0 28px 60px rgba(26,58,92,0.10);
  --mono: 'DM Mono', monospace;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
  --ease-out: cubic-bezier(.2,.8,.2,1);
  --maxw: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== TIPOGRAFÍA ===== */
.display {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.accent-soft { color: var(--accent-soft); font-style: italic; }
.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--text2);
  font-weight: 300;
  max-width: 56ch;
  text-wrap: pretty;
}
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 18px;
}
.eyebrow-light { color: var(--accent-soft); }

/* ===== LAYOUT ===== */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 104px 32px;
}
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

/* ===== BOTONES ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-size: 0.92rem; font-weight: 500; font-family: inherit;
  cursor: pointer; border: 1px solid transparent;
  transition: background .2s var(--ease-out), border-color .2s, transform .2s, opacity .2s;
}
.btn:active { transform: scale(0.98); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline {
  background: transparent; color: var(--accent);
  border-color: var(--border2);
}
.btn-outline:hover { border-color: var(--accent); background: var(--accent-light); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border2); }
.btn-secondary:hover { background: var(--surface2); }
.btn-ghost-light {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.28);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.08); border-color: #fff; }

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244,241,234,0.72);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s;
}
.nav.scrolled {
  background: rgba(244,241,234,0.94);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 18px 32px;
  display: flex; align-items: center; gap: 24px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 500; font-size: 1.2rem; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 28px; margin-left: 12px; }
.nav-links a { font-size: 0.92rem; color: var(--text2); font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--accent); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-burger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-mobile { display: none; }

/* ===== BENTO BASE ===== */
.bento { display: grid; gap: 20px; }
.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 30px;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), opacity .5s var(--ease-out);
}
.bento-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.bento-card h3 {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 500;
  margin-bottom: 8px; letter-spacing: -0.015em;
}
.bento-card p { color: var(--text2); font-weight: 300; }
.card-icon { font-size: 1.6rem; margin-bottom: 14px; }

/* ===== HERO BENTO ===== */
.hero-section { padding-top: 48px; }
.bento-hero-grid {
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(0, auto);
}
.bento-hero-dark {
  grid-column: span 7;
  grid-row: span 2;
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  display: flex; flex-direction: column; gap: 20px;
  padding: 48px;
}
.bento-hero-dark .lead { color: rgba(255,255,255,0.82); }
.bento-hero-dark:hover { transform: translateY(-3px); box-shadow: 0 24px 60px rgba(15,42,69,0.28); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 32px;
  margin-top: auto; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.hero-stats div { display: flex; flex-direction: column; gap: 2px; }
.hero-stats strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; letter-spacing: -0.01em; }
.hero-stats span { font-size: 0.72rem; color: rgba(255,255,255,0.58); letter-spacing: 0.04em; }

.bento-mock-ssr { grid-column: span 5; display: flex; flex-direction: column; gap: 14px; }
.bento-mock-alerts { grid-column: span 5; }
.bento-mock-ia { grid-column: span 7; }

/* ===== MOCKS ===== */
.mock-head {
  display: flex; align-items: center; gap: 6px;
  padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border2); }
.mock-dot:nth-child(1) { background: #e06c5a; }
.mock-dot:nth-child(2) { background: #e0b85a; }
.mock-dot:nth-child(3) { background: #6cbf7a; }
.mock-label {
  margin-left: 8px; font-size: 0.7rem; font-weight: 500;
  color: var(--text3); text-transform: uppercase; letter-spacing: 0.1em;
}
.mock-code {
  font-family: var(--mono); font-size: 0.82rem; line-height: 1.75;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  color: var(--text); overflow-x: auto; white-space: pre;
}
.mock-copy { align-self: flex-start; }

/* Alertas semáforo */
.alert-list { display: flex; flex-direction: column; gap: 10px; }
.alert-row { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: var(--radius); }
.alert-row .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.alert-row strong { display: block; font-size: 0.92rem; font-weight: 500; }
.alert-row small { font-size: 0.78rem; color: var(--text3); }
.alert-red { background: var(--red-bg); } .alert-red .dot { background: var(--red); }
.alert-amber { background: var(--amber-bg); } .alert-amber .dot { background: var(--amber); }
.alert-green { background: var(--green-bg); } .alert-green .dot { background: var(--green); }

/* IA / check-in flow */
.ia-flow { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ia-doc, .checkin-pnr {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
}
.ia-doc { width: 130px; flex-shrink: 0; display: flex; flex-direction: column; gap: 7px; }
.ia-doc-line { height: 6px; background: var(--border2); border-radius: 3px; }
.ia-doc-line.w70 { width: 70%; } .ia-doc-line.w50 { width: 50%; } .ia-doc-line.w60 { width: 60%; }
.ia-doc-photo { height: 36px; margin-top: 4px; background: linear-gradient(135deg, var(--accent-light), var(--border)); border-radius: 4px; }
.ia-arrow { font-size: 1.6rem; color: var(--accent); font-weight: 300; }
.ia-form { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 9px; }
.ia-field { display: flex; flex-direction: column; gap: 2px; }
.ia-field label { font-size: 0.68rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.08em; }
.ia-field span { font-family: var(--mono); font-size: 0.85rem; color: var(--accent); font-weight: 500; }

/* ===== PROBLEMA / SOLUCIÓN ===== */
.bento-3 { grid-template-columns: repeat(3, 1fr); }
.bento-card-dark {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.bento-card-dark p { color: rgba(255,255,255,0.82); }

/* ===== FUNCIONES BENTO ===== */
.bento-features {
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(0, auto);
}
.bento-features .bento-card { grid-column: span 2; }
.feature-lg { grid-column: span 4 !important; grid-row: span 2; display: flex; flex-direction: column; gap: 14px; }
.feature-lg h3 { font-size: 1.7rem; }
.tag {
  align-self: flex-start; display: inline-block;
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 4px;
  background: var(--accent-light); color: var(--accent); margin-bottom: 10px;
}
.tag-mono { font-family: var(--mono); text-transform: none; letter-spacing: 0.04em; }
.tag-amber { background: var(--amber-bg); color: var(--amber); }
.tag-blue { background: var(--accent-light); color: var(--accent); }
.feature-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 14px; }
.feature-pills span {
  font-size: 0.78rem; padding: 5px 12px; border-radius: 6px;
  background: var(--surface2); border: 1px solid var(--border); color: var(--text2);
}

/* ===== STEPS ===== */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  counter-reset: step; position: relative;
}
.step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px;
  box-shadow: var(--shadow); position: relative;
}
.step-num {
  font-family: var(--mono); font-size: 0.95rem; font-weight: 500;
  color: var(--accent); background: var(--accent-light);
  display: inline-block; padding: 4px 10px; border-radius: 4px; margin-bottom: 16px;
}
.step h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; margin-bottom: 6px; letter-spacing: -0.01em; }
.step p { font-size: 0.92rem; color: var(--text2); font-weight: 300; }

/* ===== BANDA GDS ===== */
.gds-band {
  max-width: var(--maxw); margin: 0 auto;
  padding: 30px 32px;
  display: flex; align-items: center; justify-content: center; gap: 22px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.gds-label {
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text3);
}
.gds-list { display: flex; align-items: center; gap: 14px; }
.gds-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: var(--accent); letter-spacing: -0.01em; }
.gds-sep { color: var(--border2); font-weight: 300; }

/* ===== CTA ===== */
.cta-section { padding-top: 24px; padding-bottom: 112px; }
.cta-band {
  background: var(--accent); color: #fff;
  border-radius: 28px; padding: 64px 48px;
  text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 24px;
  box-shadow: 0 30px 70px rgba(15,42,69,0.24);
}
.cta-band .display { max-width: 760px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-band .btn-outline { color: #fff; border-color: rgba(255,255,255,0.36); }
.cta-band .btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-wa-icon { width: 18px; height: 18px; flex-shrink: 0; }
.cta-email { font-size: 0.86rem; color: rgba(255,255,255,0.7); }
.cta-email a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cta-email a:hover { color: var(--accent-soft); }

/* ===== CONFIANZA / SEGURIDAD ===== */
.trust {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 32px 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.trust-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 24px; box-shadow: var(--shadow);
}
.trust-icon { font-size: 1.4rem; flex-shrink: 0; }
.trust-item strong { display: block; font-size: 0.96rem; font-weight: 500; }
.trust-item span { font-size: 0.85rem; color: var(--text3); }

/* ===== FAQ ===== */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.faq-grid .bento-card h3 { font-family: var(--serif); font-size: 1.1rem; font-weight: 500; margin-bottom: 6px; }
.faq-grid .bento-card p { font-size: 0.92rem; color: var(--text2); font-weight: 300; line-height: 1.55; }

/* ===== GALERÍA (mocks del sistema) ===== */
.bento-3 .bento-card[style*="padding:0"] { padding: 0; overflow: hidden; }
.shot-bar { background: var(--accent); color: #fff; padding: 11px 15px; font-size: 0.82rem; font-weight: 500; display: flex; align-items: center; justify-content: space-between; }
.shot-body { padding: 12px; background: var(--bg); }
.shot-row { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; font-size: 0.85rem; }
.shot-code { display: block; font-family: var(--mono); font-size: 0.78rem; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; color: var(--accent); margin-bottom: 6px; word-break: break-all; }
.shot-badge { border-radius: 6px; padding: 2px 8px; font-size: 0.7rem; font-weight: 600; }

/* ===== BOTÓN FLOTANTE WHATSAPP ===== */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4), 0 2px 6px rgba(0,0,0,0.15);
  transition: transform .2s var(--ease-out);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float:active { transform: scale(0.96); }
.wa-float svg { width: 30px; height: 30px; }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 36px 32px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 500; font-size: 1.1rem; }
.footer-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  color: var(--text2); border: 1px solid var(--border);
  transition: color .15s, border-color .15s, background .15s;
}
.footer-social:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-light); }
.footer-social svg { width: 18px; height: 18px; }
.footer-links { display: flex; gap: 22px; margin-left: 24px; }
.footer-links a { font-size: 0.88rem; color: var(--text2); }
.footer-links a:hover { color: var(--accent); }
.footer-note { margin-left: auto; font-size: 0.82rem; color: var(--text3); }

/* ===== REVEAL ===== */
.reveal { opacity: 0; }
.reveal.is-visible { opacity: 1; }
.section-head, .step, .cta-band { transition: opacity .5s var(--ease-out); }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .bento-hero-grid { grid-template-columns: repeat(6, 1fr); }
  .bento-hero-dark { grid-column: span 6; grid-row: auto; padding: 32px; }
  .bento-mock-ssr, .bento-mock-alerts { grid-column: span 6; }
  .bento-mock-ia { grid-column: span 6; }
  .bento-3 { grid-template-columns: 1fr; }
  .bento-features { grid-template-columns: repeat(2, 1fr); }
  .bento-features .bento-card { grid-column: span 2; }
  .feature-lg { grid-column: span 2 !important; grid-row: auto !important; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 24px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-actions .btn { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile {
    display: flex !important; flex-direction: column; gap: 6px;
    padding: 12px 24px 18px; background: var(--surface);
    border-bottom: 1px solid var(--border);
  }
  .nav-mobile .btn { width: 100%; justify-content: center; }
  .gds-band { padding: 22px 20px; }
  .gds-name { font-size: 1.15rem; }
  .trust { grid-template-columns: 1fr; padding: 0 20px 20px; }
  .wa-float { width: 50px; height: 50px; right: 16px; bottom: 16px; }
  .wa-float svg { width: 26px; height: 26px; }
  .cta-band { padding: 40px 22px; }
  .footer-links { margin-left: 0; width: 100%; flex-wrap: wrap; }
  .footer-note { margin-left: 0; width: 100%; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .bento-features { grid-template-columns: 1fr; }
  .bento-features .bento-card { grid-column: span 1; }
  .feature-lg { grid-column: span 1 !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}
