:root {
  --green: #10b981;
  --green-dark: #047857;
  --green-soft: #ecfdf5;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --radius: 18px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--green-dark); margin-bottom: .8em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85em 1.4em; border-radius: 999px; font-weight: 600; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); }
.btn--light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn--sm { padding: .5em 1.1em; font-size: .9rem; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand img { height: 30px; width: auto; }
.topnav { display: none; gap: 24px; margin-left: auto; }
.topnav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; }
.topnav a:hover { color: var(--ink); }
.topbar .btn { margin-left: auto; }

/* Hero */
.hero {
  position: relative; color: #fff;
  background: #0f172a url('/img/viajero-aeropuerto-900.jpg') center right / cover no-repeat;
}
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,23,42,.88) 0%, rgba(15,23,42,.6) 55%, rgba(15,23,42,.2) 100%); }
.hero__inner { position: relative; padding: 96px 20px 104px; max-width: var(--wrap); }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .eyebrow { color: #6ee7b7; }
.hero__lead { font-size: 1.15rem; max-width: 44ch; color: #e2e8f0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Sections */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.split { display: grid; gap: 48px; align-items: center; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 22px; }
.steps li { display: flex; gap: 16px; }
.steps p { color: var(--muted); margin: 0; }
.steps__n {
  flex: 0 0 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green-dark); font-weight: 700;
}

/* Phone mock */
.phone {
  justify-self: center; width: 100%; max-width: 360px; border-radius: 36px; padding: 12px;
  background: #0f172a; box-shadow: 0 30px 60px -20px rgba(15,23,42,.45);
}
.phone__bar { background: #fff; border-radius: 26px 26px 0 0; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat { background: var(--bg-alt); border-radius: 0 0 26px 26px; padding: 16px 12px 22px; display: flex; flex-direction: column; gap: 10px; font-size: .92rem; }
.msg { margin: 0; padding: 10px 13px; border-radius: 16px; max-width: 88%; line-height: 1.45; }
.msg--user { align-self: flex-end; background: var(--green); color: #fff; border-bottom-right-radius: 5px; }
.msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; color: var(--ink); }
.msg--photo { opacity: .95; }
.card { margin-top: 10px; display: grid; gap: 4px; padding: 10px; border-radius: 12px; background: var(--green-soft); border: 1px solid #a7f3d0; font-size: .85rem; }
.card__title { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green-dark); }
.card__btn { justify-self: end; margin-top: 6px; background: var(--green); color: #fff; padding: 4px 12px; border-radius: 999px; font-weight: 600; }

/* Features */
.grid { display: grid; gap: 18px; margin-top: 36px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature p { color: var(--muted); margin: 0; }
.feature h3::before { content: ''; display: block; width: 28px; height: 4px; border-radius: 4px; background: var(--green); margin-bottom: 14px; }

/* Security */
.photo img { border-radius: var(--radius); width: 100%; height: auto; object-fit: cover; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checks li { padding-left: 32px; position: relative; color: var(--muted); }
.checks li strong { color: var(--ink); }
.checks li::before {
  content: '✓'; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-soft); color: var(--green-dark); font-weight: 700; font-size: .8rem;
  display: grid; place-items: center;
}

/* CTA + footer */
.cta { background: var(--ink); color: #cbd5e1; text-align: center; padding: 88px 0; }
.cta h2 { color: #fff; }
.cta__inner .hero__actions { justify-content: center; }
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: .9rem; color: var(--muted); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }

@media (min-width: 900px) {
  .topnav { display: flex; }
  .topbar .btn { margin-left: 0; }
  .hero { background-image: url('/img/viajero-aeropuerto-1800.jpg'); }
  .hero__inner { padding: 140px 20px 150px; }
  .split { grid-template-columns: 1.1fr .9fr; gap: 72px; }
  .split--image { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* 404 */
.notfound { text-align: center; }
.notfound__logo { margin: 0 auto 32px; }
