:root {
  --blue: #1e73be;
  --navy: #144b7c;
  --orange: #f36438;
  --ink: #12263a;
  --muted: #5a6b7c;
  --line: #dde6ee;
  --bg: #f6f9fc;
  --radius: 16px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Header */
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.topbar__logo { height: 40px; width: auto; display: block; }
.topbar__m200 {
  font-weight: 700; letter-spacing: .14em; font-size: .85rem;
  color: var(--navy); text-decoration: none;
}
.topbar__m200 span { font-weight: 500; letter-spacing: .02em; color: var(--muted); }
.topbar__m200 strong { letter-spacing: .14em; }
.eyebrow { margin: 0 0 12px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.eyebrow strong { color: var(--orange); }
.topbar__m200:hover { color: var(--orange); }

/* Hero */
.hero { padding: 36px 0 24px; animation: rise .6s ease both; }
.hero h1 {
  margin: 0 0 12px; max-width: 18ch;
  font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.12; letter-spacing: -.02em;
  color: var(--navy);
}
.hero__sub { margin: 0; max-width: 62ch; font-size: 1.05rem; color: var(--muted); }
.hero__by { margin: 14px 0 0; font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--blue); }

/* Demo */
.demo { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; padding-bottom: 48px; animation: rise .6s .1s ease both; }
.suggest h2 { margin: 4px 0 12px; font-size: 1rem; color: var(--navy); }
.chips { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.chip {
  width: 100%; text-align: left; cursor: pointer;
  font: inherit; font-size: .88rem; font-weight: 500; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--blue);
  border-radius: 10px; padding: 11px 14px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.chip:hover { border-left-color: var(--orange); transform: translateX(2px); box-shadow: 0 4px 14px rgba(20,75,124,.08); }
.chip:focus-visible, .closing__link:focus-visible, .topbar__m200:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.suggest__hint { min-height: 1.4em; margin: 10px 0 0; font-size: .78rem; color: var(--blue); }

.tip { margin: 0 2px 10px; font-size: .82rem; color: var(--navy); }
.tip strong { font-weight: 700; }
.chat__frame {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(20,75,124,.12);
  height: clamp(480px, 68vh, 680px); overflow: hidden; position: relative;
}
.chat__slot { width: 100%; height: 100%; }
.chat__slot > iframe { display: block; width: 100%; height: 100%; border: 0; }
.chat__placeholder { display: grid; place-items: center; height: 100%; margin: 0; color: var(--muted); font-size: .9rem; }
.notice {
  margin: 12px 2px 0; padding: 10px 14px; font-size: .76rem; line-height: 1.5; color: #6b4a1e;
  background: #fff6ea; border: 1px solid #f7dcb8; border-radius: 10px;
}

/* Cierre */
.closing { padding: 40px 0 56px; border-top: 1px solid var(--line); max-width: 720px; margin-inline: auto; text-align: center; }
.closing h2 { margin: 0 0 10px; font-size: 1.5rem; color: var(--navy); letter-spacing: -.01em; }
.closing p { margin: 0 0 14px; color: var(--muted); }
.closing__link { font-size: .85rem; font-weight: 600; color: var(--blue); text-decoration: none; border-bottom: 1px solid transparent; }
.closing__link:hover { border-bottom-color: var(--orange); color: var(--orange); }

.foot { background: var(--navy); color: #cfe0ef; font-size: .75rem; padding: 16px 0; text-align: center; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.demo > * { min-width: 0; }
.chat__frame { height: clamp(480px, 68vh, 680px); height: clamp(480px, 68dvh, 680px); }

/* Mobile: sugerencias como carrusel compacto, chat alto y visible rápido */
@media (max-width: 860px) {
  .wrap { width: calc(100% - 24px); }
  .demo { grid-template-columns: 1fr; gap: 10px; padding-bottom: 32px; }
  .hero { padding: 16px 0 12px; }
  .eyebrow { margin-bottom: 8px; font-size: .7rem; }
  .hero h1 { font-size: 1.65rem; max-width: none; margin-bottom: 8px; }
  .hero__sub { font-size: .88rem; line-height: 1.5; }
  .hero__by { display: none; }
  .topbar__in { height: 56px; }
  .topbar__logo { height: 32px; }
  .topbar__m200 { font-size: .75rem; }
  .topbar__m200 span { font-weight: 500; }

  .suggest h2 { font-size: .85rem; margin: 0 0 8px; }
  .chips {
    display: flex; gap: 8px; overflow-x: auto; padding: 0 12px 6px;
    margin: 0 -12px; scroll-snap-type: x proximity; scroll-padding-inline: 12px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chips li { flex: 0 0 auto; width: min(230px, 70vw); scroll-snap-align: start; }
  .chip { height: 100%; min-height: 52px; font-size: .8rem; line-height: 1.35; padding: 9px 12px; }
  .chip:hover { transform: none; }
  .suggest__hint:empty { display: none; }

  .tip { font-size: .75rem; margin-bottom: 8px; }
  .chat__frame {
    border-radius: 14px;
    height: calc(100vh - 150px); height: calc(100dvh - 150px);
    min-height: 440px; max-height: 720px;
  }
  .notice { font-size: .72rem; padding: 9px 12px; }
  .closing { padding: 28px 0 36px; }
  .closing h2 { font-size: 1.25rem; }
  .closing p { font-size: .9rem; }
  .closing__link { display: inline-block; padding: 12px 8px; }
  .foot { padding: 14px 0 max(14px, env(safe-area-inset-bottom)); }
}

@media (max-width: 380px) {
  .topbar__m200 span { display: none; }
}
