/* ============================================================
   NIVELUNO · capa propia sobre agency.css (plantilla Northbound) y
   laptop.css (efecto Laptop Screen Scroll), ambas de GSAP Vault.
   Aquí viven: la portada sobre la laptop, la app web que se ve en la
   pantalla, la conversación de la sección "Cómo funciona", los
   bloques "Lo que puedes pedirle", los canales y los ajustes de marca.
   ============================================================ */

body {
  overflow-x: clip;
}

/* Botones redondos, como en la dirección visual vigente. */
.btn {
  border-radius: 999px;
  padding: 0.9rem 1.5rem;
}

.wordmark {
  font-weight: 800;
  font-size: 1.125rem;
}
.wordmark svg {
  width: 24px;
  height: 24px;
  display: block;
  flex: none;
}

.masthead {
  position: relative;
  z-index: 5;
  background: var(--ground);
}

/* ============================================================
   1. PORTADA CON LA LAPTOP
   ============================================================ */

.hero-laptop {
  background: var(--ground);
}

[data-laptop-stage] {
  background:
    radial-gradient(60% 45% at 50% 100%, rgba(var(--accent-rgb), 0.14), transparent 70%),
    linear-gradient(180deg, #edf2ee 0%, var(--ground) 60%, #dfe7e2 100%);
}

.hero-copy {
  position: absolute;
  z-index: 8;
  top: clamp(1.5rem, 5vh, 3.5rem);
  left: 0;
  right: 0;
  margin-inline: auto;
  width: min(92vw, 860px);
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
  pointer-events: none;
}
.hero-copy > * {
  pointer-events: auto;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-brand svg {
  width: clamp(2.4rem, 5vw, 3.6rem);
  height: auto;
  display: block;
}
.hero-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-lede {
  margin: 0;
  max-width: 44rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.5;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.hero-channels {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-channels span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

[data-laptop-cue] {
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

@media (max-height: 700px) and (min-width: 700px) {
  .hero-lede {
    display: none;
  }
}
@media (max-width: 600px) {
  .hero-copy {
    top: 1.25rem;
    gap: 0.75rem;
  }
  .hero-lede {
    font-size: 0.95rem;
  }
  .hero-channels {
    display: none;
  }
}

/* ---- la app web dentro de la pantalla ---- */

.laptop-media,
.screen-site {
  background: #f4f6f3;
  color: var(--ink);
  font-family: var(--font-body);
}
.site-frame {
  font-family: var(--font-body);
}

.app {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  background: #f4f6f3;
  overflow: hidden;
}

.app-side {
  background: var(--deep);
  color: var(--paper);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}
.app-side-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.app-side-brand svg {
  width: 22px;
  height: 22px;
}
.app-new {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(var(--paper-rgb), 0.25);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
}
.app-side-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-top: 6px;
}
.app-list {
  list-style: none;
  display: grid;
  gap: 3px;
}
.app-list li {
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  opacity: 0.75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-list li.is-on {
  background: rgba(var(--paper-rgb), 0.1);
  opacity: 1;
}
.app-user {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.25;
}
.app-user small {
  opacity: 0.6;
  font-size: 11.5px;
}
.app-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  flex: none;
}

.app-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
}
.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(var(--ink-rgb), 0.1);
  background: #fff;
}
.app-url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
  background: var(--ground);
  padding: 6px 12px;
  border-radius: 999px;
}
.app-scope {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-dim);
  white-space: nowrap;
}

.app-chat {
  overflow: hidden;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
}
.app-thread {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.msg {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.5;
}
.msg--user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.msg--bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid rgba(var(--ink-rgb), 0.1);
  border-bottom-left-radius: 6px;
}
.msg-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--ground);
  font-size: 13px;
  font-weight: 600;
}
.msg-file i {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #1d6f42;
  display: block;
  flex: none;
}
.chart-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 12px;
}
.bars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  height: 150px;
  margin-bottom: 12px;
  min-width: 320px;
}
.bar {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 4px;
  height: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--ink-dim);
}
.bar i {
  display: block;
  align-self: end;
  height: var(--h, 50%);
  background: var(--accent);
  border-radius: 6px 6px 2px 2px;
}
.bar b {
  font-size: 12px;
  color: var(--ink);
  font-weight: 700;
}

