/* ═══════════════════════════════════════════
   Secciones de plataforma (basadas en la presentación OnStage):
   cómo trabaja, modelo BIM, recepciones, analítica, IA vía MCP
   y tipos de proyecto. Usa los tokens de main.css.
═══════════════════════════════════════════ */

/* ── Piezas compartidas ── */
.landing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.landing-tags li {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 83, 0, 0.08);
  color: var(--landing-brand-dark);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
}

.landing-tags--center {
  justify-content: center;
}

.channels-section .section-heading > p,
.bim-section .section-heading > p,
.analytics-section .section-heading > p,
.project-types-section .section-heading > p {
  margin-top: 16px;
}

.landing-section--dark .landing-eyebrow {
  color: #ff8a4c;
}

.ai-copy h2,
.reception-copy h2 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #fff;
}

/* ── Hero: frase destacada y prueba social ── */
.hero-section__accent {
  font-style: normal;
  color: var(--landing-brand);
}

.hero-section .hero-section__proof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  line-height: 1.4;
  animation: landing-hero-line-in 0.9s 0.95s var(--landing-ease-out, ease-out) both;
}

.hero-section__proof strong {
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
}

.hero-section__proof-sep {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.4);
}

/* ── Cómo trabaja: dos medios, una fuente ── */
.channels-grid {
  --channels-gap: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr) minmax(0, 1fr);
  gap: var(--channels-gap);
  align-items: stretch;
}

.channel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--landing-line);
  border-radius: var(--landing-radius-md);
  background: #fff;
  box-shadow: 0 10px 30px rgba(12, 18, 28, 0.06);
}

.channel-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.channel-card__head h3 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1.15rem;
}

.channel-card__head p {
  margin: 2px 0 0;
  color: var(--landing-muted);
  font-size: 0.92rem;
}

.channel-card__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 83, 0, 0.1);
  color: var(--landing-brand);
}

.channel-card__icon--whatsapp {
  background: rgba(37, 211, 102, 0.12);
  color: #1faa55;
}

/* La nota inferior se ancla abajo: ambas tarjetas quedan parejas */
.channel-card__note {
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--landing-line);
  color: var(--landing-ink-soft);
  font-size: 0.93rem;
  line-height: 1.55;
}

/* Chat de WhatsApp con la etiqueta que pone la IA */
.channel-chat {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-radius: var(--landing-radius-sm);
  background: #efeae2;
}

.channel-chat__msg {
  position: relative;
  max-width: 90%;
  padding: 8px 12px 28px;
  border-radius: 4px 12px 12px 12px;
  background: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}

.channel-chat__msg p {
  margin: 0;
  color: var(--landing-ink);
  font-size: 0.9rem;
  line-height: 1.4;
}

.channel-chat__msg--own {
  align-self: flex-end;
  border-radius: 12px 4px 12px 12px;
  background: #d9fdd3;
}

.channel-chat__author {
  display: block;
  margin-bottom: 2px;
  color: #1faa55;
  font-size: 0.75rem;
  font-weight: 700;
}

.channel-chat__msg:nth-child(2) .channel-chat__author {
  color: #c2410c;
}

.channel-chat__msg time {
  position: absolute;
  right: 10px;
  bottom: 6px;
  color: var(--landing-muted);
  font-size: 0.68rem;
}

.channel-chat__tag {
  position: absolute;
  left: 10px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--landing-brand);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.channel-chat__tag::before {
  content: "✦";
  font-size: 0.6rem;
}

.has-reveal .channel-card .channel-chat__tag {
  opacity: 0;
  transform: scale(0.4);
  transform-origin: 0 50%;
  transition: opacity 0.3s ease, transform 0.45s var(--landing-ease-spring, ease-out);
}

.has-reveal .channel-card.is-revealed .channel-chat__tag {
  opacity: 1;
  transform: none;
}

.has-reveal .channel-card.is-revealed .channel-chat__msg:nth-child(1) .channel-chat__tag { transition-delay: 0.8s; }
.has-reveal .channel-card.is-revealed .channel-chat__msg:nth-child(2) .channel-chat__tag { transition-delay: 1.3s; }
.has-reveal .channel-card.is-revealed .channel-chat__msg:nth-child(3) .channel-chat__tag { transition-delay: 1.8s; }

/* Edificio isométrico coloreado por estado + leyenda */
.channel-app {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 16px 14px;
  border-radius: var(--landing-radius-sm);
  background: #eef2f6;
}

.channel-app__model {
  display: block;
  width: 100%;
  max-width: 124px;
  height: auto;
  overflow: visible;
}

/* Muro seleccionado: borde naranja grueso que pulsa */
.channel-app__model .iso-sel {
  stroke: var(--landing-brand);
  stroke-width: 3.5;
  stroke-linejoin: round;
  paint-order: stroke;
  filter: drop-shadow(0 0 4px rgba(255, 83, 0, 0.7));
  animation: channel-app-pulse 1.6s ease-in-out infinite;
}

@keyframes channel-app-pulse {
  0%, 100% { stroke-opacity: 1; }
  50% { stroke-opacity: 0.45; }
}

.channel-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--landing-ink-soft);
  font-size: 0.72rem;
  font-weight: 600;
}

.channel-legend li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.channel-legend li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--c);
}

/* Plataforma central */
.channel-hub {
  position: relative;
  align-self: center;
  padding: 34px 26px 26px;
  border: 2px solid var(--landing-brand);
  border-radius: var(--landing-radius-lg);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 83, 0, 0.08), transparent 60%),
    #fff;
  text-align: center;
  box-shadow: 0 24px 60px rgba(255, 83, 0, 0.18);
}

.channel-hub__pulse {
  position: absolute;
  inset: -2px;
  border: 2px solid var(--landing-brand);
  border-radius: inherit;
  pointer-events: none;
  animation: hub-pulse 2.6s ease-out infinite;
}

@keyframes hub-pulse {
  0% { opacity: 0.55; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.08); }
}

.channel-hub__logo {
  width: 150px;
  margin: 0 auto 16px;
}

.channel-hub h3 {
  margin: 0 0 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 1.25rem;
}

.channel-hub p {
  margin: 0;
  color: var(--landing-ink-soft);
  line-height: 1.55;
}

.channel-hub__chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

/* Las categorías se encienden a medida que llegan los datos */
.channel-hub__chips li {
  padding: 9px 8px;
  border-radius: 10px;
  background: var(--landing-surface-soft);
  font-size: 0.85rem;
  font-weight: 700;
  animation: hub-chip 6s ease-in-out infinite;
}

.channel-hub__chips li:nth-child(2) { animation-delay: 1.5s; }
.channel-hub__chips li:nth-child(3) { animation-delay: 3s; }
.channel-hub__chips li:nth-child(4) { animation-delay: 4.5s; }

@keyframes hub-chip {
  0%, 22%, 100% { background: var(--landing-surface-soft); color: var(--landing-ink); }
  6%, 16% { background: var(--landing-brand); color: #fff; }
}

.channel-hub__foot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  color: var(--landing-muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.channel-hub__foot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
  animation: live-dot 1.6s ease-in-out infinite;
}

@keyframes live-dot {
  50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.05); }
}

/* Conectores con datos viajando hacia la plataforma */
.channel-link {
  position: absolute;
  top: 50%;
  width: var(--channels-gap);
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 83, 0, 0.35) 0 6px, transparent 6px 11px);
  pointer-events: none;
}

.channel-link--in {
  right: 100%;
}

.channel-link--out {
  left: 100%;
}

.channel-link i {
  position: absolute;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--landing-brand);
  box-shadow: 0 0 8px rgba(255, 83, 0, 0.7);
  opacity: 0;
}

.channel-link--in i {
  left: 0;
  animation: link-in 1.8s linear infinite;
}

.channel-link--out i {
  right: 0;
  animation: link-out 1.8s linear infinite;
}

.channel-link i:nth-child(2) { animation-delay: 0.6s; }
.channel-link i:nth-child(3) { animation-delay: 1.2s; }

@keyframes link-in {
  0% { opacity: 0; transform: translateX(0); }
  15%, 85% { opacity: 1; }
  100% { opacity: 0; transform: translateX(calc(var(--channels-gap) - 8px)); }
}

@keyframes link-out {
  0% { opacity: 0; transform: translateX(0); }
  15%, 85% { opacity: 1; }
  100% { opacity: 0; transform: translateX(calc(8px - var(--channels-gap))); }
}

@media (max-width: 1120px) {
  .channels-grid {
    --channels-gap: 40px;
  }
}

