/* ─── NAV ─────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: color var(--transition), background var(--transition);
  background: transparent;
  --nav-text: rgba(255,255,255,0.85);
  --nav-text-hover: #ffffff;
}

/* Fuera del hero — texto oscuro sobre fondo claro */
.nav.light {
  --nav-text: rgba(20,10,5,0.75);
  --nav-text: rgba(255,255,255,0.85);
  --nav-text-hover: var(--clr-dark);
}

/* Scrolleado dentro del hero — fondo oscuro semitransparente */
.nav.scrolled {
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  --nav-text: rgba(255,255,255,0.85);
  --nav-text-hover: #ffffff;
}

.nav__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__logo-svg {
  height: 28px;
  width: auto;
  display: block;
  color: #ffffff;
  transition: opacity var(--transition);
}
.nav__logo:hover .nav__logo-svg { opacity: 0.85; }

.footer__logo-img {
  height: 24px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nav-text);
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--nav-text-hover); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--nav-text);
  transition: color var(--transition);
}
.nav__back:hover { color: var(--nav-text-hover); }
.nav__back svg { width: 15px; height: 15px; }
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--nav-text);
  transition: all var(--transition);
}

/* ─── HERO ────────────────────────────────────────────────────── */
/* ─── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(to bottom, #0D0D0D 0%, #111111 45%, #1c0c06 75%, #2d1208 100%);
}

.hero__bg { display: none; }
.hero__grid-lines { display: none; }

.hero__nodes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: var(--nav-h) 0 80px;
  width: 60%;
}

@media (max-width: 768px) {
  .hero__content { width: 100%; }
}

.hero__eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 16px;
  padding: 0;
  border: none;
  background: none;
}

.hero__eyebrow-dot { display: none; }

.hero__title {
  margin-bottom: 24px;
  font-family: 'Mortend', sans-serif;
  font-size: clamp(28px, 3.3vw, 48px);
  font-weight: 800;
  line-height: 1.0;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--clr-white);
}

.hero__title .line { display: inline; }
.hero__title .line-inner {
  display: inline;
  animation: slide-up 0.8s cubic-bezier(0.25,0.46,0.45,0.94) both;
  color: var(--clr-white) !important;
}
.hero__title .line:nth-child(2) .line-inner { animation-delay: 0.08s; }
.hero__title .line:nth-child(3) .line-inner { animation-delay: 0.16s; }

@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__subtitle {
  font-size: clamp(14px, 1.3vw, 16px);
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 36px;
  animation: fade-in 1s ease 0.5s both;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  animation: fade-in 1s ease 0.65s both;
}

/* Botón teal/celeste para el hero */
.btn-teal {
  background: #6BBFB5;
  color: var(--clr-dark);
  border: none;
}
.btn-teal:hover { background: #85CEC4; transform: translateY(-1px); }

.hero__scroll {
  position: absolute;
  bottom: 28px;
  right: clamp(20px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  z-index: 2;
  animation: fade-in 1s ease 1.2s both;
}
.hero__scroll-bar {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scroll-bar 2s ease infinite;
}
@keyframes scroll-bar {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero__stats { display: none; }
.hero__stat-value { display: none; }
.hero__stat-label { display: none; }
.hero__stat-accent { display: none; }

/* ─── PROBLEM SECTION ────────────────────────────────────────── */
/* ── Scroll snap por sección ─────────────────────────────── */
.hero,
.problem,
.solution,
.vision,
.industries,
.product-preview,
.ecosystem,
.cta-final {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

/* ── Keyframes sección 2 ─────────────────────────────────── */
@keyframes s2KenBurns {
  0%   { transform: scale(1.0) translate(0%, 0%); }
  40%  { transform: scale(1.08) translate(-1.2%, -0.6%); }
  75%  { transform: scale(1.04) translate(1%, 0.4%); }
  100% { transform: scale(1.0) translate(0%, 0%); }
}
@keyframes s2Flicker {
  0%,92%,100% { opacity: 1; }
  93%          { opacity: 0.94; }
  94%          { opacity: 1; }
  96%          { opacity: 0.97; }
}

.problem {
  position: relative;
  min-height: 100vh;
  background: #0d0806;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
}

.problem__bg {
  position: absolute;
  inset: -8%;
  background: url('../assets/img/section2-bg.png') center center / cover no-repeat;
  animation: s2KenBurns 20s ease-in-out infinite, s2Flicker 12s linear infinite;
  transform-origin: center center;
  will-change: transform;
  z-index: 0;
}

.problem__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to left, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 55%, rgba(0,0,0,0.75) 100%),
    linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 45%);
  pointer-events: none;
}

/* Card de texto — alineada abajo a la derecha */
.problem__card {
  position: relative;
  z-index: 3;
  width: 630px;
  flex-shrink: 0;
  padding: 27px 22px;
  margin: 0 max(calc((100% - 1400px) / 2 + 97px), 97px) 135px 0;
  border-radius: 8px;
  background: rgba(203, 64, 23, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.problem__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.problem__title {
  font-family: 'Mortend', sans-serif;
  font-size: clamp(20px, 2.24vw, 36px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.0;
  color: var(--clr-white);
}

.problem__title em {
  font-style: italic;
  font-weight: 800;
}

.problem__subtitle {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

.problem__body {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
}

.btn-dark {
  background: var(--clr-dark);
  color: var(--clr-white);
  border: none;
  align-self: flex-start;
}
.btn-dark:hover {
  background: var(--clr-dark-2);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .problem {
    align-items: flex-end;
    justify-content: center;
  }
  .problem__card {
    width: 90%;
    margin: 0 0 40px;
  }
}

/* ─── SOLUTION ───────────────────────────────────────────────── */
.solution {
  position: relative;
  height: 100vh;
  background:
    linear-gradient(to right, rgba(203,64,23,0.92) 42%, rgba(203,64,23,0.3) 70%, transparent 100%),
    url('../assets/img/section3-bg.png') left bottom / cover no-repeat;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 70vh 30vh;
  overflow: hidden;
}

/* ── grafo interactivo ───────────────────────────────────── */
.solution__graph {
  position: relative;
  height: 100%;
  min-height: 0;
}

.solution__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: default;
}

/* tarjeta de nodo */
.node-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.88);
  width: 260px;
  background: rgba(10,10,10,0.92);
  border: 1px solid rgba(107,191,181,0.35);
  border-radius: 8px;
  padding: 20px 20px 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 10;
  backdrop-filter: blur(12px);
}
.node-card.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.node-card__close {
  position: absolute;
  top: 10px; right: 12px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
}
.node-card__close:hover { color: #fff; }
.node-card__type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6BBFB5;
  margin-bottom: 6px;
}
.node-card__name {
  font-family: 'Mortend', sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.15;
}
.node-card__data {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.node-card__data li {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 7px;
}
.node-card__data li:last-child { border-bottom: none; padding-bottom: 0; }
.node-card__data li span:last-child {
  color: #fff;
  font-weight: 600;
}

/* active feature highlight */
.solution__feature.active .solution__feature-num { color: #6BBFB5; }
.solution__feature.active .solution__feature-title { color: #6BBFB5; }

/* ── Funciones embebidas en sección 3 — 6 filas ────────────── */
.solution__modules {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid rgba(255,255,255,0.15);
  background: var(--clr-brand);
  height: 24vh;
  align-items: stretch;
}

.sol-mod-row {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 20px 0 max(20px, calc((100vw - 1400px) / 12));
  border-right: 1px solid rgba(255,255,255,0.07);
  transition: background 0.2s;
}

.sol-mod-row { border-right-color: rgba(255,255,255,0.2); }
.sol-mod-row:last-child {
  border-right: none;
}

.sol-mod-row:hover {
  background: rgba(0,0,0,0.1);
}

.sol-mod-row__icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9);
  margin-bottom: 4px;
}

.sol-mod-row__title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.sol-mod-row__desc {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .solution {
    height: auto;
    min-height: 100vh;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .solution__text { height: auto; padding: 48px 6% 32px; }
  .solution__graph { min-height: 340px; height: 340px; }
  .solution__modules {
    grid-column: 1;
    grid-template-columns: repeat(2, 1fr);
    height: auto;
  }
  .sol-mod-row { padding: 18px 20px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .sol-mod-row:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.07); }
}

.solution::before {
  display: none;
}

.solution__text {
  position: relative;
  z-index: 2;
  padding: 0 4% 48px max(10%, calc((100vw - 1400px) / 2 + 32px));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 70vh;
}

.solution__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}

.solution__title {
  font-family: 'Mortend', sans-serif;
  font-size: clamp(28px, 3.3vw, 48px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.0;
  color: var(--clr-white);
  margin-bottom: 0;
  max-width: 60%;
}

.solution__features {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.solution__feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: all var(--transition);
}

.solution__feature:last-child { border-bottom: none; }

.solution__feature-num {
  font-family: 'Mortend', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  min-width: 28px;
  padding-top: 2px;
  transition: color var(--transition);
}

.solution__feature:hover .solution__feature-num {
  color: var(--clr-white);
}

.solution__feature-title {
  font-family: 'Mortend', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--clr-white);
  margin-bottom: 4px;
}

.solution__feature-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .solution__text {
    width: 90%;
    padding: 60px 5%;
  }
}

/* ─── VISION SECTION ─────────────────────────────────────────── */
.vision {
  padding: var(--section-pad) 0 0;
  background: var(--clr-black);
  position: relative;
  text-align: left;
  overflow: hidden;
  height: 100vh;
}
.vision__bg-accent {
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,96,56,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.vision__title {
  margin-bottom: 16px;
  max-width: 700px;
}
.vision__subtitle {
  color: var(--clr-gray-300);
  font-size: 15px;
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ── Cards interactivas ── */
.vision__cards {
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 57vh;
  margin-top: 56px;
}

.vision__card {
  position: relative;
  display: flex;
  flex-direction: row;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 0 0 160px;
  min-width: 160px;
  background: var(--clr-brand);
}

.vision__card:nth-child(2) { background: #CB4017; }
.vision__card:nth-child(3) { background: #8BBFC4; }
.vision__card:nth-child(4) { background: #E8E0D4; }

.vision__card + .vision__card { margin-left: 12px; }

.vision__card--active {
  flex: 1 1 0%;
}

/* panel izquierdo de la card */
.vision__card-inner {
  flex-shrink: 0;
  width: 260px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

.vision__card-num {
  font-family: var(--font-body);
  font-weight: 800;
  line-height: 1;
  /* posición absoluta de fondo — efecto bitone */
  position: absolute;
  top: -8px;
  left: 8px;
  font-size: clamp(110px, 13vw, 160px);
  color: rgba(0,0,0,0.12);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  white-space: nowrap;
  transition: font-size 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.vision__card--active .vision__card-num {
  font-size: clamp(130px, 16vw, 200px);
  color: rgba(0,0,0,0.10);
}

/* en cards inactivas se oculta título y descripción, solo queda la pregunta */
.vision__card-title,
.vision__card-desc {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s 0.15s, transform 0.35s 0.15s;
}
.vision__card--active .vision__card-title,
.vision__card--active .vision__card-desc {
  opacity: 1;
  transform: translateY(0);
}

.vision__card-tag {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.55);
  margin-bottom: 6px;
  white-space: normal;
  word-break: break-word;
  line-height: 1.45;
  max-width: 100%;
  width: 100%;
}
.vision__card:nth-child(3) .vision__card-tag,
.vision__card:nth-child(4) .vision__card-tag { color: rgba(0,0,0,0.5); }

.vision__card-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(0,0,0,0.85);
  margin-bottom: 12px;
  line-height: 1.1;
}

.vision__card-desc {
  font-size: 16px;
  color: rgba(0,0,0,0.65);
  line-height: 1.6;
}

/* imagen lateral */
.vision__card-img {
  flex: 1;
  overflow: hidden;
  opacity: 0;
  width: 0;
  transition: opacity 0.4s 0.2s, width 0s 0.5s;
}
.vision__card--active .vision__card-img {
  opacity: 1;
  width: auto;
  transition: opacity 0.4s 0.2s;
}
.vision__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

/* cards inactivas — inner angosto, contenido al fondo */
.vision__card:not(.vision__card--active) .vision__card-inner {
  width: 160px;
  padding: 16px 16px 20px;
  align-items: flex-start;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .vision { text-align: left; padding-bottom: 0; }
  .vision__title { margin-left: 0; margin-right: 0; }

  .vision__cards {
    height: auto;
    flex-direction: column;
    gap: 8px;
    margin-top: 40px;
  }

  /* todas las cards: altura colapsada por defecto */
  .vision__card {
    flex: none !important;
    width: 100%;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* card activa: se expande */
  .vision__card--active {
    height: auto;
    min-height: 220px;
  }

  /* inner siempre full width */
  .vision__card-inner {
    width: 100% !important;
    flex-direction: column;
    align-items: flex-start;
    padding: 48px 20px 20px;
    gap: 6px;
    justify-content: flex-end;
    min-height: 72px;
  }

  .vision__card--active .vision__card-inner {
    padding: 60px 20px 28px;
    min-height: 200px;
  }

  .vision__card-num {
    font-size: 100px !important;
    top: -8px !important;
    left: -4px !important;
    writing-mode: horizontal-tb !important;
    transform: none !important;
  }

  .vision__card--active .vision__card-num { font-size: 120px !important; }

  /* en cards cerradas: pregunta visible en línea */
  .vision__card-tag {
    writing-mode: horizontal-tb !important;
    transform: none !important;
    white-space: normal;
  }

  /* título y desc: ocultos en cerradas, visibles en activa */
  .vision__card-title,
  .vision__card-desc {
    opacity: 0 !important;
    height: 0;
    overflow: hidden;
    margin: 0;
  }

  .vision__card--active .vision__card-title,
  .vision__card--active .vision__card-desc {
    opacity: 1 !important;
    height: auto;
    transform: none !important;
  }

  .vision__card-img { display: none; }
}

/* ─── INDUSTRIES / BUILT FOR ─────────────────────────────────── */
.industries {
  padding: var(--section-pad) 0;
  background: #EDEAE3;
  position: relative;
}
.industries .section-label { color: var(--clr-brand); }
.industries .heading-lg    { color: #1a1612; }
.industries__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(24px, 3vw, 40px);
  gap: 24px;
  flex-wrap: wrap;
}
/* ── Industries tabs propios ──────────────────────────────── */
.ind-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: clamp(28px, 3vw, 44px);
  flex-wrap: wrap;
}
.ind-tab {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(0,0,0,0.18);
  background: transparent;
  color: #4a3f35;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.ind-tab:hover {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.3);
  color: #1a1612;
}
.ind-tab--active {
  background: #1a1612;
  color: #fff;
  border-color: #1a1612;
}

.ind-panel {
  display: none;
  gap: clamp(24px, 4vw, 56px);
  align-items: flex-start;
}
.ind-panel--active {
  display: flex;
}
.ind-panel__img {
  flex: 0 0 48%;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16/10;
  margin: 0;
}
.ind-panel__img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.ind-panel__list {
  flex: 1;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 0 0;
}
.ind-panel__list li {
  font-size: 15px;
  color: #3a322a;
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}
.ind-panel__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--clr-brand);
}

@media (max-width: 768px) {
  .ind-panel--active { flex-direction: column; }
  .ind-panel__img { flex: none; width: 100%; }
}
.industries__title { }
.industries__desc {
  max-width: 400px;
  font-size: 14px;
  color: var(--clr-gray-300);
  line-height: 1.7;
}
.industries__filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.filter-btn {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: var(--clr-gray-300);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  border-color: var(--clr-brand);
  color: var(--clr-brand);
  background: rgba(255,96,56,0.08);
}
/* ─── INDUSTRY PANELS ────────────────────────────────────────── */
.industry-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.industry-panel.panel--visible {
  display: grid;
}
.industry-panel.panel--in {
  opacity: 1;
  transform: translateY(0);
}

/* Image column */
.industry-panel__image {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--clr-dark-2);
}
.industry-panel__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content column */
.industry-panel__content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.industry-panel__tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-brand);
}
.industry-panel__icon {
  width: 32px;
  height: 32px;
  background: rgba(255,96,56,0.12);
  border: 1px solid rgba(255,96,56,0.28);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--clr-brand);
}
.industry-panel__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.industry-panel__list li {
  font-size: 14px;
  line-height: 1.65;
  color: var(--clr-gray-300);
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.industry-panel__list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--clr-brand);
  flex-shrink: 0;
  margin-top: 8px;
}
.industry-panel__list li:last-child {
  border-bottom: none;
}

