/* ==========================================================================
   SISTEMA DE DISEÑO INGENIAR V7.4 — HOJA DE ESTILOS CENTRAL (02- INGEVOICE)
   App 2: Relevamiento Móvil de Catálogo por Foto y Voz (100% Mobile-First)
   - Pantalla 1 (BOC-IV-00_Home_y_Mapa.html):
     * Fondo Oscuro Carbono (#080C14) a pantalla completa
     * Gran Botón de Aluminio Cepillado + Aro LED Verde Esmeralda (GV)
     * Autenticación en 2 capas (4 dígitos del celular con auto-focus vs. Usuario reconocido)
     * Enlace inferior a www.ingeniar.ar
     * Visor Celular Real (390x844px) integrado para inspección en PC
   ========================================================================== */

:root {
  --iv-emerald-primary: #10B981;
  --iv-emerald-bright:  #34D399;
  --iv-emerald-soft:    #6EE7B7;
  --iv-emerald-glow:    #CCFBF1;
  --iv-blue-ingeniar:   #253D81;
  --iv-dark-bg:         #080C14;
  --iv-dark-surface:    #0F172A;
  --iv-text-white:      #F8FAFC;
  --iv-text-light:      #E2E8F0;
  --iv-text-muted:      #94A3B8;
  --font-ui:            'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:          'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

.reg-mark {
  font-size: 0.68em;
  vertical-align: super;
  line-height: 0;
  margin-left: 1px;
  font-weight: 700;
}

/* ==========================================================================
   1. PANTALLA 1: HOME Y MAPA DE ENCENDIDO (BOC-IV-00_Home_y_Mapa.html)
   - Fondo oscuro carbono (#080C14) con atmósfera sutil verde esmeralda
   - Centrado ergonómico en PC y nativo 100dvh en Celular (390x844px)
   ========================================================================== */
body.launchpad-dark-body {
  background-color: var(--iv-dark-bg);
  background-image: radial-gradient(circle at 50% 38%, #0E2326 0%, #080C14 74%);
  color: var(--iv-text-white);
  color-scheme: dark;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.launchpad-fullscreen {
  flex: 1;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 72px 24px;
  text-align: center;
  position: relative;
}

.launchpad-center-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 560px;
  padding-bottom: 32px;
}

/* Encabezado de Marca IngeVoice by INGENIAR® */
.launchpad-brand-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}

.launchpad-brand-name {
  font-size: 36px;
  font-weight: 500;
  color: var(--iv-text-white);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.launchpad-brand-name strong {
  font-weight: 800;
  color: var(--iv-emerald-bright);
}

.launchpad-brand-endorsement {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--iv-text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-voice-title {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
  max-width: 520px;
  margin: 0 0 76px 0;
  color: var(--iv-text-light);
}

/* ==========================================================================
   2. BOTÓN FÍSICO DE ALUMINIO CEPILLADO + LED VERDE ESMERALDA (GV)
   ========================================================================== */
.gv-led-hero-button {
  width: 236px;
  height: 236px;
  border-radius: 50%;
  background: conic-gradient(
    from 45deg,
    #E2E8F0 0deg,
    #94A3B8 45deg,
    #F8FAFC 90deg,
    #64748B 135deg,
    #CBD5E1 180deg,
    #94A3B8 225deg,
    #FFFFFF 270deg,
    #64748B 315deg,
    #E2E8F0 360deg
  );
  padding: 15px;
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.76),
    0 0 46px rgba(16, 185, 129, 0.36),
    inset 0 2px 5px rgba(255, 255, 255, 0.94);
  margin-bottom: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.gv-led-hero-button:hover,
.gv-led-hero-button:focus-visible {
  transform: scale(1.035);
  box-shadow:
    0 32px 68px rgba(0, 0, 0, 0.84),
    0 0 60px rgba(16, 185, 129, 0.62),
    inset 0 2px 5px rgba(255, 255, 255, 0.98);
  outline: none;
}

.gv-led-hero-button:active {
  transform: scale(0.985);
}

.gv-led-hero-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--iv-emerald-primary);
  box-shadow:
    0 0 24px var(--iv-emerald-primary),
    0 0 38px rgba(16, 185, 129, 0.55),
    inset 0 0 10px var(--iv-emerald-glow);
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.gv-led-hero-core {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #1E293B 0%, #090D16 72%);
  box-shadow:
    inset 0 4px 10px rgba(0, 0, 0, 0.9),
    inset 0 -2px 6px rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gv-hero-monogram-svg {
  width: 136px;
  height: 88px;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.72));
}

/* ==========================================================================
   3. BLOQUE DE BIENVENIDA Y AUTENTICACIÓN DE 4 DÍGITOS (CG-06)
   ========================================================================== */
.home-welcome-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.home-welcome-greeting {
  font-size: 34px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.02em;
}

.home-enter-hint {
  font-size: 16.5px;
  color: var(--iv-text-muted);
  margin: 0;
}

.home-pin-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.home-pin-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.015em;
}

.home-pin-inputs {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pin-digit-input {
  width: 60px;
  height: 68px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.82);
  border: 1.5px solid #475569;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pin-digit-input:focus {
  border-color: var(--iv-emerald-bright);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
}

/* Aviso sutil de transición cuando el Director prueba el botón en Pantalla 1 */
.launchpad-feedback-toast {
  margin-top: 14px;
  padding: 8px 16px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #A7F3D0;
  font-size: 13px;
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 8px;
}

.launchpad-feedback-toast.visible {
  display: inline-flex;
}

/* ==========================================================================
   4. ENLACE CORPORATIVO INFERIOR (www.ingeniar.ar)
   ========================================================================== */
.launchpad-bottom-footer {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 20px;
  flex-shrink: 0;
}

.launchpad-ingeniar-link {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--iv-text-muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.55);
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.launchpad-ingeniar-link:hover,
.launchpad-ingeniar-link:focus-visible {
  color: var(--iv-emerald-bright);
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(15, 23, 42, 0.88);
  outline: none;
}

/* ==========================================================================
   5. VISOR DE VIEWPORT MÓVIL REAL EN PC (390x844px) Y CONMUTADOR DE PROTOTIPO
   ========================================================================== */
.real-mobile-workspace {
  position: fixed;
  inset: 0;
  background: #0F172A;
  z-index: 550;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 16px 56px 16px;
}

.real-mobile-workspace.open {
  display: flex;
}

.real-mobile-viewport-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.real-mobile-viewport-badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: #CBD5E1;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid #334155;
  padding: 3px 12px;
  border-radius: 99px;
}