/* Apilado: los datos bajan desde WhatsApp y suben desde el modelo */
@media (max-width: 980px) {
  .channels-grid {
    --channels-gap: 48px;
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .channel-hub {
    align-self: stretch;
  }

  .channel-link {
    top: auto;
    left: 50%;
    right: auto;
    width: 2px;
    height: var(--channels-gap);
    background: repeating-linear-gradient(180deg, rgba(255, 83, 0, 0.35) 0 6px, transparent 6px 11px);
  }

  .channel-link--in {
    bottom: 100%;
  }

  .channel-link--out {
    top: 100%;
  }

  .channel-link i {
    top: auto;
    left: -3px;
    right: auto;
  }

  .channel-link--in i {
    top: 0;
    animation-name: link-down;
  }

  .channel-link--out i {
    bottom: 0;
    animation-name: link-up;
  }

  @keyframes link-down {
    0% { opacity: 0; transform: translateY(0); }
    15%, 85% { opacity: 1; }
    100% { opacity: 0; transform: translateY(calc(var(--channels-gap) - 8px)); }
  }

  @keyframes link-up {
    0% { opacity: 0; transform: translateY(0); }
    15%, 85% { opacity: 1; }
    100% { opacity: 0; transform: translateY(calc(8px - var(--channels-gap))); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .channel-app__model .iso-sel,
  .channel-hub__pulse,
  .channel-hub__chips li,
  .channel-hub__foot::before,
  .channel-link i {
    animation: none;
  }

  .channel-hub__pulse {
    display: none;
  }
}

/* ── "Cómo funciona": beneficios bajo los pasos ── */
.bot-flow__perks {
  margin-top: 36px;
}

.bot-flow__perks li {
  padding: 8px 16px;
  font-size: 0.88rem;
}

/* ── Modelo BIM ── */
.bim-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.bim-viewer {
  margin: 0;
  overflow: hidden;
  border-radius: var(--landing-radius-md);
  background: var(--landing-dark-soft);
  box-shadow: var(--landing-shadow);
}

.bim-viewer__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

.bim-viewer__dots {
  display: flex;
  gap: 6px;
}

.bim-viewer__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

/* Escenario del modelo 3D interactivo (bim3d.js) */
.bim-viewer__stage {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, #ffffff 0%, #eef2f6 55%, #dfe5ec 100%);
}

.bim-viewer__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
  outline: none;
}

.bim-viewer.is-dragging .bim-viewer__canvas {
  cursor: grabbing;
}

.bim-viewer__canvas:focus-visible {
  box-shadow: inset 0 0 0 3px var(--landing-brand);
}

.bim-viewer__fallback {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bim-viewer.is-fallback .bim-viewer__fallback {
  display: block;
}

.bim-viewer.is-fallback .bim-ov,
.bim-viewer.is-fallback .bim-legend {
  display: none;
}

.bim-viewer__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.bim-viewer__loading span {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 83, 0, 0.18);
  border-top-color: var(--landing-brand);
  border-radius: 50%;
  animation: bim-spin 0.9s linear infinite;
}

.bim-viewer__loading[hidden] {
  display: none;
}

@keyframes bim-spin {
  to { transform: rotate(360deg); }
}

/* Paneles sobre el modelo, con el diseño de la presentación */
.bim-ov {
  position: absolute;
  z-index: 3;
  margin: 0;
}

.bim-ov[hidden] {
  display: none;
}

.bim-ov--panel {
  top: 14px;
  left: 14px;
  max-width: calc(100% - 28px);
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(17, 19, 24, 0.94);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.bim-ov--panel strong {
  display: block;
  font: 700 0.92rem "Montserrat", sans-serif;
}

.bim-ov--panel span {
  display: block;
  margin-top: 3px;
  color: #aeb4be;
  font-size: 0.78rem;
}

/* Pestañas Terminaciones / Obra gruesa */
.bim-panel__tabs {
  display: inline-flex;
  gap: 2px;
  margin-bottom: 8px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: auto;
}

.bim-panel__tabs button {
  padding: 4px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #aeb4be;
  font: 600 0.74rem "Rubik", sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.bim-panel__tabs button:hover {
  color: #fff;
}

.bim-panel__tabs button[aria-pressed="true"] {
  background: var(--landing-brand);
  color: #fff;
}

.bim-panel__tabs button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 1px;
}

/* Botón "Agrupar" (vista Piso 14) */
.bim-panel__group {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  background: #2b313b;
  color: #fff;
  font: 700 0.82rem "Montserrat", sans-serif;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.25s ease, transform 0.15s ease;
}

.bim-panel__group[hidden] {
  display: none;
}

.bim-panel__group:hover:not(:disabled) {
  background: #3a414d;
}

.bim-panel__group.is-hot {
  background: var(--landing-brand);
}

.bim-panel__group.is-done {
  background: #3b82f6;
  cursor: default;
}

.bim-panel__group:active:not(:disabled) {
  transform: scale(0.96);
}

/* Transición entre vistas */
.bim-viewer__canvas {
  transition: opacity 0.28s ease;
}

.bim-viewer.is-switching .bim-viewer__canvas {
  opacity: 0;
}

/* Cursor de la demostración guiada */
.bim-ov--cursor {
  top: 0;
  left: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transform: translate(-5px, -3px);
  transition: opacity 0.3s ease;
}

.bim-ov--cursor.is-visible {
  opacity: 1;
}

.bim-ov--cursor svg {
  display: block;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}

.bim-ov--cursor::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 5px;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 2px solid var(--landing-brand);
  border-radius: 50%;
  opacity: 0;
}

.bim-ov--cursor.is-click::before {
  animation: bim-click 0.5s ease-out;
}

@keyframes bim-click {
  from { opacity: 1; transform: scale(0.3); }
  to { opacity: 0; transform: scale(1.4); }
}

.bim-cursor__step {
  position: absolute;
  top: 18px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--landing-brand);
  color: #fff;
  font: 700 0.75rem "Montserrat", sans-serif;
  box-shadow: 0 4px 10px rgba(255, 83, 0, 0.4);
}

.bim-cursor__step:empty {
  display: none;
}

/* Tooltip al pasar el mouse: piso / elemento / estado */
.bim-ov--tip {
  top: 0;
  left: 0;
  display: none;
  grid-template-columns: auto auto;
  overflow: hidden;
  border-radius: 8px;
  background: var(--tip-color, #e8562a);
  color: #fff;
  font-size: 0.75rem;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  transform: translate(16px, -50%);
}

.bim-ov--tip.is-visible {
  display: grid;
}

.bim-ov--tip span {
  padding: 5px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.bim-ov--tip span:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, 0.35);
}

.bim-ov--tip span:nth-last-child(-n + 2) {
  border-bottom: 0;
}

/* Etiqueta flotante del grupo de 3 muros */
.bim-ov--glabel {
  top: 0;
  left: 0;
  border: 0;
  padding: 6px 12px;
  border-radius: 9px;
  background: var(--landing-brand);
  color: #fff;
  font: 700 0.8rem "Montserrat", sans-serif;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(255, 83, 0, 0.35);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -130%);
  transition: opacity 0.4s ease, background 0.4s ease;
}

.bim-ov--glabel::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  margin-left: -6px;
  border: 6px solid transparent;
  border-bottom: 0;
  border-top-color: var(--landing-brand);
  transition: border-color 0.4s ease;
}

.bim-ov--glabel.is-visible {
  opacity: 1;
}

/* En la vista de torre la etiqueta lleva al Piso 14 */
.bim-ov--glabel.is-link {
  pointer-events: auto;
  cursor: pointer;
}

.bim-ov--glabel.is-link:not(.is-visible) {
  pointer-events: none;
}

.bim-ov--glabel.is-link:hover {
  background: var(--landing-brand-dark);
}

.bim-ov--glabel.is-link:hover::after {
  border-top-color: var(--landing-brand-dark);
}

.bim-ov--glabel:focus-visible {
  outline: 2px solid #111318;
  outline-offset: 2px;
}

.bim-ov--glabel.is-review {
  background: #3b82f6;
}

.bim-ov--glabel.is-review::after {
  border-top-color: #3b82f6;
}

/* Menú del elemento: Liberar / Ver protocolo / Agregar observación */
.bim-ov--menu {
  top: 0;
  left: 0;
  z-index: 4;
  width: 230px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  color: #1a1d23;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  animation: bim-pop-in 0.22s var(--landing-ease-spring, ease-out) both;
  transform-origin: 0 0;
}

@keyframes bim-pop-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: none; }
}

