/* Paleta oscura estilo apple.com (modo noche): negro, grises #161617/#1d1d1f,
   texto #f5f5f7 y un único acento azul #0071e3 (#2997ff en enlaces). */
:root {
  --bg: #000;
  --bg-alt: #161617;
  --card: #1d1d1f;
  --text: #f5f5f7;
  --muted: #86868b;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-link: #2997ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.47;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 980px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 692px; }

/* Header: barra negra translúcida */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(0, 0, 0, .8);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.header-inner nav { display: flex; align-items: center; gap: 28px; }
.header-inner nav a { color: rgba(255,255,255,.8); text-decoration: none; font-size: .8rem; transition: color .2s; }
.header-inner nav a:hover { color: var(--text); }
.header-inner nav a.btn { color: #fff; }

.logo { display: inline-flex; align-items: center; }
.logo img { height: 34px; width: auto; display: block; }

/* Botones: píldora azul */
.btn {
  display: inline-block; background: var(--blue); color: #fff;
  padding: 12px 22px; border-radius: 980px; font-size: 1.05rem; font-weight: 400;
  letter-spacing: -.01em; text-decoration: none; transition: background .2s;
}
.btn:hover { background: var(--blue-hover); }
.btn-small { padding: 5px 13px; font-size: .8rem; }

/* Secciones */
.hero { background: var(--bg); color: var(--text); text-align: center; padding: 104px 0 120px; }
.hero h1 {
  font-size: clamp(2.6rem, 8vw, 5.5rem); line-height: 1.05; font-weight: 700;
  letter-spacing: -.03em; margin: 0 0 18px;
}
.lead { font-size: clamp(1.15rem, 2.6vw, 1.6rem); line-height: 1.25; color: var(--muted); max-width: 600px; margin: 0 auto 34px; font-weight: 400; }

.section { padding: 96px 0; text-align: center; }
.section.alt { background: var(--bg-alt); }
.section h2 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.08; font-weight: 700; letter-spacing: -.028em; margin: 0 0 24px; }
.section p { color: var(--muted); font-size: 1.2rem; line-height: 1.4; margin: 0 auto; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; margin-top: 48px; text-align: left; }
.grid article { background: var(--card); border-radius: 18px; padding: 32px; }
.grid h3 { margin: 0 0 8px; font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; }
.grid p { margin: 0; font-size: 1rem; line-height: 1.45; }

.contact { background: var(--bg); }
.contact .btn { margin-top: 28px; }
.small { font-size: .9rem !important; margin-top: 18px !important; }

/* Footer negro */
.site-footer { background: var(--bg); border-top: 1px solid #1d1d1f; color: var(--muted); padding: 44px 0 36px; text-align: center; font-size: .8rem; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: var(--blue-link); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer strong { color: var(--text); font-weight: 600; }
.footer-brand { display: inline-block; margin-bottom: 18px; }
.footer-brand img { height: 32px; width: auto; display: block; }

@media (max-width: 520px) {
  .header-inner nav a:not(.btn) { display: none; }
  .hero { padding: 64px 0 80px; }
  .section { padding: 64px 0; }
}

/* ---------- Demo ---------- */
.demo-intro { max-width: 560px; }
.demo-grid { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: center; margin-top: 56px; text-align: left; }
.demo-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.step {
  width: 100%; display: flex; gap: 16px; align-items: flex-start; text-align: left; cursor: pointer;
  background: transparent; color: var(--text); border: 1px solid transparent; border-radius: 18px; padding: 18px 20px;
  font: inherit; transition: background .2s, border-color .2s;
}
.step:hover { background: var(--card); }
.step.active { background: var(--card); border-color: #2f2f33; }
.step .num {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: #2a2a2d; color: var(--muted); font-size: .9rem; font-weight: 600;
}
.step.active .num { background: var(--blue); color: #fff; }
.step b { display: block; font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; }
.step small { display: block; margin-top: 4px; color: var(--muted); font-size: .95rem; line-height: 1.4; }
.step:not(.active) small { display: none; }

.demo-stage { display: flex; justify-content: center; }
.phone {
  position: relative; width: 320px; height: 690px; background: #0b0b0c; border: 10px solid #2a2a2d;
  border-radius: 44px; overflow: hidden; box-shadow: 0 30px 80px rgba(41, 151, 255, .12);
  font-size: 13px; color: #f5f5f7; letter-spacing: 0;
}
.phone-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; background: #000; border-radius: 12px; z-index: 2; }
.screen { position: absolute; inset: 0; padding: 44px 14px 14px; overflow: hidden; background: #141310; }
.screen[hidden] { display: none; }

.app-brand { text-align: center; font-size: 26px; font-weight: 800; letter-spacing: .04em; color: #fff; }
.app-sub { text-align: center; font-size: 10px; letter-spacing: .3em; color: #8e8e93; margin: 2px 0 8px; }
.app-sub.left { text-align: left; margin-top: 4px; }
.app-event { text-align: center; margin-bottom: 12px; font-size: 12px; }
.app-card { background: #22221f; border: 1px solid #333; border-radius: 18px; padding: 14px; }
.app-card h3, .door-title { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.door-title { font-size: 22px; margin-bottom: 10px; }
.app-card label { display: block; color: #8e8e93; font-size: 11px; margin: 8px 0 4px; }
.field { background: #100f0c; border: 1px solid #38382f; border-radius: 10px; padding: 9px 11px; font-size: 13px; }
.field-row { display: flex; gap: 6px; }
.field-row .pre { flex: none; }
.field-row .field:last-child { flex: 1; }
.app-btn { background: var(--blue); color: #fff; text-align: center; font-weight: 600; border-radius: 10px; padding: 10px; margin-top: 14px; }
.app-note { color: #8e8e93 !important; font-size: 11px !important; line-height: 1.35 !important; margin: 10px 0 0 !important; text-align: left; }

/* WhatsApp */
.chat { background: #0b141a; padding: 0; display: flex; flex-direction: column; }
.chat-head { display: flex; gap: 10px; align-items: center; background: #202c33; padding: 40px 14px 10px; }
.chat-head .avatar { width: 32px; height: 32px; border-radius: 50%; background: #2a3942; display: grid; place-items: center; font-weight: 700; }
.chat-head b { display: block; font-size: 14px; }
.chat-head small { color: #8696a0; font-size: 11px; }
.chat-body { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 88%; background: #202c33; border-radius: 4px 12px 12px 12px; padding: 8px 10px 6px; font-size: 13px; line-height: 1.38; text-align: left; }
.bubble i { display: block; text-align: right; color: #8696a0; font-size: 10px; font-style: normal; margin-top: 2px; }
.bubble u { color: #53bdeb; word-break: break-all; }
.chat-foot { padding: 12px 14px 16px; color: #8696a0; font-size: 11px; text-align: center; border-top: 1px solid #1f2c34; }

/* Puerta */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; }
.stats div { background: #22221f; border: 1px solid #333; border-radius: 12px; padding: 8px 10px; text-align: left; }
.stats b { display: block; font-size: 20px; }
.stats small { color: #8e8e93; font-size: 10px; }
.door-tools { display: flex; gap: 6px; margin-bottom: 8px; }
.door-tools input { flex: 1; min-width: 0; background: #100f0c; color: #f5f5f7; border: 1px solid #38382f; border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 12px; }
.ghost { background: transparent; color: #f5f5f7; border: 1px solid #38382f; border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; }
.door-list { display: grid; gap: 6px; overflow: hidden; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #22221f; border: 1px solid #333; border-radius: 12px; padding: 8px 10px; text-align: left; }
.row[hidden] { display: none; }
.row b { display: block; font-size: 12px; }
.row small { display: block; color: #8e8e93; font-size: 10px; margin-top: 1px; }
.row button { flex: none; background: var(--blue); color: #fff; border: 0; border-radius: 980px; padding: 6px 10px; font: inherit; font-size: 11px; cursor: pointer; }
.row.in { border-color: #1f5f3a; }
.row.in button { background: #1f6f43; }
.door-hint { margin: 8px 0 0 !important; font-size: 11px !important; color: #8e8e93 !important; text-align: center; }

.demo-points { margin-top: 72px; }
.demo-points article { background: var(--card); }

@media (max-width: 860px) {
  .demo-grid { grid-template-columns: 1fr; gap: 32px; }
  .demo-stage { order: -1; }
}