/* ─── MODULES GRID ───────────────────────────────────────────── */
.modules {
  padding: var(--section-pad) 0;
  background: var(--clr-dark);
  position: relative;
}
.modules::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}
.modules__filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.mod-btn {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: var(--clr-gray-300);
  cursor: pointer;
  transition: all var(--transition);
}
.mod-btn.active,
.mod-btn:hover {
  border-color: var(--clr-brand);
  color: var(--clr-brand);
  background: rgba(255,96,56,0.1);
}
.modules__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
}
.mod-card {
  background: var(--clr-dark);
  padding: clamp(28px, 3vw, 44px);
  position: relative;
  overflow: hidden;
  transition: background var(--transition), opacity 0.25s ease, transform 0.25s ease;
}
.mod-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--clr-brand);
  transition: width 0.4s ease;
}
.mod-card:hover { background: var(--clr-dark-2); }
.mod-card:hover::after { width: 100%; }
.mod-card--hidden {
  display: none;
}
.mod-card__icon {
  width: 40px;
  height: 40px;
  background: rgba(255,96,56,0.12);
  border: 1px solid rgba(255,96,56,0.25);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--clr-brand);
}
.mod-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  color: var(--clr-text);
}
.mod-card__desc {
  font-size: 13px;
  color: var(--clr-gray-300);
  line-height: 1.65;
  margin-bottom: 20px;
}
.mod-card__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mod-card__list li {
  font-size: 12px;
  color: var(--clr-gray-300);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.55;
}
.mod-card__list li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--clr-brand);
  flex-shrink: 0;
  margin-top: 5px;
}