.bim-menu__head {
  display: block;
  padding: 8px 10px 6px;
  color: #6b7280;
  font: 700 0.7rem ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.02em;
}

.bim-menu__item {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: 500 0.85rem "Rubik", sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.bim-menu__item:hover,
.bim-menu__item:focus-visible {
  background: #f1f3f6;
  outline: none;
}

.bim-menu__item svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: #6b7280;
}

.bim-menu__item--main {
  color: var(--landing-brand);
  font-weight: 700;
}

.bim-menu__item--main svg {
  color: var(--landing-brand);
}

/* Fecha de cierre (tercer click) */
.bim-ov--date {
  top: 50%;
  left: 50%;
  z-index: 4;
  width: min(340px, calc(100% - 24px));
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff;
  color: #1a1d23;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -50%);
  animation: bim-date-in 0.25s ease-out both;
}

@keyframes bim-date-in {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 12px)); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.bim-ov--date strong {
  display: block;
  font: 700 1rem "Montserrat", sans-serif;
}

.bim-date__status {
  display: block;
  margin-top: 3px;
  color: #6b7280;
  font-size: 0.8rem;
}

.bim-ov--date.is-done .bim-date__status {
  color: #1e9e46;
  font-weight: 600;
}

.bim-date__chips {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.bim-date__chips button {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  padding: 8px 6px;
  border: 1.5px solid #e2e5ea;
  border-radius: 10px;
  background: #fff;
  color: #6b7280;
  font: 500 0.72rem "Rubik", sans-serif;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.bim-date__chips b {
  color: #1a1d23;
  font: 700 0.95rem "Montserrat", sans-serif;
}

.bim-date__chips button:hover,
.bim-date__chips button:focus-visible {
  border-color: var(--landing-brand);
  outline: none;
}

.bim-date__chips button.is-selected {
  border-color: var(--landing-brand);
  background: var(--landing-brand);
  color: #fff;
}

.bim-date__chips button.is-selected b {
  color: #fff;
}

/* Aviso: "Enviado a revisión en 3 clicks" */
.bim-ov--toast {
  top: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  background: #111318;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.35s var(--landing-ease-spring, ease-out);
}

.bim-ov--toast.is-visible {
  opacity: 1;
  transform: none;
}

.bim-ov--toast svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #34c77b;
}

/* "Pruébalo: gira el modelo y haz clic en un muro" */
.bim-ov--hint {
  bottom: 14px;
  left: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: calc(100% - 28px);
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #3a404a;
  font-size: 0.8rem;
  box-shadow: 0 6px 16px rgba(12, 18, 28, 0.08);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.bim-ov--hint svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--landing-brand);
}

.bim-viewer.is-ready .bim-ov--hint {
  opacity: 1;
}

.bim-viewer.has-interacted .bim-ov--hint {
  opacity: 0;
}

/* Leyenda: también filtra el modelo por estado */
.bim-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 14px;
}

.bim-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font: 500 0.78rem "Rubik", sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.bim-legend__item::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--legend-color);
}

.bim-legend__item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.bim-legend__item:focus-visible {
  outline: 2px solid var(--landing-brand);
  outline-offset: 1px;
}

.bim-legend__item[aria-pressed="true"] {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.bim-viewer.is-filtered .bim-legend__item[aria-pressed="false"] {
  opacity: 0.5;
}

.bim-legend__count {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
}

.bim-legend__count:empty {
  display: none;
}

/* Mismos colores de estado que la presentación */
.bim-legend__item--no-liberado { --legend-color: #f5a33b; }
.bim-legend__item--a-revisar { --legend-color: #3b82f6; }
.bim-legend__item--en-proceso { --legend-color: #8b5cf6; }
.bim-legend__item--observaciones { --legend-color: #ef4444; }
.bim-legend__item--cerrado { --legend-color: #34c77b; }

@media (max-width: 720px) {
  .bim-viewer__stage {
    aspect-ratio: 4 / 5;
  }

  .bim-ov--toast {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 12px;
    transform: translate(-50%, 8px);
  }

  .bim-ov--toast.is-visible {
    transform: translate(-50%, 0);
  }
}

/* ── Texto destacado en naranja (como en la presentación) ── */
.text-brand {
  font-style: normal;
  color: var(--landing-brand);
}

.landing-tags li.is-neutral {
  background: rgba(23, 26, 31, 0.06);
  color: var(--landing-ink-soft);
}

.landing-section--dark .landing-tags li {
  border: 1px solid rgba(255, 83, 0, 0.35);
  background: rgba(255, 83, 0, 0.12);
  color: #ff8a4c;
}

.landing-section--dark .landing-tags li.is-neutral {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #e8eaee;
}

/* Fondo de puntos naranjos tenues, como la presentación */
.msg-flow-section,
.wa-quality-section {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 83, 0, 0.1), transparent 55%),
    radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(180deg, #111418 0%, #090b0e 100%);
}

/* Tarjeta oscura compartida */
.msg-flow__card,
.wa-quality__step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--landing-radius-md);
  background: rgba(24, 28, 34, 0.92);
  color: #fff;
}

.msg-flow__head {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #aeb4be;
  font: 600 0.76rem ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.msg-flow__num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--landing-brand);
  color: #fff;
  font: 800 0.85rem "Montserrat", sans-serif;
  letter-spacing: 0;
}

/* ══ Del mensaje en terreno al dato estructurado ══ */
.msg-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.85fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.msg-flow__bubble {
  position: relative;
  padding: 12px 14px 20px;
  border-radius: 4px 14px 14px 14px;
  background: #d9fdd3;
  color: #111b21;
}

.msg-flow__bubble p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
}

.msg-flow__bubble time {
  position: absolute;
  right: 10px;
  bottom: 4px;
  color: #667781;
  font: 0.68rem ui-monospace, SFMono-Regular, Menlo, monospace;
}

.msg-flow__media {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.msg-flow__media li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  font-weight: 600;
}

.msg-flow__media svg {
  color: #25d366;
}

.msg-flow__wave {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 16px;
}

.msg-flow__wave i {
  width: 3px;
  height: calc(var(--h) * 16px);
  border-radius: 2px;
  background: #25d366;
  animation: msg-wave 1.1s ease-in-out infinite alternate;
}

.msg-flow__wave i:nth-child(2n) { animation-delay: 0.2s; }
.msg-flow__wave i:nth-child(3n) { animation-delay: 0.45s; }

@keyframes msg-wave {
  from { transform: scaleY(0.45); }
  to { transform: scaleY(1); }
}

.msg-flow__note {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.55;
}

.msg-flow__core {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.msg-flow__arrow {
  display: grid;
  flex-shrink: 0;
  color: var(--landing-brand);
  animation: msg-arrow 1.6s ease-in-out infinite;
}

@keyframes msg-arrow {
  0%, 100% { transform: translateX(-3px); opacity: 0.6; }
  50% { transform: translateX(4px); opacity: 1; }
}

.msg-flow__engine {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.msg-flow__orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
}

.msg-flow__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.msg-flow__ring--outer {
  border: 1.5px dashed rgba(255, 83, 0, 0.55);
  animation: msg-spin 18s linear infinite;
}

.msg-flow__ring--inner {
  inset: 18px;
  border: 3px solid transparent;
  border-top-color: var(--landing-brand);
  border-right-color: rgba(255, 83, 0, 0.35);
  animation: msg-spin 3.2s linear infinite;
}

@keyframes msg-spin {
  to { transform: rotate(360deg); }
}

.msg-flow__bot {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 26px;
  background: var(--landing-brand);
  color: #fff;
  box-shadow: 0 0 0 10px rgba(255, 83, 0, 0.12), 0 0 60px rgba(255, 83, 0, 0.55);
  animation: msg-glow 2.4s ease-in-out infinite;
}

@keyframes msg-glow {
  0%, 100% { box-shadow: 0 0 0 10px rgba(255, 83, 0, 0.12), 0 0 50px rgba(255, 83, 0, 0.45); }
  50% { box-shadow: 0 0 0 16px rgba(255, 83, 0, 0.08), 0 0 80px rgba(255, 83, 0, 0.7); }
}

.msg-flow__steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.msg-flow__steps li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--landing-brand);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.msg-flow__card--result {
  border-color: rgba(255, 83, 0, 0.6);
  box-shadow: 0 0 0 1px rgba(255, 83, 0, 0.2), 0 30px 70px rgba(255, 83, 0, 0.12);
}

.msg-flow__data {
  display: grid;
  gap: 12px;
  margin: 0;
}

.msg-flow__data div {
  display: grid;
  grid-template-columns: minmax(90px, 0.8fr) minmax(0, 1.4fr);
  gap: 12px;
  font-size: 0.95rem;
}

.msg-flow__data dt {
  color: #8f97a3;
}

.msg-flow__data dd {
  margin: 0;
  font-weight: 700;
}

/* Al aparecer: los pasos de la IA se encienden y los datos se completan en orden */
.has-reveal .msg-flow__steps li,
.has-reveal .msg-flow__data div {
  opacity: 0;
  translate: 0 8px;
  transition: opacity 0.45s ease, translate 0.45s var(--landing-ease-out, ease-out);
}

.has-reveal .msg-flow__core.is-revealed .msg-flow__steps li {
  opacity: 1;
  translate: 0 0;
}

.has-reveal .msg-flow__core.is-revealed .msg-flow__steps li:nth-child(1) { transition-delay: 0.5s; }
.has-reveal .msg-flow__core.is-revealed .msg-flow__steps li:nth-child(2) { transition-delay: 0.8s; }
.has-reveal .msg-flow__core.is-revealed .msg-flow__steps li:nth-child(3) { transition-delay: 1.1s; }

.has-reveal .msg-flow__card--result.is-revealed .msg-flow__data div {
  opacity: 1;
  translate: 0 0;
}

.has-reveal .msg-flow__card--result.is-revealed .msg-flow__data div:nth-child(1) { transition-delay: 1.4s; }
.has-reveal .msg-flow__card--result.is-revealed .msg-flow__data div:nth-child(2) { transition-delay: 1.55s; }
.has-reveal .msg-flow__card--result.is-revealed .msg-flow__data div:nth-child(3) { transition-delay: 1.7s; }
.has-reveal .msg-flow__card--result.is-revealed .msg-flow__data div:nth-child(4) { transition-delay: 1.85s; }
.has-reveal .msg-flow__card--result.is-revealed .msg-flow__data div:nth-child(5) { transition-delay: 2s; }
.has-reveal .msg-flow__card--result.is-revealed .msg-flow__data div:nth-child(6) { transition-delay: 2.15s; }

/* ══ Modelo BIM: visor + puntos "Flexible" + módulos ══ */
.bim-points {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bim-points .landing-eyebrow {
  margin-bottom: 0;
}

.bim-points__title {
  margin: 0 0 4px;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.bim-point {
  display: flex;
  gap: 16px;
}

.bim-point__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--landing-brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 83, 0, 0.3);
}

.bim-point h4 {
  margin: 2px 0 4px;
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
}

.bim-point p {
  margin: 0;
  color: var(--landing-ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Módulos: tarjetas parejas con número, ícono y etiquetas abajo */
.bim-modules-head {
  margin-top: 56px;
  text-align: center;
}

.bim-modules-head .landing-eyebrow {
  margin-bottom: 6px;
}

.bim-modules-head h3 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  letter-spacing: -0.02em;
}

.bim-modules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.bim-module {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 24px 22px 22px;
  border: 1px solid var(--landing-line);
  border-radius: var(--landing-radius-md);
  background: #fff;
  box-shadow: 0 6px 20px rgba(12, 18, 28, 0.04);
  transition: transform 0.35s var(--landing-ease-out, ease), box-shadow 0.35s ease, border-color 0.35s ease;
}

/* Línea naranja que se dibuja arriba al pasar el mouse */
.bim-module::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--landing-brand), #ff8a4c);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.45s var(--landing-ease-out, ease);
}

