/*
  Grupo QR — Sitio público
  Misma identidad de marca que el producto: tinta + papel + azul de acción,
  Manrope para texto humano, IBM Plex Mono para datos.
*/

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --ink:          #12151C;
  --ink-soft:     #2B303B;
  --muted:        #667085;
  --muted-soft:   #9AA1AE;
  --paper:        #F6F7F9;
  --surface:      #FFFFFF;
  --border:       #E3E6EB;
  --border-soft:  #EDEFF2;

  --accent:       #375DFB;
  --accent-deep:  #2547D6;
  --accent-soft:  #EEF2FF;

  --bubble-bot:   #F1F3F6;

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 20px;

  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Manrope', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.data-mono {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
header.site {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246,247,249,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
header.site .wrap {
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--ink);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand .mark span { color: #fff; font-weight: 800; font-size: 13px; }
.brand .name { font-weight: 800; font-size: 15.5px; color: var(--ink); }

nav.main { display: flex; align-items: center; gap: 28px; }
nav.main a {
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  transition: color .15s;
}
nav.main a:hover { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 13.5px;
  border-radius: 10px; border: none; cursor: pointer;
  padding: 11px 20px; transition: opacity .15s, transform .15s;
}
.btn:hover { opacity: .92; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-accent  { background: var(--accent); color: #fff; }
.btn-ghost   { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  padding: 92px 0 80px;
}
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; font-weight: 500;
  color: var(--accent); background: var(--accent-soft);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

h1.hero-title {
  font-size: clamp(34px, 4.2vw, 50px);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 22px;
}
h1.hero-title em {
  font-style: normal; color: var(--accent);
}

.hero-sub {
  font-size: 17px; color: var(--muted); max-width: 480px; margin-bottom: 32px;
  line-height: 1.6;
}

.hero-ctas { display: flex; gap: 12px; margin-bottom: 36px; flex-wrap: wrap; }

.hero-trust {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.hero-trust .item {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--muted); font-weight: 600;
}
.hero-trust svg { color: var(--accent); flex-shrink: 0; }

/* ── Signature: mockup de chat en vivo ─────────────────────────────────────── */
.phone {
  background: var(--ink); border-radius: 32px; padding: 10px;
  box-shadow: 0 30px 80px -20px rgba(18,21,28,.35);
  max-width: 360px; margin: 0 auto;
}
.phone-screen {
  background: var(--surface); border-radius: 24px; overflow: hidden;
  min-height: 520px; display: flex; flex-direction: column;
}
.phone-topbar {
  background: var(--accent); color: #fff; padding: 16px 18px 14px;
  display: flex; align-items: center; gap: 10px;
}
.phone-topbar .avatar {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0;
}
.phone-topbar .who { font-weight: 700; font-size: 14px; }
.phone-topbar .status { font-size: 11px; opacity: .85; }

.phone-body {
  flex: 1; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px;
  background:
    radial-gradient(circle at 20% 20%, rgba(55,93,251,0.04) 0, transparent 45%),
    var(--paper);
}

.bubble {
  max-width: 82%; padding: 10px 13px; border-radius: 15px; font-size: 13px; line-height: 1.45;
  opacity: 0; transform: translateY(6px);
  animation: bubble-in .35s ease-out forwards;
}
.bubble.in  { background: var(--bubble-bot); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.out { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }

.bubble.d1 { animation-delay: .3s; }
.bubble.d2 { animation-delay: 1.1s; }
.bubble.d3 { animation-delay: 2.0s; }
.bubble.d4 { animation-delay: 3.0s; }
.bubble.d5 { animation-delay: 4.1s; }

@keyframes bubble-in {
  to { opacity: 1; transform: translateY(0); }
}

.typing {
  align-self: flex-start; display: flex; gap: 4px; padding: 10px 13px;
  background: var(--bubble-bot); border-radius: 15px; border-bottom-left-radius: 4px;
  opacity: 0; animation: bubble-in .3s ease-out forwards; animation-delay: 1.7s;
}
.typing span {
  width: 5px; height: 5px; border-radius: 50%; background: var(--muted-soft);
  animation: typing-bounce 1s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing-bounce { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }

/* ── Secciones genéricas ────────────────────────────────────────────────── */
section { padding: 84px 0; }
section.tight { padding: 64px 0; }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-eyebrow {
  font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; font-weight: 500;
  color: var(--accent); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px;
}
h2.section-title {
  font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -0.01em;
  color: var(--ink); margin-bottom: 12px;
}
.section-desc { font-size: 15.5px; color: var(--muted); line-height: 1.6; }

/* ── Cómo funciona ──────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px;
}
.step-num {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 600;
  color: var(--accent); background: var(--accent-soft);
  width: 32px; height: 32px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.step h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ── Casos de uso ───────────────────────────────────────────────────────── */
.cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.case {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 18px; text-align: center;
}
.case .emoji { font-size: 26px; margin-bottom: 12px; }
.case h4 { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.case p { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ── Features ───────────────────────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 4px; }
.feature-icon {
  width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  color: var(--accent);
}
.feature h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.feature p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ── CTA banda ──────────────────────────────────────────────────────────── */
.cta-band {
  background: var(--ink); border-radius: var(--radius-lg);
  padding: 56px 48px; text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(24px,3vw,32px); font-weight: 800; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.65); font-size: 15px; margin-bottom: 28px; max-width: 460px; margin-left: auto; margin-right: auto; }

/* ── Contacto ───────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
}
.contact-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-item .ic {
  width: 38px; height: 38px; border-radius: 10px; background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent);
}
.contact-item .label { font-size: 11.5px; color: var(--muted-soft); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.contact-item .value { font-size: 14.5px; font-weight: 700; color: var(--ink); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer.site {
  border-top: 1px solid var(--border-soft); padding: 40px 0;
}
footer.site .wrap {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.footer-legal a:hover { color: var(--accent); }
.footer-copy { font-size: 12px; color: var(--muted-soft); }

/* ── Páginas legales (privacidad / términos) ───────────────────────────── */
.legal-page { padding: 64px 0 96px; }
.legal-page .wrap { max-width: 760px; }
.legal-page h1 { font-size: 30px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.legal-page .updated { font-size: 12.5px; color: var(--muted-soft); margin-bottom: 40px; font-family: 'IBM Plex Mono', monospace; }
.legal-page h2 { font-size: 18px; font-weight: 700; color: var(--ink); margin: 34px 0 12px; }
.legal-page p, .legal-page li { font-size: 14.5px; color: var(--ink-soft); line-height: 1.75; margin-bottom: 12px; }
.legal-page ul { padding-left: 22px; margin-bottom: 16px; }
.legal-page a.inline { color: var(--accent); font-weight: 600; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  nav.main { display: none; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  .steps, .features { grid-template-columns: 1fr; }
  .cases { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .cta-band { padding: 40px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .bubble, .typing { animation: none !important; opacity: 1 !important; transform: none !important; }
}