.real-mobile-viewport-frame {
  width: 390px;
  height: min(844px, calc(100vh - 88px));
  background: var(--iv-dark-bg);
  border-radius: 16px;
  border: 2px solid #334155;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.72);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.real-mobile-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: var(--iv-dark-bg);
}

.prototype-floating-switcher {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 5px 10px;
  border-radius: 99px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.proto-switch-btn {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #E2E8F0;
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.proto-switch-btn:hover,
.proto-switch-btn.active {
  background: #059669;
  border-color: var(--iv-emerald-bright);
  color: #FFFFFF;
}

.proto-switch-divider {
  width: 1px;
  height: 18px;
  background: rgba(148, 163, 184, 0.35);
  margin: 0 2px;
  flex-shrink: 0;
}

.proto-switch-btn.profile-mode-btn.active {
  background: #D97706;
  border-color: #FBBF24;
  color: #FFFFFF;
}

/* ==========================================================================
   6. ESCALA NATIVA PARA CELULAR REAL (@media max-width: 768px — 390x844px)
   ========================================================================== */
@media (max-width: 768px) {
  body.launchpad-dark-body {
    background-image: radial-gradient(circle at 50% 36%, #0E2326 0%, #080C14 76%);
    min-height: 100dvh;
    height: 100dvh;
    overflow: hidden;
  }

  .launchpad-fullscreen {
    min-height: 100dvh;
    height: 100dvh;
    padding: 20px 20px 24px 20px;
  }

  .launchpad-center-stage {
    padding-bottom: 36px;
  }

  .launchpad-brand-top {
    margin-bottom: 10px;
  }

  .launchpad-brand-name {
    font-size: 28px;
  }

  .launchpad-brand-endorsement {
    font-size: 10.5px;
  }

  .home-voice-title {
    font-size: 15px;
    margin-bottom: 68px;
    max-width: 350px;
    text-wrap: balance;
  }

  .gv-led-hero-button {
    width: 168px;
    height: 168px;
    padding: 11px;
    margin-bottom: 28px;
  }

  .gv-hero-monogram-svg {
    width: 96px;
    height: 62px;
  }

  .home-welcome-greeting {
    font-size: 25px;
  }

  .home-enter-hint {
    font-size: 14px;
  }

  .home-pin-title {
    font-size: 18px;
  }

  .home-pin-inputs {
    gap: 10px;
  }

  .pin-digit-input {
    width: 50px;
    height: 56px;
    font-size: 22px;
    border-radius: 12px;
  }

  .launchpad-bottom-footer {
    padding-top: 12px;
  }

  .launchpad-ingeniar-link {
    font-size: 12.5px;
    padding: 5px 12px;
  }

  .prototype-floating-switcher {
    flex-wrap: wrap;
    justify-content: center;
    width: calc(100% - 16px);
    max-width: 374px;
    bottom: 8px;
    padding: 4px 8px;
    border-radius: 16px;
  }
}


/* ==========================================================================
   7. MARCO OPERATIVO MOBILE-FIRST DE 02- INGEVOICE (BOC-IV-01 A BOC-IV-07)
   - En Celular (<=768px): 100% de borde a borde (390x844px) con tamaño 100% fijo
   - En PC (>768px): Estación móvil centrada (430px) sobre fondo oscuro limpio
   - Disciplina 90% Neutro / 10% Acción: Cero mancha de colores, jerarquía en 4 zonas
   ========================================================================== */
body.iv-app-body {
  background-color: #0B1120;
  background-image: radial-gradient(circle at 50% 20%, #112233 0%, #080C14 80%);
  color: #0F172A;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.iv-mobile-shell {
  width: 100%;
  max-width: 430px;
  height: calc(100vh - 64px);
  max-height: 860px;
  margin: 10px auto 54px auto;
  background: #F1F5F9;
  border-radius: 20px;
  border: 2px solid #334155;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.iv-icon-svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

/* Cabecera Superior Fija (52px) */
.iv-top-navbar {
  height: 52px;
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
  z-index: 40;
}

.iv-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #0F172A;
}

.gv-led-badge-sm {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: conic-gradient(from 45deg, #E2E8F0, #94A3B8, #FFFFFF, #64748B, #E2E8F0);
  padding: 2.5px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gv-led-badge-sm-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--iv-emerald-primary);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.75);
  padding: 1.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gv-led-badge-sm-core {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #090D16;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gv-badge-monogram-svg {
  width: 20px;
  height: 13px;
}

.iv-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.iv-brand-title {
  font-size: 16px;
  font-weight: 500;
  color: #0F172A;
  letter-spacing: -0.02em;
}

.iv-brand-title strong {
  font-weight: 800;
  color: #059669;
}

.iv-brand-sub {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.iv-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.iv-install-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  color: #334155;
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.iv-install-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}

@media (display-mode: standalone) {
  .iv-install-btn,
  [data-install-pwa-trigger] {
    display: none !important;
  }
}

.iv-hamburger-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  color: #0F172A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
}

.iv-hamburger-btn:hover {
  border-color: #0F172A;
}

/* Menú Desplegable de 3 Rayitas (☰ — 4 Líneas Puramente Tipográficas Sin Íconos) */
.iv-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  z-index: 80;
  display: none;
}

.iv-drawer-backdrop.open {
  display: block;
}

.iv-drawer-panel {
  position: absolute;
  top: 56px;
  right: 12px;
  width: 240px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 14px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.24);
  padding: 8px;
  z-index: 90;
  display: none;
  flex-direction: column;
  gap: 2px;
}

.iv-drawer-panel.open {
  display: flex;
}

.iv-drawer-link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  color: #1E293B;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.iv-drawer-link:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.iv-drawer-link.active {
  background: #0F172A;
  color: #FFFFFF;
  font-weight: 700;
}

/* ==========================================================================
   8. CUERPO OPERATIVO DE ALTURA 100% FIJA EN 3 BLOQUES UNIFICADOS (BOC-IV-01)
   - Contorno y estilo unificado con Pantalla 4 (border: 1.5px solid #94A3B8, radius 16px)
   - Bloque 1: Buscar o elegir productos (Controles de recorrido/búsqueda + Ficha del Producto)
   - Bloque 2: Fotos del producto
   - Bloque 3: Audio del producto
   ========================================================================== */
.iv-main-viewport {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 11px;
}