/* ─── PRODUCT PREVIEW ────────────────────────────────────────── */
:root {
  --app-bg:      #EDEAE3;
  --app-surface: #FFFFFF;
  --app-border:  #DDD9D0;
  --app-line:    #EDEAE3;
  --app-text:    #1A1A1A;
  --app-muted:   #7A7570;
  --app-teal:    #4DBFB8;
  --app-green:   #2ECC8F;
  --app-amber:   #F5A623;
  --app-sidebar: #1C1C1C;
}

.product-preview { padding: var(--section-pad) 0; background: var(--clr-dark); }
.product-preview__header { margin-bottom: clamp(24px, 3vw, 40px); }

/* ── Demo slider ── */
.demo-slider { position: relative; }

.demo-slider__nav {
  display: flex; gap: 6px; margin-bottom: 16px;
}
.demo-slide-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px; background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.45); font-size: 11px; font-weight: 600;
  cursor: pointer; transition: all 0.2s ease; letter-spacing: 0.02em;
}
.demo-slide-tab svg { opacity: 0.5; transition: opacity 0.2s; }
.demo-slide-tab:hover { color: rgba(255,255,255,0.75); border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.07); }
.demo-slide-tab:hover svg { opacity: 0.8; }
.demo-slide-tab--active {
  background: rgba(77,191,184,0.12); border-color: var(--clr-teal);
  color: var(--clr-teal);
}
.demo-slide-tab--active svg { opacity: 1; stroke: var(--clr-teal); }

