/* ===== Kaiyob landing — design tokens (de la app real) ===== */
:root {
  --navy: #000B58;
  --blue: #003161;
  --teal: #006A67;
  --yellow: #FDEB9E;
  --orange: #FF8C00;

  --bg: #F9FAFB;
  --surface: #FFFFFF;
  --ink: #111827;
  --muted: #4B5563;
  --soft: #6B7280;
  --line: #E5E7EB;

  --radius: 20px;
  --radius-sm: 14px;
  --maxw: 1140px;
  --shadow: 0 18px 50px -20px rgba(0, 11, 88, 0.28);
  --grad: linear-gradient(120deg, var(--teal) 0%, #4E9B7E 45%, var(--yellow) 100%);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 22px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(0, 49, 97, .6); }
.btn-warm { background: var(--orange); color: #fff; box-shadow: 0 10px 24px -10px rgba(255, 140, 0, .6); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 250, 251, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 34px; height: 34px; }
.brand-name { font-weight: 800; font-size: 20px; color: var(--navy); letter-spacing: -.02em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-weight: 600; font-size: 15px; color: var(--muted); }
.nav a:hover { color: var(--navy); }
.nav a.btn { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ===== Hero ===== */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 50px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--navy);
}
.grad-text {
  background: linear-gradient(110deg, var(--teal), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  margin: 22px 0 30px;
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
}

.waitlist {
  display: flex;
  gap: 10px;
  max-width: 480px;
  background: var(--surface);
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.waitlist input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
}
.waitlist .btn { white-space: nowrap; }
.form-note { margin-top: 12px; font-size: 13px; color: var(--soft); }
.form-note.error { color: #DC2626; }
.form-note.ok { color: var(--teal); font-weight: 600; }

.store-badges { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.store-badge {
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  opacity: .55;
}
.store-badge strong { font-size: 15px; }
.store-badge small { font-size: 11px; opacity: .8; }

/* ===== Hero visual: screenshot real ===== */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.phone-img {
  position: relative;
  z-index: 2;
  width: 310px;
  height: auto;
  filter: drop-shadow(0 32px 64px rgba(0, 11, 88, .30));
}

.blob { position: absolute; border-radius: 50%; filter: blur(60px); z-index: 1; }
.blob-1 { width: 280px; height: 280px; background: rgba(0, 106, 103, .35); top: -30px; right: -20px; }
.blob-2 { width: 240px; height: 240px; background: rgba(253, 235, 158, .55); bottom: -20px; left: -30px; }

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.eyebrow-warm { color: var(--orange); }
.section-head h2, .split h2, .cta h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--navy);
}
.section-head p { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.step-num {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  border-radius: 12px;
  margin-bottom: 18px;
}
.step h3 { font-size: 19px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* Categorías */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 26px 18px;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-ico { font-size: 32px; display: block; margin-bottom: 12px; }
.cat p { font-weight: 700; font-size: 15px; color: var(--navy); }

/* Split benefits */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.split-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 40px;
}
.split-card h2 { margin: 6px 0 22px; }
.ticks { list-style: none; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 32px; color: var(--muted); font-size: 16px; }
.ticks li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  border-radius: 50%;
}
.ticks-warm li::before { background: var(--orange); }

/* CTA */
.cta { padding: 96px 0; background: var(--navy); }
.cta-inner { text-align: center; max-width: 620px; margin: 0 auto; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .75); margin: 14px 0 30px; font-size: 17px; }
.waitlist-light { margin: 0 auto; }
.form-note-light { color: rgba(255, 255, 255, .6); }
.form-note-light.ok { color: var(--yellow); }

/* Footer */
.site-footer { background: #050a35; color: rgba(255, 255, 255, .75); padding: 56px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.site-footer .brand-name { color: #fff; }
.footer-tag { margin-top: 14px; font-size: 14px; max-width: 280px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 14px; color: rgba(255, 255, 255, .75); }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding-top: 22px; font-size: 13px; color: rgba(255, 255, 255, .5); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .steps { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px;
    transform: translateY(-130%);
    transition: transform .25s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: 14px; border: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 540px) {
  .waitlist { flex-direction: column; }
  .waitlist .btn { width: 100%; }
  .section, .hero { padding: 60px 0; }
  .split-card { padding: 32px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* ===== Modales legales ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 11, 88, .55);
  backdrop-filter: blur(4px);
  padding: 24px 16px;
  overflow-y: auto;
}
.modal-overlay { align-items: flex-start; justify-content: center; }
.modal-box {
  background: var(--surface);
  border-radius: var(--radius);
  width: 100%;
  max-width: 720px;
  margin: auto;
  box-shadow: 0 32px 80px -20px rgba(0,11,88,.4);
  overflow: hidden;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}
.modal-header h2 { font-size: 20px; font-weight: 800; color: var(--navy); }
.modal-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  color: var(--muted);
  transition: background .15s;
}
.modal-close:hover { background: var(--line); }
.modal-body {
  padding: 32px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}
.modal-body p { margin-bottom: 14px; }
.modal-body h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  margin: 28px 0 10px;
}
.modal-body ul { margin: 0 0 14px 20px; display: grid; gap: 8px; }
.modal-body ul li { color: var(--muted); }
.modal-body a { color: var(--teal); text-decoration: underline; }
.modal-brand {
  text-align: center;
  font-weight: 800;
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 4px !important;
}
.modal-date {
  text-align: center;
  font-size: 13px;
  color: var(--soft);
  margin-bottom: 24px !important;
}
.modal-company {
  margin-top: 32px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
}
.modal-company p { margin: 0; }
.modal-company strong { color: var(--navy); }
@media (max-width: 540px) {
  .modal-header { padding: 20px; }
  .modal-body { padding: 20px; }
}