/* BLOQUE 1 UNIFICADO: BUSCAR O ELEGIR PRODUCTOS (Sin fondo gris oscuro, estilo Pantalla 4) */
.iv-product-selector-card {
  background: #FFFFFF;
  border: 1.5px solid #94A3B8;
  border-radius: 16px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 9px;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.iv-selector-controls-zone {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.iv-mode-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Mayor jerarquía sutil para "Uno tras otro" y "Buscador de productos" */
.iv-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  width: 100%;
  background: #E2E8F0;
  border: 1.5px solid #94A3B8;
  padding: 3.5px;
  border-radius: 10px;
  gap: 4px;
}

.iv-mode-tab {
  border: 1.5px solid transparent;
  background: transparent;
  color: #334155;
  font-family: var(--font-ui);
  font-size: 12.2px;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  transition: all 0.15s ease;
}

.iv-mode-tab.active {
  background: #FFFFFF;
  border-color: #0F172A;
  color: #0F172A;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.14);
}

.iv-btn-forgotten-prod {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #F8FAFC;
  border: 1px solid #94A3B8;
  color: #0F172A;
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 7px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.iv-btn-forgotten-prod:hover {
  background: #F1F5F9;
  border-color: #0F172A;
}

.iv-mode-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.iv-compact-select {
  flex: 1;
  min-width: 0;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  color: #0F172A;
  font-family: var(--font-ui);
  font-size: 11.2px;
  font-weight: 600;
  padding: 0 5px;
  outline: none;
}

.iv-filter-pills {
  display: inline-flex;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  padding: 2px;
  border-radius: 8px;
  gap: 2px;
  flex-shrink: 0;
}

.iv-filter-pill {
  border: none;
  background: transparent;
  color: #475569;
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 7px;
  border-radius: 6px;
  cursor: pointer;
}

.iv-filter-pill.active {
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
}

.iv-search-box-wrap {
  display: none;
  flex-direction: column;
  gap: 6px;
}

.iv-search-box-wrap.visible {
  display: flex;
}

.iv-search-row {
  display: flex;
  gap: 6px;
}

.iv-search-input {
  flex: 1;
  min-width: 0;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #94A3B8;
  background: #FFFFFF;
  color: #0F172A;
  font-family: var(--font-ui);
  font-size: 12px;
  padding: 0 10px;
  outline: none;
}

.iv-search-input:focus {
  border-color: #0F172A;
}

/* Sub-ficha interna del Producto Activo dentro del Bloque 1 */
.iv-active-product-box {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 11px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.iv-prod-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.iv-prod-meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.iv-prod-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.iv-sku-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #0F172A;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.iv-btn-delegate-prod {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFFFFF;
  border: 1px solid #94A3B8;
  color: #1E293B;
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.iv-btn-delegate-prod:hover {
  background: #F1F5F9;
  color: #0F172A;
  border-color: #0F172A;
}

.iv-prod-title {
  font-size: 17.5px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.22;
  margin: 0;
  letter-spacing: -0.02em;
}

.iv-prod-specs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid #E2E8F0;
}

.iv-spec-pills-group {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #475569;
}

.iv-cat-badge {
  font-weight: 700;
  color: #1E293B;
}

.iv-spec-divider {
  color: #94A3B8;
}

.iv-spec-pill {
  color: #475569;
}

.iv-spec-pill strong {
  color: #0F172A;
  font-weight: 700;
}

.iv-delegated-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: #1E293B;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  padding: 2px 7px;
  border-radius: 5px;
  display: none;
}

.iv-delegated-tag.visible {
  display: inline-block;
}

/* ==========================================================================
   9. BLOQUES 2 Y 3: FOTOS DEL PRODUCTO Y AUDIO DEL PRODUCTO
   - Mismo contorno y cabecera de alta jerarquía que Pantalla 4 (1.5px solid #94A3B8)
   ========================================================================== */
.iv-capture-card {
  flex: 1;
  background: #FFFFFF;
  border: 1.5px solid #94A3B8;
  border-radius: 16px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.iv-capture-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.iv-capture-label-group {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.iv-capture-step-num {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #0F172A;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.iv-capture-label {
  font-family: var(--font-ui);
  font-size: 15.5px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.iv-header-right-tools {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

/* Contador Clicable que abre el Popup de Registros Guardados */
.iv-capture-count-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #0F172A;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  padding: 4px 7px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.iv-capture-count-badge:hover {
  background: #E2E8F0;
  border-color: #94A3B8;
}

.iv-capture-count-badge.has-items {
  color: #065F46;
  background: #ECFDF5;
  border-color: #A7F3D0;
}

.iv-btn-guide-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  color: #475569;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 7px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.iv-btn-guide-pill:hover {
  background: #F1F5F9;
  color: #0F172A;
}

/* Botones Grandes de Cámara y Galería (50% / 50% — Se adaptan armónicamente a la tarjeta) */
.iv-photo-actions-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: stretch;
}

.iv-thumb-photo-btn {
  min-height: 58px;
  height: 100%;
  border-radius: 12px;
  border: 1.5px solid #CBD5E1;
  background: #F8FAFC;
  color: #0F172A;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.iv-thumb-photo-btn.primary-cam {
  background: #0F172A;
  border-color: #0F172A;
  color: #FFFFFF;
}

.iv-thumb-photo-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.1);
}

/* Consola Acústica de 4 Estados (Amplia, Fija y Sin Truncamiento) */
.iv-voice-deck {
  flex: 1;
  background: #0F172A;
  border-radius: 12px;
  padding: 12px 14px;
  color: #F8FAFC;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 64px;
}

.iv-voice-transport-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.iv-rec-trigger-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #DC2626;
  box-shadow:
    inset 0 0 0 3px #DC2626,
    inset 0 0 0 5px #FFFFFF,
    0 4px 10px rgba(220, 38, 38, 0.4);
  cursor: pointer;
  flex-shrink: 0;
}

.iv-rec-trigger-btn.recording {
  animation: ivPulseRec 1.2s infinite;
}