.demo-slides-track { position: relative; }
.demo-slide { display: none; }
.demo-slide--active { display: block; }

/* ── Frame shell ── */
.app-frame {
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 32px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  height: 640px;
  background: var(--app-bg);
  user-select: none;
}

/* ── Sidebar ── */
.app-sidebar {
  width: 46px; flex-shrink: 0;
  background: var(--app-sidebar);
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 0; gap: 2px;
  border-right: 1px solid rgba(255,255,255,0.05);
}
.app-sidebar__logo {
  color: #FF6038; margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  width: 100%; display: flex; justify-content: center;
}
.app-sidebar__btn {
  width: 30px; height: 30px; border-radius: 6px; border: none;
  background: transparent; color: rgba(255,255,255,0.3);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.app-sidebar__btn--active { background: rgba(255,96,56,0.2); color: #FF6038; }

/* ── Main panel ── */
.app-main {
  flex: 0 0 30%;
  display: flex; flex-direction: column; overflow: hidden;
  border-right: 1px solid var(--app-border);
}

/* Topbar */
.app-topbar {
  height: 40px; flex-shrink: 0;
  background: var(--app-surface);
  border-bottom: 1px solid var(--app-border);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}
.app-topbar__breadcrumb { font-size: 10px; color: var(--app-muted); }
.app-topbar__sep        { font-size: 10px; color: var(--app-border); margin: 0 5px; }
.app-topbar__title      { font-size: 11px; font-weight: 700; color: var(--app-text); text-transform: uppercase; letter-spacing: 0.06em; }
.app-topbar__filters    { display: flex; gap: 5px; }
.app-topbar__chip {
  font-size: 9px; color: var(--app-muted);
  background: var(--app-bg); border: 1px solid var(--app-border);
  border-radius: 3px; padding: 2px 7px;
  display: flex; align-items: center; gap: 3px;
}
.app-topbar__chip--date { font-weight: 700; color: var(--app-text); }

/* Turn row */
.app-turns {
  display: flex; gap: 1px;
  background: var(--app-border); border-bottom: 1px solid var(--app-border);
  flex-shrink: 0;
}
.app-turn {
  flex: 1; background: var(--app-surface);
  padding: 8px 12px; position: relative;
  display: flex; flex-direction: column;
}
.app-turn--active { background: #FFFAF5; }
.app-turn__label { font-size: 9px; color: var(--app-muted); margin-bottom: 1px; }
.app-turn__val   { font-size: 18px; font-weight: 800; line-height: 1.1; color: var(--app-text); font-family: var(--font-display); }
.app-turn__sub   { font-size: 8px; color: var(--app-muted); margin-top: 2px; }

/* Summary KPIs */
.app-kpi-row {
  display: flex; gap: 1px;
  background: var(--app-border); border-bottom: 1px solid var(--app-border);
  flex-shrink: 0;
}
.app-kpi { flex: 1; background: var(--app-surface); padding: 8px 12px; }
.app-kpi--alert { background: #FFF8F5; }
.app-kpi--warn  { background: #FFFBF0; }
.app-kpi__label { display: block; font-size: 9px; color: var(--app-muted); margin-bottom: 1px; }
.app-kpi__value { display: block; font-size: 17px; font-weight: 800; line-height: 1.1; color: var(--app-text); font-family: var(--font-display); }
.app-kpi__sub   { display: block; font-size: 8px; color: var(--app-muted); margin-top: 2px; }

/* Table */
.app-table-wrap { flex: 1; overflow-y: auto; padding: 0; }
.app-table { width: 100%; border-collapse: collapse; }
.app-table thead th {
  text-align: left; padding: 7px 12px;
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--app-muted);
  border-bottom: 1px solid var(--app-line);
  background: var(--app-surface); position: sticky; top: 0;
}
.app-table tbody td {
  padding: 8px 12px; color: var(--app-text);
  border-bottom: 1px solid var(--app-line); font-size: 10px;
}
.app-table__row--selected td { background: rgba(77,191,184,0.07); }

/* Badges & OEE pills */
.app-badge { font-size: 8px; font-weight: 700; text-transform: uppercase; padding: 2px 6px; border-radius: 3px; display: inline-block; }
.app-badge--activo { background: rgba(46,204,143,0.15); color: #1A9B6C; }
.app-badge--parada { background: rgba(245,166,35,0.18); color: #A06A00; }
.app-badge--baja   { background: rgba(77,191,184,0.14); color: #1A8A85; }
.app-oee { font-size: 9px; font-weight: 700; padding: 2px 5px; border-radius: 3px; }
.app-oee--ok { background: rgba(46,204,143,0.12); color: #1A9B6C; }
.app-oee--hi { background: rgba(46,204,143,0.22); color: #117A52; }

/* ── Detail panel ── */
.app-detail {
  flex: 0 0 45%;
  background: var(--app-surface);
  border-right: 1px solid var(--app-border);
  display: flex; flex-direction: column; overflow: hidden;
}
.app-detail__alert {
  background: #FF6038; color: #fff; font-size: 9px;
  padding: 6px 11px; display: flex; align-items: center; gap: 5px;
  flex-shrink: 0;
}
.app-detail__alert strong { font-weight: 800; }
.app-detail__head {
  padding: 10px 12px 8px; border-bottom: 1px solid var(--app-line); flex-shrink: 0;
}
.app-detail__subtitle { display: block; font-size: 8px; color: var(--app-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.app-detail__line-title { display: block; font-size: 20px; font-weight: 900; color: var(--app-text); font-family: var(--font-display); margin-bottom: 3px; }
.app-detail__sku { display: block; font-size: 8px; color: var(--app-muted); margin-bottom: 6px; }
.app-detail__chips { display: flex; gap: 10px; font-size: 9px; color: var(--app-muted); }
.app-detail__chips span { display: flex; align-items: center; gap: 3px; }

/* Tabs */
.app-tabs {
  display: flex; border-bottom: 1px solid var(--app-line);
  flex-shrink: 0; background: var(--app-surface);
}
.app-tab {
  flex: 1; font-size: 9px; font-weight: 600; padding: 7px 0;
  border: none; background: transparent; color: var(--app-muted);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all 0.15s;
}
.app-tab--active { color: var(--app-text); border-bottom-color: #FF6038; font-weight: 700; }

/* Scrollable detail content */
.app-detail__scroll { flex: 1; overflow-y: auto; }

/* Section blocks inside detail */
.app-section-block {
  padding: 10px 12px;
  border-bottom: 1px solid var(--app-line);
}
.app-section-block__title {
  font-size: 9px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--app-text); margin-bottom: 8px;
}

/* Producción */
.app-prod-summary { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.app-prod-big { display: flex; align-items: center; gap: 8px; color: var(--app-muted); }
.app-prod-big__num { font-size: 22px; font-weight: 900; color: var(--app-text); font-family: var(--font-display); display: block; line-height: 1; }
.app-prod-big__label { font-size: 8px; color: var(--app-muted); display: block; margin-top: 2px; }
.app-prod-bar-wrap { display: flex; flex-direction: column; gap: 2px; }
.app-prod-bar-labels { display: flex; justify-content: space-between; font-size: 7px; color: var(--app-muted); }
.app-bar { flex: 1; height: 5px; background: var(--app-line); border-radius: 3px; overflow: hidden; display: flex; }
.app-bar--lg { height: 7px; }
.app-bar__fill { height: 100%; border-radius: 3px; flex-shrink: 0; }
.app-prod-skus { display: flex; flex-direction: column; gap: 4px; }
.app-prod-sku { display: flex; flex-direction: column; gap: 2px; }
.app-prod-sku__val { font-size: 13px; font-weight: 800; color: var(--app-text); font-family: var(--font-display); }
.app-prod-sku__val span { font-size: 9px; font-weight: 400; color: var(--app-muted); }
.app-prod-sku__label { font-size: 7px; color: var(--app-muted); }

/* OEE block */
.app-oee-block { display: flex; gap: 8px; align-items: center; }
.app-oee-block__rows { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.app-oee-row { display: flex; align-items: center; gap: 5px; font-size: 9px; color: var(--app-muted); }
.app-oee-row span:first-child { width: 72px; flex-shrink: 0; }
.app-oee-row span:last-child  { width: 24px; text-align: right; color: var(--app-text); font-weight: 600; }
.app-oee-row--formula { font-size: 7px; color: var(--app-muted); margin-top: 3px; }
.app-oee-row--formula span { width: auto !important; }
.app-oee-donut { position: relative; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.app-oee-donut__label { position: absolute; text-align: center; line-height: 1.2; }
.app-oee-donut__label strong { display: block; font-size: 12px; font-weight: 800; color: #FF6038; }
.app-oee-donut__label span   { font-size: 7px; color: var(--app-muted); }

/* Segmented bar */
.app-seg-bar { display: flex; height: 28px; border-radius: 4px; overflow: hidden; margin-bottom: 7px; }
.app-seg-bar__fill { display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: #fff; }
.app-seg-bar__fill--green { background: #2ECC8F; }
.app-seg-bar__fill--gray  { background: #9B9690; }
.app-seg-bar__fill--dark  { background: #3D3A36; }
.app-seg-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.app-seg-legend span { font-size: 7.5px; color: var(--app-muted); display: flex; align-items: center; gap: 3px; }
.app-seg-legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

/* Chart tabs */
/* Chart tabs */
.app-chart-tabs {
  display: flex; gap: 2px; margin-bottom: 10px;
  background: var(--app-bg); border-radius: 6px;
  padding: 2px; border: 1px solid var(--app-border);
}
.app-chart-tab {
  flex: 1; font-size: 8px; font-weight: 600; padding: 5px 0;
  border: none; background: transparent; color: var(--app-muted); cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.06em; border-radius: 4px;
  transition: all 0.18s ease;
}
.app-chart-tab:hover:not(.app-chart-tab--active) { color: var(--app-text); background: rgba(0,0,0,0.04); }
.app-chart-tab--active {
  background: var(--app-surface); color: var(--app-text); font-weight: 800;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

/* Canvas chart */
.app-chart-wrap {
  position: relative; border-radius: 6px; overflow: visible;
  background: var(--app-bg); border: 1px solid var(--app-border);
  padding: 8px 0 0 0;
}
.app-chart-wrap canvas { display: block; width: 100%; }
.app-chart-tooltip {
  position: absolute; pointer-events: none; z-index: 10;
  background: var(--app-text); color: var(--app-surface);
  font-size: 9px; font-weight: 700; padding: 4px 7px; border-radius: 4px;
  white-space: nowrap; opacity: 0; transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.app-chart-tooltip::after {
  content: ''; position: absolute; left: 50%; bottom: -4px;
  transform: translateX(-50%);
  border: 4px solid transparent; border-bottom: none;
  border-top-color: var(--app-text);
}
.app-chart-tooltip--visible { opacity: 1; transform: translateY(-8px); }
.app-chart__xlabels {
  display: flex; justify-content: space-between;
  font-size: 7px; color: var(--app-muted); margin-top: 5px; padding: 0 2px;
}

/* ── AI panel ── */
.app-ai-panel {
  flex: 0 0 25%;
  background: #1A1612;
  border-left: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column;
  padding: 10px 8px; gap: 6px; overflow-y: auto;
}
.app-ai-panel__head {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.07em; color: rgba(255,255,255,0.85);
  padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.app-ai-panel__head span { color: var(--app-teal); font-size: 12px; }
.app-ai__line-label {
  color: rgba(255,255,255,0.45) !important;
  font-size: 8px !important;
  font-weight: 500 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: auto;
  padding-right: 4px;
}
.app-ai__cards { display: flex; flex-direction: column; gap: 7px; flex: 1; overflow-y: auto; }
.app-ai__card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px; padding: 9px 10px;
}
.app-ai__card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 4px; margin-bottom: 5px; }
.app-ai__rec  { font-size: 9px; font-weight: 700; color: rgba(255,255,255,0.9); line-height: 1.35; }
.app-ai__more { background: none; border: none; color: rgba(255,255,255,0.3); cursor: pointer; font-size: 14px; padding: 0; line-height: 1; flex-shrink: 0; }
.app-ai__body { font-size: 8px; color: rgba(255,255,255,0.45); line-height: 1.55; margin-bottom: 6px; }
.app-ai__impact { font-size: 8px; font-weight: 600; }
.app-ai__cta {
  margin-top: auto; padding: 9px; border-radius: 6px;
  background: #FF6038; border: none; color: #fff;
  font-size: 10px; font-weight: 700; cursor: pointer;
  letter-spacing: 0.03em; flex-shrink: 0;
}

/* Topbar: solo título, sin pill */
.app-topbar {
  height: 48px;
}

/* Filter bar debajo del topbar */
.app-filter-bar {
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--app-border);
  background: var(--app-surface);
  flex-shrink: 0;
}

/* [6] Context pill → dropdown trigger */
.app-filter-dropdown { position: relative; display: inline-block; }

.app-ctx-pill {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 600; color: var(--app-text);
  background: var(--app-bg); border: 1px solid var(--app-border);
  border-radius: 20px; padding: 6px 12px;
  white-space: nowrap; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.app-ctx-pill:hover,
.app-ctx-pill--open {
  border-color: #FF6038;
  background: #FFF8F5;
}
.app-ctx-pill__chevron { transition: transform 0.2s; flex-shrink: 0; }
.app-ctx-pill--open .app-ctx-pill__chevron { transform: rotate(180deg); }

/* Dropdown menu */
.app-filter-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 50;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 10px;
  min-width: 220px;
  display: none;
  flex-direction: column;
  gap: 10px;
}
.app-filter-menu--open { display: flex; }

.app-filter-menu__group { display: flex; flex-direction: column; gap: 5px; }
.app-filter-menu__label {
  font-size: 8px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--app-muted); padding: 0 2px;
}
.app-filter-menu__options { display: flex; flex-wrap: wrap; gap: 4px; }
.app-filter-opt {
  font-size: 9px; font-weight: 600; padding: 4px 9px;
  border-radius: 4px; border: 1px solid var(--app-border);
  background: var(--app-bg); color: var(--app-muted); cursor: pointer;
  transition: all 0.12s;
}
.app-filter-opt:hover { border-color: #FF6038; color: #FF6038; }
.app-filter-opt--active {
  background: rgba(255,96,56,0.1);
  border-color: rgba(255,96,56,0.4);
  color: #CB4017;
}

/* [4] Table urgency rows */
.app-table__row--parada td { background: #FFF0F0; }
.app-table__row--baja   td { background: #FFFBEE; }
.app-table__action { width: 24px; text-align: center; }
.app-row-action {
  width: 22px; height: 22px; border-radius: 4px; border: none;
  background: rgba(255,96,56,0.1); color: #FF6038; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.app-oee--bad { background: rgba(255,96,56,0.12); color: #CB4017; }

/* [2] Stop banner */
.app-stop-banner {
  min-height: 64px; background: #C93508; color: #fff;
  display: flex; align-items: center; gap: 14px;
  padding: 0 16px; flex-shrink: 0;
}
.app-stop-banner__icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.app-stop-banner__body { flex: 1; }
.app-stop-banner__type   { display: block; font-size: 13px; font-weight: 800; line-height: 1.2; }
.app-stop-banner__reason { display: block; font-size: 9px; opacity: 0.8; margin-top: 2px; }
.app-stop-banner__timer  { text-align: right; flex-shrink: 0; }
.app-stop-banner__timer-label { display: block; font-size: 8px; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.06em; }
.app-stop-banner__timer-val   { display: block; font-size: 18px; font-weight: 800; font-family: var(--font-display); font-variant-numeric: tabular-nums; }

/* [1] OEE Hero */
.app-oee-hero {
  display: flex; align-items: center;
  padding: 14px 16px; gap: 16px; flex-shrink: 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.app-oee-hero--red    { background: #FFF0ED; }
.app-oee-hero--amber  { background: #FFFBEE; }
.app-oee-hero--green  { background: #EDFFF6; }
.app-oee-hero__left   { flex-shrink: 0; }
.app-oee-hero__label  { display: block; font-size: 8px; color: var(--app-muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 2px; }
.app-oee-hero__val    { display: block; font-size: 56px; font-weight: 900; line-height: 1; font-family: var(--font-display); color: #C93508; }
.app-oee-hero--amber .app-oee-hero__val { color: #A06A00; }
.app-oee-hero--green  .app-oee-hero__val { color: #0E7A50; }
.app-oee-hero__tag    { display: block; font-size: 8px; color: #C93508; margin-top: 3px; font-weight: 600; }
.app-oee-hero__bars   { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.app-oee-mini-row {
  display: flex; align-items: center; gap: 5px;
  font-size: 9px; color: rgba(0,0,0,0.5);
}
.app-oee-mini-row span:first-child { width: 28px; flex-shrink: 0; }
.app-oee-mini-row span:last-child  { width: 26px; text-align: right; font-weight: 600; color: var(--app-text); }
.app-oee-hero--red .app-bar { background: rgba(201,53,8,0.15); }

/* Context strip */
.app-ctx-strip {
  display: flex; gap: 0; border-bottom: 1px solid var(--app-line); flex-shrink: 0;
  background: #FAFAF8;
}
.app-ctx-strip__item {
  flex: 1; font-size: 8px; color: var(--app-muted);
  padding: 6px 10px; display: flex; align-items: center; gap: 4px;
  border-right: 1px solid var(--app-line);
}
.app-ctx-strip__item:last-child { border-right: none; }

/* [5] Collapsible sections */
.app-section-block__header {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px; font-size: 9px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--app-text);
  border-bottom: 1px solid var(--app-line);
}
.app-section-block__header:hover { background: rgba(0,0,0,0.02); }
.app-chevron { transition: transform 0.2s ease; }
.app-chevron--closed { transform: rotate(-90deg); }
.app-collapsible__body { padding: 10px 12px 12px; }
.app-collapsible__body--closed { display: none; }

/* Resource list */
.app-resource-list { display: flex; flex-direction: column; gap: 0; }
.app-resource-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 1px solid var(--app-line);
  font-size: 10px; color: var(--app-muted);
}
.app-resource-row:last-child { border-bottom: none; }
.app-resource-row strong { color: var(--app-text); font-weight: 700; }
.app-resource-row--alert strong { color: #FF6038; }

/* [3] AI impact badge first */
.app-ai__impact-badge {
  display: inline-block; font-size: 9px; font-weight: 800;
  border-radius: 3px; padding: 3px 7px; margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.app-ai__impact-badge--teal  { background: rgba(77,191,184,0.18); color: #0F7A76; }
.app-ai__impact-badge--amber { background: rgba(245,166,35,0.18); color: #8A5A00; }
.app-ai__result { display: block; font-size: 8px; font-weight: 600; color: var(--app-teal); margin-top: 5px; }
.app-ai__panel__toggle { background: none; border: none; }

/* AI panel collapse button */
.app-ai-panel__head { position: relative; }
.app-ai-panel__toggle {
  margin-left: auto; background: none; border: none;
  color: rgba(255,255,255,0.4); cursor: pointer; padding: 2px;
  display: flex; align-items: center;
}
.app-ai-panel--collapsed { width: 36px !important; overflow: hidden; }
.app-ai-panel--collapsed .app-ai__card,
.app-ai-panel--collapsed .app-ai__cta { display: none; }
.app-ai-panel--collapsed .app-ai-panel__head strong { display: none; }
.app-ai-panel--collapsed .app-ai-panel__head span { writing-mode: vertical-rl; font-size: 9px; }

/* [7] Layout columns */
.app-main     { flex: 0 0 300px; min-width: 0; }
.app-detail   { flex: 1; min-width: 0; }
.app-ai-panel { flex: 0 0 200px; }

/* ────────────────────────────────────────────────
   Visualizador de Planta (Slide 2)
──────────────────────────────────────────────── */
.app-frame--nodes { flex-direction: column; }
.app-frame--nodes .app-sidebar {
  flex-direction: row; height: 36px; width: 100%;
  border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0 10px; gap: 4px; align-items: center; justify-content: flex-start;
}
.app-frame--nodes .app-sidebar__logo { margin-bottom: 0; margin-right: 8px; }
.app-frame--nodes .app-sidebar__nav { flex-direction: row; margin-top: 0; gap: 2px; }

.nv-main {
  display: flex; flex-direction: column; flex: 1; min-height: 0;
  background: var(--app-bg);
}
.nv-main .app-topbar { border-bottom: 1px solid var(--app-border); flex-shrink: 0; }
.nv-topbar__right {
  display: flex; align-items: center; gap: 6px; margin-left: auto;
  font-size: 8px; color: var(--app-muted);
}
.nv-legend-dot {
  width: 7px; height: 7px; border-radius: 50%; display: inline-block;
}
.nv-legend-dot--ok   { background: #2ECC8F; box-shadow: 0 0 5px #2ECC8F88; }
.nv-legend-dot--warn { background: #F5A623; box-shadow: 0 0 5px #F5A62388; }
.nv-legend-dot--stop { background: #FF6038; box-shadow: 0 0 5px #FF603888; }
.nv-legend-dot--off  { background: #C8C4BC; }
.nv-legend-lbl { font-size: 8px; color: var(--app-muted); margin-right: 4px; }

.nv-body { display: flex; flex: 1; min-height: 0; overflow: hidden; }

/* tighten the right panel for node tree */
.app-frame--nodes .nv-panel { flex: 0 0 200px; }

/* Canvas area */
.nv-canvas-wrap {
  flex: 1; position: relative; background: var(--app-bg); min-width: 0;
  border-right: 1px solid var(--app-border);
}
.nv-canvas-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Node tooltip */
.nv-node-tooltip {
  position: absolute; pointer-events: none; z-index: 20;
  background: var(--app-text); color: var(--app-surface);
  padding: 5px 9px; border-radius: 5px;
  font-size: 9px; font-weight: 700; line-height: 1.5;
  white-space: nowrap; opacity: 0; transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.nv-node-tooltip--visible { opacity: 1; transform: translateY(-10px); }
.nv-node-tooltip__status { font-weight: 500; opacity: 0.7; }

/* Detail panel */
.nv-panel {
  flex: 0 0 188px; display: flex; flex-direction: column;
  background: var(--app-surface); border-left: 1px solid var(--app-border);
  font-size: 9px;
}
.nv-panel__head {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 10px 8px; border-bottom: 1px solid var(--app-border);
  flex-shrink: 0;
}
.nv-panel__dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: #C8C4BC; }
.nv-panel__title { font-size: 10px; font-weight: 800; color: var(--app-text); flex: 1; }
.nv-panel__status {
  font-size: 7px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; padding: 2px 5px; border-radius: 3px;
  background: var(--app-bg); color: var(--app-muted);
}
.nv-panel__body { flex: 1; overflow-y: auto; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.nv-panel__hint { color: var(--app-muted); font-size: 9px; line-height: 1.5; }

/* Panel detail rows */
.nv-detail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0; border-bottom: 1px solid var(--app-border); gap: 4px;
}
.nv-detail-row:last-child { border-bottom: none; }
.nv-detail-row__label { color: var(--app-muted); font-size: 8px; }
.nv-detail-row__val { font-weight: 700; font-size: 9px; color: var(--app-text); }
.nv-detail-row__val--ok   { color: #2ECC8F; }
.nv-detail-row__val--warn { color: #F5A623; }
.nv-detail-row__val--stop { color: #FF6038; }

/* Mini OEE bar inside panel */
.nv-oee-bar-wrap { margin: 6px 0 2px; }
.nv-oee-bar-wrap__label { display: flex; justify-content: space-between; font-size: 7px; color: var(--app-muted); margin-bottom: 3px; }
.nv-oee-bar { height: 5px; background: var(--app-bg); border-radius: 3px; overflow: hidden; }
.nv-oee-bar__fill { height: 100%; border-radius: 3px; transition: width 0.5s ease; }

/* AI chip inside panel */
.nv-ai-chip {
  background: rgba(77,191,184,0.1); border: 1px solid rgba(77,191,184,0.25);
  border-radius: 5px; padding: 6px 8px; font-size: 8px; line-height: 1.45;
  color: var(--app-text);
}
.nv-ai-chip__label {
  font-size: 7px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.05em; color: #0F7A76; margin-bottom: 3px; display: block;
}

/* Footer KPIs */
.nv-footer {
  display: flex; align-items: center; gap: 0;
  background: var(--app-surface); border-top: 1px solid var(--app-border);
  padding: 0 12px; height: 36px; flex-shrink: 0;
}
.nv-foot-kpi {
  display: flex; align-items: center; gap: 5px; padding: 0 10px;
}
.nv-foot-kpi__val { font-size: 11px; font-weight: 800; color: var(--app-text); }
.nv-foot-kpi__val--ok   { color: #2ECC8F; }
.nv-foot-kpi__val--warn { color: #F5A623; }
.nv-foot-kpi__val--stop { color: #FF6038; }
.nv-foot-kpi__lbl { font-size: 8px; color: var(--app-muted); font-weight: 500; }
.nv-foot-sep { width: 1px; height: 18px; background: var(--app-border); flex-shrink: 0; }
.nv-foot-kpi--alert .nv-foot-kpi__val { font-size: 10px; }

@media (max-width: 1280px) {
  .app-main     { flex: 0 0 260px; }
  .app-ai-panel { flex: 0 0 180px; }
}
@media (max-width: 1024px) {
  .app-ai-panel { flex: 0 0 36px; overflow: hidden; }
  .app-ai-panel .app-ai__card,
  .app-ai-panel .app-ai__cta  { display: none; }
  .app-ai-panel .app-ai-panel__head strong { display: none; }
  .app-ai-panel__toggle svg { transform: rotate(180deg); }
}
@media (max-width: 900px) {
  .app-frame    { height: auto; flex-direction: column; }
  .app-sidebar  { width: 100%; height: 40px; flex-direction: row; padding: 0 10px; }
  .app-sidebar__logo { margin-bottom: 0; padding-bottom: 0; border-bottom: none; border-right: 1px solid rgba(255,255,255,0.07); padding-right: 10px; margin-right: 6px; }
  .app-sidebar__nav  { flex-direction: row; }
  .app-main     { flex: none; width: 100%; }
  .app-detail   { flex: none; width: 100%; border-left: none; border-top: 1px solid var(--app-border); }
  .app-ai-panel { flex: none; width: 100%; border-left: none; border-top: 1px solid rgba(255,255,255,0.07); }
  .app-turns    { flex-wrap: wrap; }
  .app-turn     { min-width: 33%; }
}

/* ─── ECOSYSTEM ──────────────────────────────────────────────── */
.ecosystem {
  padding: var(--section-pad) 0;
  background: #1B3A52;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ecosystem__logo-wrap {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}
.ecosystem__wcs-logo {
  height: clamp(80px, 10vw, 140px);
  width: auto;
  display: block;
}
.ecosystem__title { margin-bottom: 16px; }
.ecosystem__desc {
  font-size: 16px;
  color: var(--clr-gray-300);
  max-width: 480px;
  margin: 0 auto 56px;
  line-height: 1.7;
}
.ecosystem__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}
.ecosystem__logo {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 12px 24px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-gray-300);
  transition: all var(--transition);
}
.ecosystem__logo:hover {
  border-color: rgba(255,96,56,0.4);
  color: var(--clr-white);
  background: rgba(255,96,56,0.06);
}
.ecosystem__wcs {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,96,56,0.1);
  border: 1px solid rgba(255,96,56,0.3);
  border-radius: var(--radius);
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-brand);
}

/* ─── TESTIMONIAL / QUOTE ────────────────────────────────────── */
.quote-band {
  padding: clamp(48px, 6vw, 80px) 0;
  background: var(--clr-brand);
  position: relative;
  overflow: hidden;
}
.quote-band__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.quote-band__text {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 44px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--clr-dark);
  line-height: 1.1;
  max-width: 700px;
}
.quote-band__author {
  text-align: right;
  min-width: 180px;
}
.quote-band__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--clr-dark);
}
.quote-band__role {
  font-size: 12px;
  color: rgba(0,0,0,0.55);
  margin-top: 2px;
}
.quote-band__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: rgba(0,0,0,0.5);
  margin-left: auto;
  margin-bottom: 8px;
}

/* ─── CTA FINAL ──────────────────────────────────────────────── */
.cta-final {
  padding: var(--section-pad) 0;
  background: var(--clr-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final__bg {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,96,56,0.15) 0%, transparent 65%);
  pointer-events: none;
}
.cta-final__title { margin-bottom: 20px; }
.cta-final__desc {
  font-size: 16px;
  color: var(--clr-gray-300);
  max-width: 440px;
  margin: 0 auto 44px;
  line-height: 1.7;
}
.cta-final__ctas { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ─── FOOTER ─────────────────────────────────────────────────── */
.footer {
  padding: clamp(40px, 5vw, 64px) 0 32px;
  background: var(--clr-black);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer__brand-desc {
  font-size: 13px;
  color: var(--clr-gray-500);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 260px;
}
.footer__col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-gray-300);
  margin-bottom: 16px;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links a {
  font-size: 13px;
  color: var(--clr-gray-500);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--clr-white); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.07);
  gap: 16px;
  flex-wrap: wrap;
}
.footer__copy {
  font-size: 12px;
  color: var(--clr-gray-500);
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* nav responsive heredado del padding dinámico */
  .nav__links  { display: none; }
  .nav__hamburger { display: flex; }
  .hero__stats { display: none; }
  .problem__inner    { grid-template-columns: 1fr; }
  .solution__inner   { grid-template-columns: 1fr; }
  .vision__steps     { grid-template-columns: 1fr 1fr; }
  .vision__steps::before { display: none; }
  .industries__top   { flex-direction: column; align-items: flex-start; }
  .industry-panel.panel--visible { grid-template-columns: 1fr; }
  .industry-panel__image { aspect-ratio: 16 / 9; }
  .modules__grid     { grid-template-columns: 1fr 1fr; }
  .quote-band__inner { grid-template-columns: 1fr; }
  .quote-band__author { text-align: left; }
  .footer__inner     { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .vision__steps   { grid-template-columns: 1fr; }
  .footer__inner   { grid-template-columns: 1fr; }
  .db-lines-area   { grid-template-columns: 1fr; }
  .hero__ctas      { flex-direction: column; width: fit-content; }
  .modules__grid   { grid-template-columns: 1fr; }
}

/* ─── MOBILE NAV MENU ─────────────────────────────────────────── */
.nav__mobile {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 24px;
  display: none;
  flex-direction: column;
  gap: 20px;
  z-index: 99;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--clr-text);
}

/* ─── KARIN CARD ─────────────────────────────────────────────── */
.karin-card {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--clr-off-white);
  border-radius: 40px;
  padding: 8px 20px 8px 8px;
  margin-bottom: 32px;
}
.karin-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--clr-gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--clr-dark);
  flex-shrink: 0;
}
.karin-card__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--clr-dark);
  line-height: 1.2;
}
.karin-card__role {
  font-size: 12px;
  color: var(--clr-gray-500);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.karin-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  flex-shrink: 0;
}

/* ── Full-page dot navigation ───────────────────────────────── */
.fp-dots {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
}

.fp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.fp-dot:hover {
  background: rgba(255, 255, 255, 0.55);
}

.fp-dot--active {
  background: var(--clr-brand);
  transform: scale(1.4);
}

@media (max-width: 768px) {
  .fp-dots { display: none; }
}