.app-composer {
  padding: 14px 28px 22px;
}
.app-input {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid rgba(var(--ink-rgb), 0.14);
  border-radius: 999px;
  padding: 8px 8px 8px 18px;
  font-size: 14px;
  color: var(--ink-faint);
}
.app-placeholder {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-input .ic {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ground);
  color: var(--ink);
  flex: none;
}
.app-input .ic--send {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 600px) {
  .app {
    grid-template-columns: minmax(0, 1fr);
  }
  .app-side {
    display: none;
  }
  .app-bar {
    padding: 12px 16px;
  }
  .app-scope {
    display: none;
  }
  .app-chat {
    padding: 16px;
  }
  .msg {
    max-width: 92%;
    font-size: 14px;
  }
  .bars {
    min-width: 0;
    height: 120px;
  }
  .app-composer {
    padding: 10px 16px 18px;
  }
}

/* ============================================================
   2. LO QUE PUEDES PEDIRLE
   ============================================================ */

.uso-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.uso {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.35rem);
}
.uso .chat {
  margin-top: 1.4rem;
}
@media (max-width: 760px) {
  .uso-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Burbujas reutilizadas en usos y canales. */
.chat {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem;
  background: var(--ground);
  border: 1px solid var(--hair);
  border-radius: 16px;
}
.cb {
  max-width: 88%;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  background: #fff;
  color: var(--ink);
}
.cb--me {
  align-self: flex-end;
  background: var(--accent);
  color: var(--on-accent);
  border-bottom-right-radius: 4px;
}
.cb--bot {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid var(--hair);
}
.cb--voice {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 70%;
}
.wave {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 18px;
}
.wave i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
  height: 6px;
}
.wave i:nth-child(2) { height: 11px; }
.wave i:nth-child(3) { height: 16px; }
.wave i:nth-child(4) { height: 9px; }
.wave i:nth-child(5) { height: 14px; }
.wave i:nth-child(6) { height: 18px; }
.wave i:nth-child(7) { height: 8px; }
.wave i:nth-child(8) { height: 13px; }
.wave i:nth-child(9) { height: 6px; }
.wave i:nth-child(10) { height: 15px; }
.wave i:nth-child(11) { height: 10px; }
.wave i:nth-child(12) { height: 7px; }

/* ============================================================
   3. CÓMO FUNCIONA · la conversación fijada
   Misma mecánica que el mockup de la plantilla: [data-wire] en el
   momento 1, [data-real] en el 2, [data-colour] en el 3.
   ============================================================ */