@keyframes ivPulseRec {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.iv-voice-status-box {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.iv-voice-timer-line {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.iv-voice-timer {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
}

.iv-voice-state-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #CBD5E1;
  text-transform: uppercase;
  white-space: nowrap;
}

.iv-voice-state-tag.is-paused {
  color: #FBBF24;
}

.iv-voice-subhint {
  font-size: 11.5px;
  color: #94A3B8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iv-voice-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.iv-ctrl-btn {
  height: 34px;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #1E293B;
  color: #F8FAFC;
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.iv-ctrl-btn:hover {
  background: #334155;
}

.iv-ctrl-btn.btn-finish {
  background: #2563EB;
  border-color: #60A5FA;
}

.iv-ctrl-btn.btn-save-vault {
  background: #059669;
  border-color: #34D399;
  color: #FFFFFF;
}

.iv-ctrl-btn.btn-discard {
  background: rgba(220, 38, 38, 0.22);
  border-color: rgba(248, 113, 113, 0.5);
  color: #FECACA;
}

/* Listado de ítems guardados dentro del Popup de Registros (CG-05) */
.iv-saved-items-strip {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
}

.iv-saved-pill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
}

.iv-saved-pill-name {
  color: #1E293B;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iv-vault-seal {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #065F46;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 2px 7px;
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.iv-saved-pill-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.iv-btn-delete-record {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid #FECACA;
  background: #FEF2F2;
  color: #DC2626;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.iv-btn-delete-record:hover {
  background: #FEE2E2;
  border-color: #FCA5A5;
}

.iv-delete-trash-svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   10. NAVEGACIÓN DE PRODUCTOS Y PIE FIJO DE 4 ÍCONOS OFICIALES
   ========================================================================== */
.iv-prod-nav-bar {
  display: grid;
  grid-template-columns: 1fr auto 1.25fr;
  gap: 8px;
  padding: 8px 14px;
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  flex-shrink: 0;
}

.iv-nav-btn {
  height: 40px;
  border-radius: 10px;
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  color: #1E293B;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0 12px;
}

.iv-nav-btn:hover {
  background: #F1F5F9;
}

.iv-nav-btn.btn-skip {
  color: #475569;
  font-size: 12.5px;
}

.iv-nav-btn.btn-next-prod {
  background: var(--iv-blue-ingeniar);
  border-color: var(--iv-blue-ingeniar);
  color: #FFFFFF;
}

.iv-nav-btn.btn-next-prod:hover {
  background: #1E326B;
}

/* Pie Fijo de 4 Íconos (IngeBot | Seguridad | Legales | Sugerir) */
.iv-bottom-app-bar {
  height: 54px;
  background: #0F172A;
  border-top: 1px solid #1E293B;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 0 4px;
  flex-shrink: 0;
  z-index: 45;
}

.iv-bottom-icon-btn {
  position: relative;
  height: 46px;
  border: none;
  background: transparent;
  color: #CBD5E1;
  font-family: var(--font-ui);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  border-radius: 8px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.iv-bottom-icon-btn:hover,
.iv-bottom-icon-btn.active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
}

.iv-bottom-icon-sym {
  font-size: 15px;
  line-height: 1;
}

.iv-bottom-icon-lbl {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Cartelito Descriptivo al Mantener Presionado (Long Press / Hover) */
.iv-longpress-tip {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: #090D16;
  color: #F8FAFC;
  border: 1px solid #38BDF8;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  z-index: 100;
}

.iv-bottom-icon-btn:hover .iv-longpress-tip,
.iv-bottom-icon-btn.show-tip .iv-longpress-tip {
  opacity: 1;
}

/* ==========================================================================
   11. POPUPS FLOTANTES CENTRADOS (GUÍAS, REGISTROS, AGREGAR, SUGERIR, INGEBOT®)
   ========================================================================== */
.iv-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 13, 22, 0.7);
  backdrop-filter: blur(3px);
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.iv-modal-backdrop.open {
  display: flex;
}

.iv-modal-card {
  width: 100%;
  max-width: 368px;
  max-height: calc(100% - 20px);
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 16px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.48);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.iv-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid #E2E8F0;
}

.iv-modal-title {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
}

.iv-modal-close {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.iv-guide-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.iv-guide-quote {
  background: #F8FAFC;
  border-left: 3px solid #253D81;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #0F172A;
}

/* Formulario Compacto de Popups (+ Agregar y Delegación) */
.iv-form-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.iv-form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.iv-field-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.iv-field-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
}

.iv-field-input,
.iv-field-select {
  width: 100%;
  min-width: 0;
  height: 33px;
  border-radius: 7px;
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  color: #0F172A;
  font-family: var(--font-ui);
  font-size: 12.5px;
  padding: 0 8px;
  outline: none;
}

.iv-new-option-input {
  display: none;
  margin-top: 4px;
}

.iv-new-option-input.visible {
  display: block;
}

.iv-modal-primary-btn {
  height: 38px;
  border-radius: 9px;
  border: none;
  background: #253D81;
  color: #FFFFFF;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}

.iv-modal-primary-btn:hover {
  background: #1E326B;
}

/* Identidad Universal INGENIAR® (Azul #253D81 + Cian #38BDF8) y Mayor Aire para Pantalla 10: Chat IA IngeBot® */
.ingebot-modal-card {
  background: #0F172A;
  color: #F8FAFC;
  border: 1.5px solid #38BDF8;
  min-height: 540px;
  padding: 18px 16px;
  gap: 14px;
  justify-content: space-between;
}

.ingebot-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ingebot-avatar-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #253D81 0%, #00A8E8 100%);
  border: 1px solid #7DD3FC;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 14px rgba(0, 168, 232, 0.45);
}

.ingebot-title-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.ingebot-brand-name {
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
}

.ingebot-brand-name span {
  color: #38BDF8;
}

.ingebot-brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #94A3B8;
}

.ingebot-tts-toggle {
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid #38BDF8;
  color: #E0F2FE;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 99px;
  cursor: pointer;
}

.ingebot-quick-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ingebot-chip-btn {
  background: #1E293B;
  border: 1px solid #334155;
  color: #E2E8F0;
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 99px;
  cursor: pointer;
}

.ingebot-chip-btn:hover {
  border-color: #38BDF8;
  color: #38BDF8;
}

.ingebot-chat-feed {
  flex: 1;
  background: #090D16;
  border: 1px solid #1E293B;
  border-radius: 12px;
  padding: 14px 12px;
  min-height: 220px;
  max-height: 290px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
}

.ingebot-msg-bot {
  background: #1E293B;
  border-left: 3px solid #38BDF8;
  border-radius: 10px;
  padding: 10px 12px;
  color: #F8FAFC;
  line-height: 1.5;
}

.ingebot-msg-user {
  background: #253D81;
  border: 1px solid #3B82F6;
  border-radius: 10px;
  padding: 9px 12px;
  color: #FFFFFF;
  align-self: flex-end;
  line-height: 1.45;
}

.ingebot-reactions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.ingebot-react-btn {
  height: 32px;
  background: #1E293B;
  border: 1px solid #334155;
  color: #CBD5E1;
  font-size: 11px;
  font-weight: 600;
  padding: 0 9px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex: 1;
}

.ingebot-react-btn:hover,
.ingebot-react-btn.active {
  border-color: #38BDF8;
  color: #38BDF8;
}

.ingebot-input-bar {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ingebot-voice-btn {
  height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  border: none;
  background: #00A8E8;
  color: #082F49;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.ingebot-text-input {
  flex: 1;
  min-width: 0;
  height: 38px;
  border-radius: 9px;
  border: 1px solid #334155;
  background: #1E293B;
  color: #FFFFFF;
  font-family: var(--font-ui);
  font-size: 12.5px;
  padding: 0 10px;
  outline: none;
}

.ingebot-send-btn {
  height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid #38BDF8;
  background: transparent;
  color: #38BDF8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* Vista Minimalista de Agradecimiento en Popup 9 (Sugerencia por Audio) */
.sug-capture-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sug-thankyou-step {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 8px 4px;
}

.sug-thankyou-step.visible {
  display: flex;
}

.iv-thankyou-banner {
  background: #F0FDF4;
  border: 1px solid #86EFAC;
  color: #065F46;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

/* ==========================================================================
   12. PANTALLA 3: SUBIR TABLA DE PRODUCTOS — 3 ESCALONES JERÁRQUICOS (BOC-IV-02)
   - Escalón 1 (Arriba): Identidad de pantalla ("Subir Tablas de Productos" + ? Guía)
   - Escalón 2 (Centro Protagonista): Zona Visual de Subida (Dropzone) + Plantilla / + Subir Tabla
   - Escalón 3 (Abajo Secundario): Herramientas complementarias (Estado actual + Agregar 1 producto)
   - Columna del Pulgar Derecho: + Subir Tabla | + Agregar 1 producto | Ir a Capturar →
   ========================================================================== */
.iv-main-viewport.iv-hierarchy-upload-viewport {
  justify-content: space-between;
  padding: 12px 14px;
  gap: 10px;
}

/* Escalón 1: Identidad de la pantalla */
.iv-screen-identity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 0;
  flex-shrink: 0;
}

.iv-screen-identity-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.iv-screen-identity-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.iv-screen-identity-sub {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  line-height: 1.3;
}

/* Escalón 2: Bloque Protagonista con Zona Visual de Subida (Dropzone) */
.iv-hero-upload-card {
  flex: 1;
  min-height: 0;
  background: #FFFFFF;
  border: 1.5px solid #94A3B8;
  border-radius: 16px;
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.iv-upload-dropzone {
  flex: 1;
  min-height: 0;
  background: #F8FAFC;
  border: 2px dashed #94A3B8;
  border-radius: 14px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.iv-upload-dropzone:hover {
  background: #F1F5F9;
  border-color: #0F9D58;
}

.iv-dropzone-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  background: #ECFDF5;
  border: 1.5px solid #A7F3D0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(15, 157, 88, 0.14);
  flex-shrink: 0;
}

.iv-dropzone-sheets-svg {
  width: 34px;
  height: 34px;
  display: block;
}

.iv-dropzone-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.25;
}

.iv-dropzone-sub {
  margin: 0;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.35;
}

/* Ilustración Visual de Planilla Google Sheets (Encabezados + 3 Renglones) */
.iv-sheet-illustration-wrap {
  width: 100%;
  max-width: 312px;
  margin-top: 4px;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
  flex-shrink: 0;
}

.iv-sheet-illustration-svg {
  width: 100%;
  height: auto;
  display: block;
}

.iv-table-actions-grid {
  display: grid;
  grid-template-columns: 0.95fr 0.95fr 1.35fr;
  gap: 8px;
  flex-shrink: 0;
}

.iv-table-action-btn {
  height: 54px;
  border-radius: 12px;
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  color: #334155;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 6px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.iv-table-action-btn.two-line-btn {
  flex-direction: column;
  gap: 2px;
  line-height: 1.18;
  text-align: center;
  white-space: normal;
  font-size: 11.5px;
}

.iv-table-action-btn:hover {
  transform: translateY(-1px);
  background: #F1F5F9;
  border-color: #94A3B8;
}

.iv-table-action-btn.primary-upload {
  background: #0F172A;
  border: 1.5px solid #0F172A;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 800;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
}

.iv-table-action-btn.primary-upload:hover {
  background: #1E293B;
}

/* Popup Guía Amplio y con Lectura en Cuotas (Aire entre los párrafos/tarjetas) */
.iv-guide-modal-card {
  max-width: 394px;
  padding: 20px 18px;
  gap: 16px;
}

.iv-guide-steps-stack {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.iv-guide-step-item {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-left: 3.5px solid #253D81;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
}

.iv-guide-step-item strong {
  color: #0F172A;
}

.iv-prod-nav-bar.two-cols-nav {
  grid-template-columns: 1fr 1.35fr;
}

.iv-modal-subtext {
  margin: 0;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.45;
}

.iv-modal-secondary-btn {
  height: 36px;
  border-radius: 9px;
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  color: #0F172A;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}

.iv-modal-secondary-btn:hover {
  background: #E2E8F0;
}

/* ==========================================================================
   13. PANTALLA 4: DELEGAR A EMPLEADOS — JERARQUÍA EN 2 BLOQUES Y CAPAS (BOC-IV-03)
   - Mayor aire entre Bloque 1 (Cargar Colaboradores) y Bloque 2 (Asignar Tareas)
   - Mayor peso visual en los títulos de los 2 bloques principales (.iv-major-block-title)
   - Menor peso visual en los 3 sub-bloques (A, B, C) para no competir con los títulos
   - En los Popups: mayor jerarquía en la instrucción ("qué hacer") y menor en las filas
   ========================================================================== */
.iv-main-viewport.iv-delegate-viewport {
  justify-content: space-between;
  padding: 12px 14px;
  gap: 20px;
}

.iv-delegate-emp-card {
  background: #FFFFFF;
  border: 1.5px solid #94A3B8;
  border-radius: 16px;
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.iv-delegate-scope-card {
  flex: 1;
  min-height: 0;
  background: #FFFFFF;
  border: 1.5px solid #94A3B8;
  border-radius: 16px;
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.iv-major-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid #E2E8F0;
}

.iv-major-step-num {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #0F172A;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

.iv-major-block-title {
  font-family: var(--font-ui);
  font-size: 14.2px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.025em;
  line-height: 1.15;
  white-space: nowrap;
}

.iv-btn-add-emp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #F8FAFC;
  border: 1px solid #94A3B8;
  color: #0F172A;
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.iv-btn-add-emp:hover {
  background: #F1F5F9;
  border-color: #0F172A;
}

.iv-emp-select-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.iv-emp-select {
  flex: 1;
  min-width: 0;
  height: 38px;
  border-radius: 9px;
  border: 1px solid #94A3B8;
  background: #F8FAFC;
  color: #0F172A;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  padding: 0 10px;
  outline: none;
}

.iv-emp-select:focus {
  border-color: #0F172A;
  background: #FFFFFF;
}

.iv-delegate-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #E2E8F0;
  padding: 3px;
  border-radius: 10px;
  gap: 3px;
  flex-shrink: 0;
}

.iv-delegate-tab {
  height: 32px;
  border: none;
  background: transparent;
  color: #475569;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.iv-delegate-tab.active {
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.iv-delegate-panel {
  display: none;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.iv-delegate-panel.active {
  display: flex;
}

.iv-check-list-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* En Popups: Instrucción Protagonista arriba y Opciones más livianas abajo */
.iv-modal-instruction-hero {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-left: 4px solid #253D81;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.42;
  margin: 0;
}

.iv-modal-instruction-hero span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #334155;
  margin-top: 3px;
}

.iv-check-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 9px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.iv-check-item-row:hover {
  border-color: #CBD5E1;
  background: #F8FAFC;
}

.iv-check-item-row.is-checked {
  background: #F8FAFC;
  border-color: #64748B;
}

.iv-check-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.iv-check-box-ui {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid #94A3B8;
  background: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: transparent;
  flex-shrink: 0;
}

.iv-check-item-row.is-checked .iv-check-box-ui {
  background: #0F172A;
  border-color: #0F172A;
  color: #FFFFFF;
}

.iv-check-texts {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  gap: 1px;
}

.iv-check-title {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iv-check-sub {
  font-size: 10.5px;
  color: #94A3B8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iv-check-meta-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: #64748B;
  background: #F1F5F9;
  padding: 2px 6px;
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.iv-range-box {
  flex: 1;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.iv-range-preview-banner {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-left: 3.5px solid #0F172A;
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 12px;
  color: #334155;
  line-height: 1.4;
}

.iv-delegate-actions-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.35fr;
  gap: 8px;
  flex-shrink: 0;
}

.iv-feedback-inline-pill {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 11.5px;
  font-weight: 700;
  flex-shrink: 0;
}

.iv-feedback-inline-pill.visible {
  display: flex;
}

/* Sub-bloques A, B, C con peso visual liviano para destacar los 2 bloques principales */
.iv-card-helper-sub {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  line-height: 1.35;
}

.iv-emp-load-grid {
  display: grid;
  grid-template-columns: 1fr 1.18fr;
  gap: 8px;
}

.iv-assign-methods-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.iv-assign-method-card {
  flex: 1;
  width: 100%;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 11px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-ui);
}

.iv-assign-method-card:hover {
  background: #F1F5F9;
  border-color: #64748B;
}

.iv-method-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

.iv-method-badge {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #E2E8F0;
  color: #475569;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.iv-method-texts {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.iv-method-title {
  font-size: 13px;
  font-weight: 700;
  color: #1E293B;
  line-height: 1.2;
}

.iv-method-desc {
  font-size: 11px;
  font-weight: 500;
  color: #64748B;
  line-height: 1.25;
}

.iv-method-cta-pill {
  height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  background: #FFFFFF;
  border: 1px solid #94A3B8;
  color: #1E293B;
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.iv-modal-person-btn {
  height: 42px;
  border-radius: 10px;
  border: none;
  background: #0F172A;
  color: #FFFFFF;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  cursor: pointer;
  transition: background 0.15s ease;
}

.iv-modal-person-btn:hover {
  background: #1E293B;
}

.iv-modal-dropzone-compact {
  background: #F8FAFC;
  border: 2px dashed #94A3B8;
  border-radius: 12px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.iv-modal-dropzone-compact:hover {
  background: #F1F5F9;
  border-color: #0F9D58;
}

.iv-modal-actions-2col {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 8px;
}

/* Espejo Visual dentro del Popup ? Guía (Réplica de los Bloques con mayor luz y aire entre puntos) */
.iv-guide-mirror-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.iv-guide-mirror-block {
  background: #FFFFFF;
  border: 1.5px solid #94A3B8;
  border-radius: 16px;
  padding: 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.iv-guide-mirror-text {
  margin: 0;
  font-size: 12.5px;
  color: #334155;
  line-height: 1.45;
}

.iv-guide-mini-methods {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.iv-guide-mini-row {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 11px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* Tarjetas Humanas de Tareas Asignadas por Persona y Envío por WhatsApp */
.iv-task-summary-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 360px;
  overflow-y: auto;
}

.iv-task-summary-card {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 11px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.iv-task-summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.iv-task-summary-products {
  font-size: 11.5px;
  color: #334155;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 7px;
  padding: 6px 8px;
  line-height: 1.35;
}

.iv-task-wa-btn {
  width: 100%;
  min-height: 36px;
  height: auto;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid #065F46;
  background: #ECFDF5;
  color: #065F46;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.iv-task-wa-btn:hover {
  background: #D1FAE5;
}

/* Selector de Nivel de Acceso (Colaborador vs. Socio/Encargado con Acceso Total) */
.iv-access-level-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #F1F5F9;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid #CBD5E1;
}

.iv-access-level-btn {
  height: 36px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #475569;
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.iv-access-level-btn.active {
  background: #FFFFFF;
  color: #0F172A;
  border-color: #94A3B8;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.08);
}

.iv-access-level-hint {
  margin: 4px 0 0 0;
  font-size: 11px;
  color: #475569;
  line-height: 1.35;
}

.iv-access-pill-switch {
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.iv-access-pill-switch.is-owner {
  background: #EFF6FF;
  border-color: #93C5FD;
  color: #1E3A8A;
}

/* ==========================================================================
   14. PANTALLA 5: DASHBOARD DE AVANCE — GEOMETRÍA 100% FIJA (BOC-IV-04)
   - Zona 1 (Arriba): Avance General del Proyecto (Donut Circular + 3 Barras)
   - Zona 2 (Abajo): Avance por Colaborador (Stepper Individual <- Anterior | Siguiente ->)
   - Contorno unificado (1.5px solid #94A3B8) y Cero Desplazamiento (Zero Layout Shift)
   ========================================================================== */
@property --value {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

.iv-main-viewport.iv-dashboard-viewport {
  justify-content: space-between;
  padding: 10px 14px;
  gap: 11px;
}

.iv-dash-project-card {
  flex: 0.9;
  min-height: 0;
  background: #FFFFFF;
  border: 1.5px solid #94A3B8;
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.iv-dash-collab-card {
  flex: 1.1;
  min-height: 0;
  background: #FFFFFF;
  border: 1.5px solid #94A3B8;
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

/* Grilla Interna Fija: Anillo Circular a la izquierda + 3 Barras Horizontales a la derecha */
.iv-dash-metrics-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 106px 1fr;
  gap: 13px;
  align-items: center;
}

.iv-dash-metrics-grid.is-collab-grid {
  grid-template-columns: 98px 1fr;
  gap: 12px;
}

.iv-donut-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.iv-donut-ring-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}

.iv-dash-metrics-grid.is-collab-grid .iv-donut-ring-wrap {
  width: 86px;
  height: 86px;
}

/* Anillo de Progreso Semántico (<progress>) con conic-gradient y fallback de máscara */
progress.iv-donut-ring {
  --size: 96px;
  --thickness: 11px;
  --track-color: #E2E8F0;
  --fill-color: #253D81;
  --value: attr(value type(<number>));
  appearance: none;
  -webkit-appearance: none;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: conic-gradient(
    var(--fill-color) calc(var(--value) * 1%),
    var(--track-color) 0
  );
  background-clip: border-area;
  border: var(--thickness) solid transparent;
  background-origin: border-box;
  transition: --value 0s ease-in-out;
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  progress.iv-donut-ring {
    transition-duration: 0.4s;
  }
}

progress.iv-donut-ring.is-collab-ring {
  --size: 86px;
  --thickness: 10px;
  --fill-color: #059669;
}

progress.iv-donut-ring[value="100"] {
  --fill-color: #10B981;
}

progress.iv-donut-ring::-webkit-progress-bar,
progress.iv-donut-ring::-webkit-progress-value {
  display: none;
  background: none;
}

progress.iv-donut-ring::-moz-progress-bar {
  display: none;
  background: none;
}

@supports not (background-clip: border-area) {
  progress.iv-donut-ring {
    -webkit-mask-image: radial-gradient(
      transparent calc(50% - var(--thickness)),
      black calc(50% - var(--thickness) + 0.5px)
    );
    mask-image: radial-gradient(
      transparent calc(50% - var(--thickness)),
      black calc(50% - var(--thickness) + 0.5px)
    );
    border: 0;
  }
}

.iv-donut-center {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  line-height: 1.05;
}

.iv-donut-pct {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.03em;
}

.iv-dash-metrics-grid.is-collab-grid .iv-donut-pct {
  font-size: 17px;
}

.iv-donut-lbl {
  font-size: 8.5px;
  font-weight: 800;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.iv-donut-foot-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #1E293B;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  padding: 2px 7px;
  border-radius: 99px;
  white-space: nowrap;
}

.iv-donut-foot-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #0F172A;
  background: #F8FAFC;
  border: 1px solid #94A3B8;
  padding: 3px 8px;
  border-radius: 99px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.iv-donut-foot-btn:hover {
  background: #E2E8F0;
  border-color: #0F172A;
}

.iv-btn-remind-wa {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  color: #065F46;
  background: #ECFDF5;
  border: 1px solid #6EE7B7;
  padding: 4px 8px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.iv-btn-remind-wa:hover {
  background: #D1FAE5;
  border-color: #059669;
}

.iv-prod-nav-bar.single-col-nav {
  grid-template-columns: 1fr;
}

/* Columna Derecha: 3 Barras Horizontales de Avance */
.iv-bars-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  min-width: 0;
}

.iv-metric-bar-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.iv-metric-bar-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.iv-metric-bar-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #1E293B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iv-metric-bar-val {
  font-family: var(--font-mono);
  font-size: 10.8px;
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
  flex-shrink: 0;
}

.iv-metric-bar-val span {
  font-weight: 600;
  color: #475569;
  font-size: 9.8px;
}

.iv-metric-bar-track {
  width: 100%;
  height: 8.5px;
  border-radius: 99px;
  background: #E2E8F0;
  border: 1px solid #CBD5E1;
  overflow: hidden;
}

.iv-metric-bar-fill {
  height: 100%;
  border-radius: 99px;
  width: 0%;
  transition: width 0.35s ease;
}

.iv-metric-bar-fill.fill-prod {
  background: linear-gradient(90deg, #1E3A8A 0%, #2563EB 100%);
}

.iv-metric-bar-fill.fill-photo {
  background: linear-gradient(90deg, #047857 0%, #10B981 100%);
}

.iv-metric-bar-fill.fill-audio {
  background: linear-gradient(90deg, #0369A1 0%, #0EA5E9 100%);
}

/* Sub-fila de Identidad del Colaborador Activo en el Bloque 2 */
.iv-collab-stage-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.iv-collab-identity-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 6px 10px;
  flex-shrink: 0;
}

.iv-collab-person-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

.iv-collab-person-name {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iv-collab-person-role {
  font-size: 10.5px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iv-collab-status-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #1E3A8A;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 3px 7px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.iv-collab-status-pill.is-done {
  color: #065F46;
  background: #ECFDF5;
  border-color: #A7F3D0;
}

/* Estado Vacío ("No hay colaboradores asignados") con Altura 100% Fija */
.iv-collab-empty-box {
  flex: 1;
  min-height: 0;
  background: #F8FAFC;
  border: 1.5px dashed #94A3B8;
  border-radius: 12px;
  padding: 12px 14px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 7px;
}

.iv-collab-empty-box.visible {
  display: flex;
}

.iv-collab-empty-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #0F172A;
}

.iv-collab-empty-sub {
  margin: 0;
  font-size: 11.5px;
  color: #475569;
  line-height: 1.38;
  max-width: 280px;
}

/* Barra Interna de Recorrido de Colaboradores (<- Anterior | 1 de X | Siguiente ->) */
.iv-collab-stepper-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid #E2E8F0;
  flex-shrink: 0;
}

.iv-stepper-btn {
  height: 33px;
  border-radius: 8px;
  border: 1px solid #94A3B8;
  background: #F8FAFC;
  color: #0F172A;
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 10px;
  transition: all 0.15s ease;
}

.iv-stepper-btn:hover {
  background: #E2E8F0;
  border-color: #0F172A;
}

.iv-stepper-btn.is-next {
  background: #0F172A;
  border-color: #0F172A;
  color: #FFFFFF;
}

.iv-stepper-btn.is-next:hover {
  background: #1E293B;
}

.iv-stepper-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  padding: 0 6px;
  white-space: nowrap;
}

/* ==========================================================================
   15. PANTALLA 6: SOBRE INGEVOICE — CAPAS DE DESCUBRIMIENTO (BOC-IV-05)
   - Bloque 1: Conocé cómo funciona IngeVoice (4 Tarjetas-Botón A, B, C, D que abren Popups)
   - Bloque 2: Asistente IA IngeBot® (Informativo limpio: indica usar el botón del pie)
   - Cero "mancha de texto": cada botón abre su Popup limpio en cuotas
   ========================================================================== */
.iv-main-viewport.iv-about-viewport {
  justify-content: space-between;
  padding: 10px 14px;
  gap: 11px;
}

.iv-about-main-card {
  flex: 1.42;
  min-height: 0;
  background: #FFFFFF;
  border: 1.5px solid #94A3B8;
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 9px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.iv-about-main-card .iv-assign-methods-stack {
  gap: 8px;
}

.iv-about-main-card .iv-assign-method-card {
  padding: 9px 12px;
}

.iv-about-bot-card {
  flex: 0.58;
  min-height: 0;
  background: #FFFFFF;
  border: 1.5px solid #94A3B8;
  border-radius: 16px;
  padding: 11px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.iv-about-bot-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #1E3A8A;
  background: #EFF6FF;
  border: 1px solid #93C5FD;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.iv-about-bot-body {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 11px;
  padding: 10px 12px;
  flex: 1;
  min-height: 0;
}

.iv-about-bot-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.iv-about-bot-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #253D81 0%, #0284C7 100%);
  border: 1px solid #38BDF8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(37, 61, 129, 0.22);
}

.iv-about-bot-texts {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.iv-about-bot-name {
  font-size: 12.5px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
}

.iv-about-bot-name span {
  color: #0284C7;
}

.iv-about-bot-sub {
  font-size: 11px;
  font-weight: 500;
  color: #475569;
  line-height: 1.34;
}

/* ==========================================================================
   16. PANTALLA 7: SEGURIDAD DE LOS DATOS Y NDA GLOBAL (BOC-IV-06)
   - Bloque 1: 4 Pilares de Protección (A, B, C, D) -> Popups con Respaldo Técnico
   - Bloque 2: Acuerdo de Confidencialidad (NDA) Global con descarga "on the fly"
   ========================================================================== */
.iv-security-nda-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #065F46;
  background: #ECFDF5;
  border: 1px solid #6EE7B7;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.iv-security-nda-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 11px;
  padding: 9px 12px;
  flex: 1;
  min-height: 0;
}

.iv-security-nda-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.iv-security-nda-badge {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #0F172A;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.iv-security-nda-btn {
  height: 32px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1.5px solid #0F172A;
  background: #0F172A;
  color: #FFFFFF;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.iv-security-nda-btn:hover {
  background: #1E293B;
}

.iv-tech-backing-box {
  background: #F1F5F9;
  border: 1px dashed #94A3B8;
  border-radius: 10px;
  padding: 8px 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.iv-tech-backing-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #1E3A8A;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.iv-tech-backing-text {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: #334155;
  line-height: 1.35;
}

/* Vista Previa en Popup del NDA Global (con scroll interno limpio y descarga) */
.iv-legal-doc-scroll {
  max-height: 330px;
  overflow-y: auto;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 11px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 11.5px;
  color: #334155;
  line-height: 1.45;
}

.iv-legal-doc-meta {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  color: #0F172A;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.iv-legal-doc-clause-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #0F172A;
  margin: 2px 0 0 0;
}

.iv-legal-doc-clause-text {
  margin: 0;
  font-size: 11px;
  color: #334155;
}

.iv-modal-dual-actions {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 8px;
}

.iv-modal-secondary-btn {
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid #94A3B8;
  background: #F8FAFC;
  color: #0F172A;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================================
   17. PANTALLA 8: DOCUMENTOS LEGALES — 100% TIPOGRÁFICA Y SOBRIA (BOC-IV-07)
   - Regla estricta: CERO logos, íconos o emojis en los 5 documentos legales
   - 5 botones tipográficos (1. NDA, 2. Aviso Legal, 3. Privacidad, 4. Cookies, 5. Términos)
   ========================================================================== */
.iv-legal-main-card {
  flex: 1;
  min-height: 0;
  background: #FFFFFF;
  border: 1.5px solid #94A3B8;
  border-radius: 16px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.iv-legal-list-stack {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.iv-legal-item-btn {
  flex: 1;
  min-height: 0;
  width: 100%;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 11px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-ui);
  transition: all 0.15s ease;
}

.iv-legal-item-btn:hover {
  background: #F1F5F9;
  border-color: #64748B;
}

.iv-legal-num-badge {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #0F172A;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   18. PANEL DE ADMINISTRADOR LIVIANO (BOC-IV-ADMIN_Panel_Administrador.html)
   - Bloque 1: Clientes y Envío de Accesos (Lee 01_Maestro_Clientes_y_Proyectos.xlsx)
   - Bloque 2: Tablas Globales y Bot IA (Sugerencias con Respuesta en Audio + IngeBot Human-in-the-Loop)
   ========================================================================== */
.iv-admin-top-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: #1E3A8A;
  background: #EFF6FF;
  border: 1px solid #93C5FD;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.iv-admin-client-card {
  flex: 1.06;
  min-height: 0;
  background: #FFFFFF;
  border: 1.5px solid #94A3B8;
  border-radius: 16px;
  padding: 11px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 7px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.iv-admin-global-card {
  flex: 0.94;
  min-height: 0;
  background: #FFFFFF;
  border: 1.5px solid #94A3B8;
  border-radius: 16px;
  padding: 11px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.iv-admin-global-card .iv-assign-methods-stack {
  gap: 7px;
}

.iv-admin-global-card .iv-assign-method-card {
  padding: 8px 11px;
}

.iv-admin-alert-pill {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  color: #92400E;
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.iv-admin-alert-pill.is-resolved {
  color: #065F46;
  background: #ECFDF5;
  border-color: #6EE7B7;
}

.iv-admin-thread-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: #1E3A8A;
  background: #EFF6FF;
  border: 1px solid #93C5FD;
  padding: 2px 6px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iv-admin-play-btn {
  height: 29px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid #253D81;
  background: #EFF6FF;
  color: #1E3A8A;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.iv-admin-play-btn:hover {
  background: #DBEAFE;
}

.iv-admin-reply-box {
  background: #0F172A;
  border-radius: 10px;
  padding: 9px 10px;
  color: #F8FAFC;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.iv-admin-reply-box .iv-voice-transport-row {
  gap: 8px;
}

.iv-admin-reply-box .iv-voice-status-box {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.iv-admin-reply-box .iv-voice-subhint {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iv-admin-reply-box .iv-voice-controls {
  gap: 5px;
  flex-shrink: 0;
}

.iv-admin-reply-box .iv-ctrl-btn {
  height: 30px;
  padding: 0 9px;
  font-size: 11px;
}

#modalAdminSugerencias .iv-guide-modal-card,
#modalAdminIngeBot .iv-guide-modal-card {
  max-width: 400px;
  padding: 15px 14px;
  gap: 11px;
}

.iv-admin-reply-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #38BDF8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  body.iv-app-body {
    background: #F1F5F9;
    height: 100dvh;
    overflow: hidden;
  }

  .iv-mobile-shell {
    max-width: none;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  body.iv-app-body .prototype-floating-switcher {
    display: none !important;
  }
}

/* === PRODUCCIÓN (02-Código Fuente): Ocultamiento definitivo de barra de laboratorio === */
.prototype-floating-switcher, .proto-floating-switcher, #protoFloatingSwitcher, .real-mobile-workspace, #realMobileWorkspace { display: none !important; }