.bim-module:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 83, 0, 0.3);
  box-shadow: 0 22px 44px rgba(12, 18, 28, 0.1);
}

.bim-module:hover::before {
  transform: scaleX(1);
}

.bim-module__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.bim-module__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--landing-brand), #ff8a4c);
  color: #fff;
  box-shadow: 0 10px 22px rgba(255, 83, 0, 0.28);
  transition: transform 0.45s var(--landing-ease-spring, ease);
}

.bim-module:hover .bim-module__icon {
  transform: rotate(-6deg) scale(1.06);
}

.bim-module__num {
  color: rgba(23, 26, 31, 0.12);
  font: 800 1.9rem "Montserrat", sans-serif;
  line-height: 1;
}

.bim-module h3 {
  margin: 0 0 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 1.15rem;
}

.bim-module p {
  margin: 0 0 18px;
  color: var(--landing-ink-soft);
  font-size: 0.93rem;
  line-height: 1.6;
}

.bim-module .landing-tags {
  margin-top: auto;
}

.project-type-card__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 83, 0, 0.1);
  color: var(--landing-brand);
}

.project-type-card h3 {
  margin: 0 0 6px;
  font-family: "Montserrat", sans-serif;
  font-size: 1.12rem;
}

.project-type-card p {
  margin: 0;
  color: var(--landing-ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.bim-modules__note {
  display: flex;
  width: fit-content;
  gap: 8px;
  align-items: center;
  margin: 22px auto 0;
  padding: 9px 18px;
  border: 1px solid rgba(255, 83, 0, 0.2);
  border-radius: 999px;
  background: rgba(255, 83, 0, 0.05);
  color: var(--landing-ink-soft);
  font-size: 0.9rem;
  text-align: center;
}

.bim-modules__note svg {
  flex-shrink: 0;
  color: var(--landing-brand);
}

/* ══ ¿No tienes modelo BIM? Pasos + plano que se levanta ══ */
.no-bim {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: 40px;
  align-items: center;
  margin-top: 56px;
  padding: 40px;
  border-radius: var(--landing-radius-lg);
  background:
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(180deg, #111418 0%, #090b0e 100%);
  color: #fff;
}

.no-bim__intro h3 {
  margin: 0 0 24px;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.no-bim .landing-eyebrow {
  color: #ff8a4c;
}

.no-bim__steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.no-bim__step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--landing-radius-sm);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.no-bim__step--done {
  border-color: rgba(255, 83, 0, 0.6);
  box-shadow: 0 0 30px rgba(255, 83, 0, 0.12);
}

.no-bim__number {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--landing-brand);
  color: #fff;
  font: 800 0.85rem "Montserrat", sans-serif;
}

.no-bim__step h4 {
  margin: 3px 0 4px;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
}

.no-bim__step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  line-height: 1.5;
}

.no-bim__formats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.no-bim__formats li {
  padding: 6px 14px;
  border: 1px solid rgba(255, 83, 0, 0.35);
  border-radius: 999px;
  background: rgba(255, 83, 0, 0.12);
  color: #ff8a4c;
  font-size: 0.85rem;
  font-weight: 600;
}

.no-bim__formats li.is-neutral {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #e8eaee;
}

/* Visual: plano azul que se levanta en 3D */
.no-bim__visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid #23466f;
  border-radius: var(--landing-radius-md);
  background:
    linear-gradient(rgba(46, 90, 140, 0.35) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(46, 90, 140, 0.35) 1px, transparent 1px) 0 0 / 28px 28px,
    #0d1726;
}

.no-bim__svg {
  position: absolute;
  inset: 12% 4% 4%;
  width: 92%;
  height: 84%;
  overflow: visible;
}

/* Plano en planta: se dibuja y luego gira a la vista isométrica.
   La matriz final calza exactamente con la base de los muros 3D. */
.bp-plan {
  transform-box: view-box;
  transform-origin: 0 0;
  transform: matrix(0.866, 0.5, -0.866, 0.5, 0, 0);
}

.bp-plan polygon {
  fill: rgba(95, 176, 255, 0.18);
  stroke: #5fb0ff;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.bp-side {
  fill: #5fb0ff;
}

.bp-top {
  fill: #b8e0ff;
}