.mock-frame--chat .mock-chrome {
  background: #e9eeea;
}
.mock-chat {
  justify-content: flex-end;
  gap: 1.6cqw;
  padding: 2.4cqw 3cqw;
  background: #f4f6f3;
}
.mmsg {
  position: relative;
  display: grid;
  gap: 0.8cqw;
  max-width: 76%;
  padding: 1.5cqw 1.9cqw;
  border-radius: 2.2cqw;
  font-size: 1.8cqw;
  line-height: 1.45;
}
.mmsg--user {
  justify-self: end;
  background: var(--ink);
  color: var(--paper);
  border-bottom-right-radius: 0.6cqw;
}
.mmsg--user .mfill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent);
}
.mmsg--user .mtext {
  position: relative;
}
.mmsg--bot {
  justify-self: start;
  width: 76%;
  background: #fff;
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  border-bottom-left-radius: 0.6cqw;
}
.mslot--line {
  width: 100%;
}
.mslot--line .mwire {
  height: 0.62em;
}
.mslot--w70 .mwire {
  width: 70%;
}
.mslot--w45 .mwire {
  width: 45%;
}
.mslot--line .mreal {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.45;
}
.mpie-row {
  display: flex;
  align-items: center;
  gap: 2cqw;
  margin-top: 0.6cqw;
}
.mpie {
  position: relative;
  width: 11cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  flex: none;
  background: rgba(var(--ink-rgb), 0.08);
}
.mpie-art {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    var(--accent) 0 38%,
    rgba(var(--accent-rgb), 0.65) 38% 65%,
    rgba(var(--accent-rgb), 0.4) 65% 84%,
    rgba(var(--ink-rgb), 0.22) 84% 100%
  );
}
.mlegend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5cqw 1.6cqw;
  font-size: 1.45cqw;
  color: var(--ink-dim);
}
.mlegend span {
  display: flex;
  align-items: center;
  gap: 0.6cqw;
  white-space: nowrap;
}
.mlegend i {
  width: 1.1cqw;
  height: 1.1cqw;
  border-radius: 2px;
  background: rgba(var(--accent-rgb), var(--c, 1));
  flex: none;
}
.mfile {
  display: inline-flex;
  align-items: center;
  gap: 0.8cqw;
  justify-self: start;
  padding: 0.7cqw 1.2cqw;
  border-radius: 0.8cqw;
  background: var(--ground);
  font-size: 1.45cqw;
  font-weight: 600;
  color: var(--ink);
}
.mfile i {
  width: 1.6cqw;
  height: 1.6cqw;
  border-radius: 0.3cqw;
  background: #1d6f42;
  display: block;
}
@media (max-width: 560px) {
  .mmsg {
    max-width: 90%;
    font-size: 2.6cqw;
  }
  .mmsg--bot {
    width: 90%;
  }
  .mlegend {
    font-size: 2.1cqw;
  }
  .mfile {
    font-size: 2.1cqw;
  }
}

/* ============================================================
   4. CANALES · las tres pantallas
   ============================================================ */

.chan {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #eef2ef;
}
.chan-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}
.chan-head small {
  font-weight: 400;
  opacity: 0.75;
  font-size: 0.72rem;
}
.chan-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  flex: none;
}
.chan--wa .chan-head {
  background: #075e54;
}
.chan--wa {
  background: #ece5dd;
}
.chan--tg .chan-head {
  background: #2aabee;
}
.chan--web .chan-head {
  background: var(--deep);
}
.chan-body {
  flex: 1;
  padding: 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
}
.chan .cb {
  font-size: 0.8rem;
  padding: 0.5rem 0.7rem;
}
.chan--wa .cb--me {
  background: #d9fdd3;
  color: var(--ink);
}
.chan--tg .cb--me {
  background: #effdde;
  color: var(--ink);
}

/* ============================================================
   5. PLANES
   ============================================================ */

.svc--star {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.svc-btn {
  margin-top: 1.4rem;
  justify-content: center;
}
.svc-foot {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--ink-dim);
  max-width: 60rem;
}

/* ============================================================
   6. CONTACTO
   ============================================================ */

.demo-card {
  background: var(--slate);
  border: 1px solid rgba(var(--paper-rgb), 0.12);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid;
  gap: 1.25rem;
  align-content: start;
}
.card-kicker--dark {
  color: var(--paper-dim);
  border-bottom-color: rgba(var(--paper-rgb), 0.16);
}
.demo-steps {
  display: grid;
  gap: 0.9rem;
  padding-left: 1.4rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--paper-soft);
}
.demo-steps b {
  color: var(--paper);
  font-weight: 600;
}
.demo-card .btn {
  justify-self: start;
}

.footer .model-credit {
  margin-top: 0.75rem;
  max-width: none;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: rgba(var(--paper-rgb), 0.34);
}
.footer .model-credit a {
  color: inherit;
  text-decoration-color: rgba(var(--paper-rgb), 0.25);
}