.bp-walls g {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

.no-bim__status {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  display: grid;
  padding: 7px 12px;
  border: 1px solid #23466f;
  border-radius: 9px;
  background: rgba(10, 18, 30, 0.85);
  color: #9ad0ff;
  font: 600 0.72rem ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.no-bim__status > span {
  grid-area: 1 / 1;
}

/* Estado final por defecto (sin JS o con movimiento reducido) */
.no-bim__status-plan,
.no-bim__status-loading {
  opacity: 0;
}

/* ── Secuencia animada (con JS) ──
   0–2.6 s  el plano se dibuja en planta          "Plano · Piso tipo"
   2.6–4.2  el plano gira a isométrico            "Levantando modelo 3D…"
   4.2–6.2  los muros suben de izquierda a derecha
   6.3      listo                                 "Modelo OnStage · Listo" */
.has-reveal .no-bim__visual .bp-plan {
  transform: matrix(1.0553, 0, 0, 1.0553, 0, -51.8);
}

.has-reveal .no-bim__visual .bp-plan polygon {
  fill: rgba(95, 176, 255, 0);
  stroke-dashoffset: 1;
}

.has-reveal .no-bim__visual .bp-walls g {
  opacity: 0;
  transform: scaleY(0.05);
}

.has-reveal .no-bim__visual .no-bim__status-plan {
  opacity: 1;
}

.has-reveal .no-bim__visual .no-bim__status-done {
  opacity: 0;
}

.has-reveal .no-bim__visual.is-revealed .bp-plan polygon {
  animation:
    bp-draw 0.9s ease-out forwards calc(0.3s + var(--d)),
    bp-fill 0.6s ease forwards 2.1s;
}

.has-reveal .no-bim__visual.is-revealed .bp-plan {
  animation: bp-to-iso 1.6s cubic-bezier(0.65, 0, 0.35, 1) forwards 2.6s;
}

.has-reveal .no-bim__visual.is-revealed .bp-walls g {
  animation: bp-rise 0.6s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
  animation-delay: calc(4.2s + var(--d));
}

.has-reveal .no-bim__visual.is-revealed .no-bim__status-plan {
  animation: fade-out 0.3s ease forwards 2.6s;
}

.has-reveal .no-bim__visual.is-revealed .no-bim__status-loading {
  animation:
    fade-in 0.3s ease forwards 2.6s,
    fade-out 0.3s ease forwards 6.3s;
}

.has-reveal .no-bim__visual.is-revealed .no-bim__status-done {
  animation: fade-in 0.3s ease forwards 6.3s;
}

.has-reveal .no-bim__visual.is-revealed .no-bim__status {
  animation: bp-status-done 0.4s ease forwards 6.3s;
}

@keyframes bp-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes bp-fill {
  to { fill: rgba(95, 176, 255, 0.18); }
}

@keyframes bp-to-iso {
  to { transform: matrix(0.866, 0.5, -0.866, 0.5, 0, 0); }
}

@keyframes bp-rise {
  to { opacity: 1; transform: none; }
}

@keyframes bp-status-done {
  to { border-color: transparent; background: rgba(17, 19, 24, 0.94); color: #fff; }
}

@keyframes fade-out {
  to { opacity: 0; }
}

@keyframes fade-in {
  to { opacity: 1; }
}

/* ══ Las observaciones de WhatsApp llegan al protocolo ══ */
.wa-quality {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(220px, 0.72fr);
  gap: 14px;
  align-items: center;
}

.wa-quality__step {
  align-self: stretch;
}

.wa-quality__arrow {
  display: grid;
  color: var(--landing-brand);
  animation: msg-arrow 1.6s ease-in-out infinite;
}

.wa-quality__msg {
  position: relative;
  padding: 12px 14px 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.wa-quality__author {
  display: block;
  margin-bottom: 4px;
  color: #ff8a4c;
  font-size: 0.8rem;
  font-weight: 700;
}

.wa-quality__msg p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
}

.wa-quality__msg time {
  position: absolute;
  right: 10px;
  bottom: 5px;
  color: #8f97a3;
  font: 0.68rem ui-monospace, SFMono-Regular, Menlo, monospace;
}

.wa-quality__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wa-quality__chips li {
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  font-weight: 600;
}

.wa-quality__chips li.is-brand {
  border: 1px solid rgba(255, 83, 0, 0.5);
  background: rgba(255, 83, 0, 0.15);
  color: #ff8a4c;
}

.wa-quality__note {
  margin: auto 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.55;
}

.wa-quality__model {
  position: relative;
  padding: 18px 12px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f6f7f9, #e9ecf0);
}

.wa-quality__walls {
  display: block;
  width: 78%;
  height: auto;
}

.wl-side { fill: #34c77b; }
.wl-top { fill: #8ce3b4; }
.wl-wall--obs .wl-side { fill: #22a866; }

.wa-quality__tip {
  position: absolute;
  top: 16px;
  right: 10px;
  display: grid;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: #e8562a;
  color: #fff;
  font-size: 0.74rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.wa-quality__tip div {
  display: grid;
  grid-template-columns: auto auto;
}

.wa-quality__tip div + div {
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.wa-quality__tip dt,
.wa-quality__tip dd {
  margin: 0;
  padding: 5px 9px;
  white-space: nowrap;
}

.wa-quality__tip dt {
  border-right: 1px solid rgba(255, 255, 255, 0.35);
}

/* Teléfono con el protocolo */
.wa-quality__phone {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 440px;
  padding: 14px 12px 16px;
  border: 6px solid #1f232b;
  border-radius: 34px;
  background: #fff;
  color: #1a1d23;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.wa-phone__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  font-size: 0.66rem;
  font-weight: 700;
}

.wa-phone__island {
  width: 64px;
  height: 16px;
  border-radius: 999px;
  background: #111318;
}

.wa-phone__title {
  display: grid;
  grid-template-columns: 20px 1fr 20px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #eceef2;
  text-align: center;
  font-size: 0.82rem;
}

.wa-phone__title span {
  color: #6b7280;
  font-size: 1.2rem;
}

.wa-phone__check {
  display: grid;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
}

.wa-phone__seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.wa-phone__seg i {
  padding: 4px 2px;
  border-radius: 999px;
  background: #9aa1ab;
  color: #fff;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 700;
  text-align: center;
}

.wa-phone__seg i.is-ok {
  background: #22a35a;
}

.wa-phone__obs {
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid #bfe8cd;
  border-radius: 10px;
  background: #effaf3;
  font-size: 0.66rem;
  color: #4b5563;
}

.wa-phone__obs strong {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #15803d;
  font-size: 0.7rem;
}

.wa-phone__obs svg {
  width: 12px;
  height: 12px;
}

.wa-phone__seg--obs {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 4px;
}

.wa-phone__seg i.wa-phone__pending {
  background: #f5a33b;
}

.wa-phone__seg i.wa-phone__resolved {
  background: #9aa1ab;
}

.wa-phone__toast {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  padding: 9px 10px;
  border-radius: 10px;
  background: #111318;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
}

.wa-phone__toast svg {
  flex-shrink: 0;
  color: #34c77b;
}

.wa-phone__cta {
  position: relative;
  padding: 10px;
  border-radius: 10px;
  background: var(--landing-brand);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.wa-phone__cta {
  display: grid;
  justify-items: center;
}

.wa-phone__cta span {
  display: inline-flex;
  grid-area: 1 / 1;
  gap: 6px;
  align-items: center;
}

.wa-phone__cta-done {
  opacity: 0;
}

/* Secuencia al aparecer: la observación se resuelve y el protocolo se cierra */
.wa-quality__phone.is-revealed .wa-phone__seg i.wa-phone__pending {
  animation: wa-off 0.3s ease forwards 1.6s;
}

.wa-quality__phone.is-revealed .wa-phone__seg i.wa-phone__resolved {
  animation: wa-on 0.3s ease forwards 1.6s;
}

.wa-quality__phone.is-revealed .wa-phone__toast {
  animation: wa-toast 0.4s ease forwards 2.4s;
}

.wa-quality__phone.is-revealed .wa-phone__cta {
  animation: wa-on 0.4s ease forwards 2.4s;
}

.wa-quality__phone.is-revealed .wa-phone__cta-open {
  animation: fade-out 0.25s ease forwards 2.4s;
}

.wa-quality__phone.is-revealed .wa-phone__cta-done {
  animation: fade-in 0.25s ease forwards 2.5s;
}

/* Sin JS (o sin animaciones): estado final visible */
html:not(.has-reveal) .wa-phone__toast {
  opacity: 1;
  transform: none;
}

html:not(.has-reveal) .wa-phone__seg i.wa-phone__pending {
  background: #9aa1ab;
}

html:not(.has-reveal) .wa-phone__seg i.wa-phone__resolved,
html:not(.has-reveal) .wa-phone__cta {
  background: #22a35a;
}

html:not(.has-reveal) .wa-phone__cta-open {
  opacity: 0;
}

html:not(.has-reveal) .wa-phone__cta-done {
  opacity: 1;
}

@keyframes wa-off {
  to { background: #9aa1ab; }
}

@keyframes wa-on {
  to { background: #22a35a; }
}

@keyframes wa-toast {
  to { opacity: 1; transform: none; }
}

.wa-quality__perks {
  margin-top: 36px;
}

.wa-quality__perks li {
  padding: 9px 18px;
  font-size: 0.92rem;
}

/* ── Responsivo de las secciones nuevas ── */
@media (max-width: 1120px) {
  .msg-flow {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .msg-flow__core {
    flex-direction: column;
  }

  .msg-flow__arrow {
    transform: rotate(90deg);
    animation: none;
  }

  .wa-quality {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .wa-quality__arrow {
    justify-self: center;
    transform: rotate(90deg);
    animation: none;
  }

  .wa-quality__phone {
    width: min(300px, 100%);
    justify-self: center;
  }
}

@media (max-width: 1120px) {
  .bim-modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .bim-modules {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .msg-flow-section .landing-shell,
  .wa-quality-section .landing-shell {
    padding: 0 20px;
  }

  .no-bim {
    padding: 24px 18px;
    border-radius: var(--landing-radius-md);
  }

  .msg-flow__card,
  .wa-quality__step {
    padding: 18px;
  }

  .msg-flow__orb {
    width: 150px;
    height: 150px;
  }

  .msg-flow__bot {
    width: 88px;
    height: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .msg-flow__ring,
  .msg-flow__bot,
  .msg-flow__arrow,
  .msg-flow__wave i,
  .wa-quality__arrow {
    animation: none;
  }
}

/* ── Recepciones ── */
.reception-layout,
.ai-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: center;
}

.reception-stat {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 28px 0;
}

.reception-stat strong {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(3.4rem, 6vw, 4.6rem);
  font-weight: 900;
  line-height: 1;
  color: var(--landing-brand);
}

.reception-stat span {
  max-width: 200px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.45;
}

.reception-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reception-list li {
  position: relative;
  padding-left: 30px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
}

.reception-list li::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat,
    var(--landing-brand);
}

.reception-mock {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--landing-radius-md);
  background: #fff;
  color: var(--landing-ink);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

.reception-mock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  font-family: "Montserrat", sans-serif;
}

.reception-mock__stage {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 83, 0, 0.1);
  color: var(--landing-brand-dark);
  font-size: 0.75rem;
  font-weight: 700;
}

.reception-mock__dictation {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 12px;
  background: var(--landing-surface-soft);
}

.reception-mock__dictation p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.reception-mock__mic {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--landing-brand);
  color: #fff;
}

.reception-mock__tag {
  color: var(--landing-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.reception-mock__label {
  display: block;
  margin: 18px 0 10px;
  color: var(--landing-brand);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reception-mock__results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.reception-obs {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--landing-line);
  border-left: 3px solid var(--landing-brand);
  border-radius: 10px;
}

.reception-obs div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
}

.reception-obs dt {
  color: var(--landing-muted);
}

.reception-obs dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.reception-mock__foot {
  margin: 16px 0 0;
  color: var(--landing-ink-soft);
  font-size: 0.85rem;
  text-align: center;
}

/* Al revelarse, las observaciones aparecen una tras otra */
.has-reveal .reception-mock .reception-obs {
  opacity: 0;
  translate: 0 14px;
  transition: opacity 0.6s var(--landing-ease-out), translate 0.6s var(--landing-ease-out);
}

.has-reveal .reception-mock.is-revealed .reception-obs {
  opacity: 1;
  translate: 0 0;
  transition-delay: 0.7s;
}

.has-reveal .reception-mock.is-revealed .reception-obs + .reception-obs {
  transition-delay: 0.95s;
}

/* ── Analítica ── */
.analytics-board {
  padding: 28px;
  border: 1px solid var(--landing-line);
  border-radius: var(--landing-radius-md);
  background: #fff;
  box-shadow: 0 18px 50px rgba(12, 18, 28, 0.07);
}

.analytics-tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 24px;
  padding: 4px;
  border-radius: 999px;
  background: var(--landing-surface-soft);
}

.analytics-tabs__tab {
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--landing-ink-soft);
  font: 600 0.9rem "Rubik", sans-serif;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.analytics-tabs__tab:hover {
  color: var(--landing-ink);
}

.analytics-tabs__tab.is-active {
  background: #fff;
  color: var(--landing-brand-dark);
  box-shadow: 0 2px 8px rgba(12, 18, 28, 0.1);
}

.analytics-tabs__tab:focus-visible {
  outline: 2px solid var(--landing-brand);
  outline-offset: 2px;
}

.analytics-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.analytics-panel[hidden] {
  display: none;
}

.analytics-panel.is-entering {
  animation: landing-fade-in 0.45s ease-out both;
}

.analytics-chart__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
}

.analytics-chart__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-family: "Rubik", sans-serif;
  font-size: 0.75rem;
  color: var(--landing-muted);
}

.analytics-chart__key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.analytics-chart__key::before {
  content: "";
  width: 14px;
  height: 3px;
  border-radius: 2px;
}

.analytics-chart__key--planned::before {
  background: repeating-linear-gradient(90deg, #8a93a0 0 4px, transparent 4px 7px);
}

.analytics-chart__key--real::before {
  background: var(--landing-brand);
}

.analytics-chart__key--bars::before {
  height: 8px;
  width: 8px;
  background: rgba(255, 83, 0, 0.25);
}

.analytics-chart__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.analytics-chart__grid line {
  stroke: rgba(23, 26, 31, 0.07);
}

.analytics-chart__axis text,
.analytics-chart__today-label {
  fill: var(--landing-muted);
  font: 11px "Rubik", sans-serif;
}

.analytics-chart__axis text {
  text-anchor: end;
}

.analytics-chart__today-label {
  text-anchor: middle;
}

.analytics-chart__bars rect {
  fill: rgba(255, 83, 0, 0.22);
}

.analytics-chart__today {
  stroke: rgba(23, 26, 31, 0.3);
  stroke-dasharray: 3 4;
}

.analytics-chart__planned,
.analytics-chart__real {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.analytics-chart__planned {
  stroke: #8a93a0;
  stroke-width: 2;
  stroke-dasharray: 2 2.2;
}

.analytics-chart__real {
  stroke: var(--landing-brand);
  stroke-width: 3.5;
}

.analytics-chart__dot {
  fill: var(--landing-brand);
  stroke: #fff;
  stroke-width: 2.5;
}

/* La curva real se dibuja cuando el tablero aparece o cambia de pestaña */
.has-reveal .analytics-board .analytics-chart__real {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.has-reveal .analytics-board.is-revealed .analytics-panel:not([hidden]) .analytics-chart__real {
  animation: landing-draw-line 1.6s 0.3s var(--landing-ease-out) forwards;
}

.has-reveal .analytics-board .analytics-chart__dot,
.has-reveal .analytics-board .analytics-chart__bars rect {
  opacity: 0;
}

.has-reveal .analytics-board.is-revealed .analytics-panel:not([hidden]) .analytics-chart__dot {
  animation: landing-fade-in 0.4s 1.7s ease-out forwards;
}

.has-reveal .analytics-board.is-revealed .analytics-panel:not([hidden]) .analytics-chart__bars rect {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: landing-bar-grow 0.6s var(--landing-ease-out) forwards;
}

.analytics-chart__bars rect:nth-child(n + 6) { animation-delay: 0.15s !important; }
.analytics-chart__bars rect:nth-child(n + 11) { animation-delay: 0.3s !important; }

@keyframes landing-draw-line {
  to { stroke-dashoffset: 0; }
}

@keyframes landing-bar-grow {
  from { opacity: 0; transform: scaleY(0); }
  to { opacity: 1; transform: scaleY(1); }
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.kpi-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--landing-surface-soft);
}

.kpi-tile__label {
  color: var(--landing-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.kpi-tile__value {
  font-family: "Montserrat", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.kpi-tile--alert .kpi-tile__value {
  color: #c2410c;
}

.kpi-tile__hint {
  color: var(--landing-muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.analytics-board__note {
  margin: 18px 0 0;
  color: var(--landing-muted);
  font-size: 0.78rem;
  text-align: right;
}

/* ── IA vía MCP ── */
.ai-copy > p {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Diagrama OnStage → MCP → una rama por agente */
.ai-connect {
  display: flex;
  align-items: center;
  margin: 30px 0 26px;
}

/* Origen: tarjeta oscura, mismo estilo que los agentes, con el logo en blanco */
.ai-connect__source {
  position: relative;
  z-index: 1;
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  gap: 10px;
  width: 168px;
  padding: 16px;
  border: 1px solid rgba(255, 83, 0, 0.45);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 83, 0, 0.14), rgba(255, 255, 255, 0.03) 60%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.ai-source__logo {
  display: block;
  width: 116px;
  height: auto;
  color: #fff;
}

.ai-source__label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-source__data {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 10px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  list-style: none;
}

.ai-source__data li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 500;
}

.ai-source__data li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--landing-brand);
}

.ai-fan {
  position: relative;
  flex-shrink: 0;
  width: 150px;
  height: 184px;
}

.ai-fan > svg {
  display: block;
  overflow: visible;
}

.ai-fan__trunk,
.ai-fan__branch {
  fill: none;
  stroke: rgba(255, 138, 76, 0.5);
  stroke-width: 1.6;
  stroke-dasharray: 5 4;
}

.ai-fan__dot {
  fill: var(--landing-brand);
  opacity: 0;
  filter: drop-shadow(0 0 4px rgba(255, 83, 0, 0.9));
}

.ai-fan__mcp {
  position: absolute;
  top: 92px;
  left: 46px;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid rgba(255, 83, 0, 0.7);
  border-radius: 999px;
  background: #15181d;
  color: #ff8a4c;
  font: 800 0.68rem ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.06em;
  box-shadow: 0 0 0 4px rgba(255, 83, 0, 0.08), 0 0 18px rgba(255, 83, 0, 0.25);
  transform: translateY(-50%);
}

/* Agentes: 4 tarjetas de 40 px alineadas con las ramas (centros en 20/68/116/164) */
.ai-connect__agents {
  display: grid;
  flex: 1;
  grid-auto-rows: 40px;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ai-connect__agents li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 0 12px 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  animation: ai-agent 6s ease-out infinite;
  animation-delay: calc(var(--i) * 1.5s + 1.7s);
}

.ai-agent__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(255, 83, 0, 0.16);
  color: #ff8a4c;
}

.ai-agent__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-agent__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
  font-weight: 500;
  white-space: nowrap;
}

.ai-agent__status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

/* El agente se enciende cuando le llega el dato */
@keyframes ai-agent {
  0% { border-color: rgba(255, 83, 0, 0.85); background: rgba(255, 83, 0, 0.18); box-shadow: 0 0 18px rgba(255, 83, 0, 0.25); }
  18%, 100% { border-color: rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04); box-shadow: none; }
}

/* Puntos clave como tarjetas con ícono */
.ai-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ai-feature {
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.ai-feature:hover {
  border-color: rgba(255, 83, 0, 0.45);
  background: rgba(255, 83, 0, 0.06);
}

.ai-feature__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 83, 0, 0.15);
  color: #ff8a4c;
}

.ai-feature strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font: 700 0.95rem "Montserrat", sans-serif;
}

.ai-feature p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.85rem;
  line-height: 1.5;
}

@media (max-width: 1240px) and (min-width: 981px) {
  .ai-agent__status {
    display: none;
  }
}

/* Apilado en pantallas angostas: OnStage arriba, MCP y agentes en grilla */
@media (max-width: 720px) {
  .ai-connect {
    flex-direction: column;
    gap: 0;
  }

  .ai-fan {
    width: 2px;
    height: 64px;
    background: repeating-linear-gradient(180deg, rgba(255, 138, 76, 0.55) 0 5px, transparent 5px 9px);
  }

  .ai-fan > svg {
    display: none;
  }

  .ai-fan__mcp {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .ai-connect__agents {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .ai-agent__status {
    display: none;
  }

  .ai-features {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-fan__dot {
    display: none;
  }

  .ai-connect__agents li {
    animation: none;
  }
}

.ai-chat {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--landing-radius-md);
  background: #1a1f27;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.ai-chat__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}

.ai-chat__status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.ai-chat__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 20px;
}

.ai-chat__question {
  align-self: flex-end;
  max-width: 85%;
  margin: 0;
  padding: 12px 16px;
  border-radius: 16px 16px 4px 16px;
  background: var(--landing-brand);
  color: #fff;
  font-size: 0.93rem;
  line-height: 1.5;
}

.ai-chat__answer {
  padding: 16px;
  border-radius: 16px 16px 16px 4px;
  background: rgba(255, 255, 255, 0.06);
}

.ai-chat__answer > p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  line-height: 1.55;
}

.ai-chat__bars {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ai-chat__bars li {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  overflow: hidden;
  color: #fff;
  font-size: 0.82rem;
  isolation: isolate;
}

.ai-chat__bars li::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  width: var(--bar);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 83, 0, 0.55), rgba(255, 83, 0, 0.25));
  transform-origin: 0 50%;
  transition: transform 1s var(--landing-ease-out, ease-out);
}

.ai-chat__note {
  margin: 0;
  padding: 0 20px 16px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
}

/* Al revelarse: pregunta → respuesta → barras */
.has-reveal .ai-chat .ai-chat__question,
.has-reveal .ai-chat .ai-chat__answer {
  opacity: 0;
  translate: 0 12px;
  transition: opacity 0.5s var(--landing-ease-out), translate 0.5s var(--landing-ease-out);
}

.has-reveal .ai-chat.is-revealed .ai-chat__question {
  opacity: 1;
  translate: 0 0;
  transition-delay: 0.4s;
}

.has-reveal .ai-chat.is-revealed .ai-chat__answer {
  opacity: 1;
  translate: 0 0;
  transition-delay: 1.1s;
}

.has-reveal .ai-chat .ai-chat__bars li::before {
  transform: scaleX(0);
}

.has-reveal .ai-chat.is-revealed .ai-chat__bars li::before {
  transform: scaleX(1);
  transition-delay: 1.5s;
}

.has-reveal .ai-chat.is-revealed .ai-chat__bars li:nth-child(2)::before { transition-delay: 1.65s; }
.has-reveal .ai-chat.is-revealed .ai-chat__bars li:nth-child(3)::before { transition-delay: 1.8s; }

/* ── Tipos de proyecto ── */
.project-types-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project-type-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--landing-line);
  border-radius: var(--landing-radius-sm);
  background: #fff;
  transition: transform 0.35s var(--landing-ease-out, ease), box-shadow 0.35s ease, border-color 0.35s ease;
}

.project-type-card__icon {
  margin-bottom: 18px;
  transition: transform 0.45s var(--landing-ease-spring, ease), background 0.3s ease, color 0.3s ease;
}

.project-type-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 83, 0, 0.35);
  box-shadow: 0 20px 44px rgba(12, 18, 28, 0.1);
}

.project-type-card:hover .project-type-card__icon {
  transform: scale(1.08) rotate(-5deg);
  background: var(--landing-brand);
  color: #fff;
}

.project-type-card .landing-tags {
  margin-top: auto;
  padding-top: 16px;
}

/* ── Logos y cierre ── */
.trusted-section .section-heading p {
  margin-top: 10px;
}

.closing-section__lead {
  margin: 0 auto 26px;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ── Responsivo ── */
@media (max-width: 1120px) {
  .analytics-panel {
    grid-template-columns: 1fr;
  }

  .kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .bim-layout,
  .no-bim,
  .reception-layout,
  .ai-layout {
    grid-template-columns: 1fr;
  }

  .reception-layout,
  .ai-layout {
    gap: 44px;
  }

  .project-types-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .channels-section .landing-shell,
  .bim-section .landing-shell,
  .reception-section .landing-shell,
  .analytics-section .landing-shell,
  .ai-section .landing-shell,
  .project-types-section .landing-shell {
    padding: 0 20px;
  }

  .no-bim {
    padding: 24px 18px;
  }

  .no-bim__steps,
  .project-types-grid,
  .reception-mock__results {
    grid-template-columns: 1fr;
  }

  .analytics-board,
  .reception-mock,
  .channel-card {
    padding: 18px;
  }

  .analytics-tabs {
    display: flex;
  }

  .analytics-tabs__tab {
    flex: 1;
  }

  .reception-mock__dictation {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .reception-mock__tag {
    grid-column: 2;
  }

  .hero-section .hero-section__proof {
    justify-content: center;
  }

  /* El subtítulo fluye como párrafo para no dejar palabras sueltas */
  .hero-section__subtitle--wrap > span {
    display: inline;
  }

  .bim-module:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-section .hero-section__proof,
  .analytics-panel.is-entering {
    animation: none;
  }

  .bim-module:hover,
  .project-type-card:hover,
  .project-type-card:hover .project-type-card__icon {
    transform: none;
  }
}

/* ═══════════════════════════════════════════
   Estructura simplificada (10 secciones)
═══════════════════════════════════════════ */

/* ── Bot de WhatsApp: rotador, casos de uso y CTA ── */
.msg-flow__rotator {
  justify-content: center;
  min-height: 2.2rem;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.msg-flow__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 28px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.msg-flow__uses {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.msg-flow__uses > span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.msg-flow__uses ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.msg-flow__uses li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
}

.msg-flow__uses li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--landing-brand);
}

.msg-flow__uses li + li {
  margin-left: 8px;
}

/* ── Modelo BIM: tipos de proyecto en una línea ── */
.project-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin-top: 18px;
}

.project-line > span {
  color: var(--landing-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-line ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-line li {
  padding: 6px 14px;
  border: 1px solid var(--landing-line);
  border-radius: 999px;
  background: #fff;
  color: var(--landing-ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ── ¿No tienes BIM? como franja propia ── */
.no-bim-section {
  padding: 24px 0 64px;
  background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
}

.no-bim-section .no-bim {
  margin-top: 0;
}

/* ── Analítica + IA: la IA como panel oscuro dentro de la misma sección ── */
.ai-panel {
  margin-top: 40px;
  padding: 40px;
  border-radius: var(--landing-radius-lg);
  background:
    radial-gradient(circle at 15% 50%, rgba(255, 83, 0, 0.12), transparent 50%),
    linear-gradient(180deg, #111418 0%, #090b0e 100%);
  color: #fff;
}

.ai-panel .ai-layout {
  gap: 48px;
}

.ai-panel__title {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}

.ai-panel .landing-eyebrow {
  color: #ff8a4c;
}

@media (max-width: 720px) {
  .ai-panel {
    padding: 24px 18px;
    border-radius: var(--landing-radius-md);
  }

  .msg-flow__uses {
    justify-content: center;
  }

  .msg-flow__uses li + li {
    margin-left: 4px;
  }

  .no-bim-section .landing-shell {
    padding: 0 20px;
  }
}

/* ═══════════════════════════════════════════
   App móvil — dos pantallas por módulo (presentación onstage-presentacion-mobile)
═══════════════════════════════════════════ */
.app-mobile-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf8 100%);
}

.app-mobile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}

.app-mobile__copy .section-heading > p {
  margin-top: 16px;
}

/* ── Tarjetas (seleccionan las pantallas) ── */
.app-mobile__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.app-mobile__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 16px 20px;
  border: 1.5px solid transparent;
  border-radius: var(--landing-radius-md);
  background: #fff;
  box-shadow: 0 10px 30px rgba(12, 18, 28, 0.07);
  color: var(--landing-ink);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.app-mobile__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(12, 18, 28, 0.1);
}

.app-mobile__card.is-active {
  border-color: var(--landing-brand);
  box-shadow: 0 16px 40px rgba(255, 83, 0, 0.16);
}

.app-mobile__card:focus-visible {
  outline: 2px solid var(--landing-brand);
  outline-offset: 3px;
}

.app-mobile__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 83, 0, 0.08);
  color: var(--landing-brand);
  transition: background 0.25s ease, color 0.25s ease;
}

.app-mobile__icon svg {
  width: 26px;
  height: 26px;
}

.app-mobile__card.is-active .app-mobile__icon {
  background: var(--landing-brand);
  color: #fff;
}

.app-mobile__card strong {
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.app-mobile__card > span:last-child {
  color: var(--landing-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

/* ── Composición: círculo, órbita y dos teléfonos ── */
.app-mobile__visual {
  position: relative;
  aspect-ratio: 1 / 0.92;
  min-height: 420px;
}

.app-mobile__circle {
  position: absolute;
  top: -6%;
  right: -10%;
  width: 88%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff7a33 0%, var(--landing-brand) 55%, #e64a00 100%);
}

.app-mobile__orbit {
  position: absolute;
  top: 12%;
  left: 6%;
  width: 82%;
  aspect-ratio: 1;
  border: 2px dashed rgba(23, 26, 31, 0.16);
  border-radius: 50%;
  animation: app-mobile-spin 60s linear infinite;
}

@keyframes app-mobile-spin {
  to {
    transform: rotate(360deg);
  }
}

.app-mobile__phone {
  position: absolute;
  width: 34%;
  aspect-ratio: 360 / 806;
  box-sizing: content-box;
  padding: 8px;
  border-radius: 38px;
  background: #1a1a1c;
  box-shadow:
    0 40px 70px -28px rgba(30, 15, 5, 0.55),
    0 0 0 2px #2c2c2e inset;
}

.app-mobile__phone--front {
  top: 12%;
  left: 12%;
  z-index: 2;
  transform: rotate(-6deg);
}

.app-mobile__phone--back {
  top: 2%;
  right: 8%;
  z-index: 1;
  transform: rotate(7deg) scale(0.94);
}

.app-mobile__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 30px;
  background: #f2f2f6;
}

.app-mobile__screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.45s ease, transform 0.6s var(--landing-ease-out, ease-out);
}

.app-mobile__screen img.is-visible {
  opacity: 1;
  transform: none;
}

.app-mobile__phone--back .app-mobile__screen img {
  transition-delay: 0.08s;
}

.app-mobile__label {
  position: absolute;
  left: 50%;
  bottom: -16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(12, 18, 28, 0.14);
  color: var(--landing-ink);
  font: 700 0.78rem "Rubik", sans-serif;
  white-space: nowrap;
  transform: translateX(-50%);
}

.app-mobile__label.is-changing {
  animation: app-mobile-label-in 0.4s var(--landing-ease-out, ease-out);
}

@keyframes app-mobile-label-in {
  from {
    opacity: 0;
    transform: translate(-50%, 6px);
  }
}

/* Íconos flotantes sobre la órbita (uno por módulo; se destaca el activo) */
.app-mobile__badge {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 24px rgba(12, 18, 28, 0.16);
  color: var(--landing-brand);
  transition: transform 0.35s var(--landing-ease-spring, ease), background 0.25s ease, color 0.25s ease;
}

.app-mobile__badge svg {
  width: 24px;
  height: 24px;
}

.app-mobile__badge.is-active {
  background: var(--landing-brand);
  color: #fff;
  transform: scale(1.15);
}

.app-mobile__badge--0 {
  top: 50%;
  left: 2%;
}

.app-mobile__badge--1 {
  top: 58%;
  right: 2%;
}

.app-mobile__badge--2 {
  bottom: 2%;
  left: 46%;
}

.app-mobile__chip {
  position: absolute;
  z-index: 3;
  top: 6%;
  left: 34%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(12, 18, 28, 0.16);
  color: var(--landing-ink);
  font: 600 0.8rem "Rubik", sans-serif;
  white-space: nowrap;
  animation: app-mobile-float 6s ease-in-out infinite;
}

.app-mobile__chip svg {
  width: 18px;
  height: 18px;
  color: var(--landing-brand);
}

@keyframes app-mobile-float {
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 980px) {
  .app-mobile {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .app-mobile__visual {
    width: min(560px, 100%);
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .app-mobile-section .landing-shell {
    padding: 0 16px;
  }

  .app-mobile__copy .section-heading {
    padding-left: 0;
    padding-right: 0;
  }

  .app-mobile__cards {
    gap: 8px;
  }

  .app-mobile__card {
    padding: 14px 6px;
  }

  .app-mobile__card strong {
    font-size: 0.9rem;
  }

  .app-mobile__card > span:last-child {
    display: none;
  }

  .app-mobile__icon {
    width: 44px;
    height: 44px;
  }

  .app-mobile__visual {
    min-height: 0;
    aspect-ratio: 1 / 1.08;
  }

  .app-mobile__phone {
    width: 40%;
  }

  .app-mobile__phone--front {
    top: 10%;
    left: 8%;
  }

  .app-mobile__phone {
    padding: 5px;
    border-radius: 26px;
  }

  .app-mobile__screen {
    border-radius: 21px;
  }

  .app-mobile__badge {
    width: 40px;
    height: 40px;
  }

  .app-mobile__badge svg {
    width: 19px;
    height: 19px;
  }

  .app-mobile__chip {
    left: 26%;
    font-size: 0.72rem;
    padding: 7px 10px;
  }

  .app-mobile__label {
    font-size: 0.7rem;
  }

  /* Phones get closer: the back label goes up
     so the front label doesn't cover it, and the decorative chip is hidden. */
  .app-mobile__phone--back .app-mobile__label {
    top: -14px;
    bottom: auto;
  }

  .app-mobile__chip {
    display: none;
  }

  .app-mobile__badge--2 {
    left: auto;
    right: 18%;
    bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-mobile__orbit,
  .app-mobile__chip,
  .app-mobile__label.is-changing {
    animation: none;
  }

  .app-mobile__screen img {
    transition: none;
  }
}
