:root {
  /* Paleta ECOMMERCE 2026-06-17 — navy #0a2540 + azul Salesforce #0176d3 (de soportereal.com/ecommerce) */
  --primary:        #0176d3;          /* azul acento ecommerce */
  --primary-dark:   #0162b3;          /* hover/active azul más oscuro */
  --primary-glow:   rgba(1, 118, 211, 0.18);   /* halo focus suave */
  --secondary:      #1a8cff;          /* azul claro (gradientes/botón) */
  --bg-body:        #0a2540;          /* navy ecommerce */
  --bg-card:        #ffffff;          /* surface blanco */
  --bg-input:       #ffffff;          /* inputs siempre blancos sobre cualquier fondo */
  --text:           #0f172a;          /* slate-900 negro */
  --text-secondary: #475569;          /* slate-600 */
  --text-muted:     #64748b;          /* slate-500 */
  --text-light:     #94a3b8;          /* slate-400 */
  --border:         #94a3b8;          /* slate-400 — borde SUTIL (regla 2026-05-09e) */
  --border-strong:  #64748b;          /* slate-500 — borde marcado para casos específicos */
  --border-light:   #e2e8f0;          /* slate-200 — separadores tenues */
  --success:        #15803d;          /* verde acción positiva (Continuar/Nuevo) */
  --danger:         #dc2626;          /* rojo destructivo (Eliminar/Salir) */
  --warning:        #d97706;          /* naranja-amber (Editar) */
  --info:           #ea580c;          /* naranja (Refrescar) */
  --hover-bg:       #f1f5f9;          /* slate-100 — hover sutil sobre blanco */

  /* Radius mínimo escalonado (regla 2026-05-09 FLAT moderno) */
  --radius-xs: 3px;                   /* pills chiquitas, sortable indicators */
  --radius-sm: 4px;                   /* botones, inputs, badges */
  --radius:    6px;                   /* cards, modales, mini-fichas */
  --radius-md: 6px;                   /* alias semántico */
  --radius-lg: 8px;                   /* contenedores grandes */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Noto Sans', Roboto, sans-serif;
  background: linear-gradient(170deg, #0a2540 0%, #0176d3 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
}

.wizard {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Sidebar */
.sidebar {
  display: none;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}
.sidebar-header img { height: 40px; filter: brightness(0) invert(1); }
.sidebar-header span { font-size: 1.5rem; font-weight: 700; }

.steps { display: none; }

.btn-home {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
  visibility: hidden;
  opacity: 0;
}
.btn-home:hover {
  background: var(--hover-bg);
  color: var(--primary);
  border-color: var(--primary);
}
.btn-home.visible {
  visibility: visible;
  opacity: 1;
}

.logo-container {
  margin-bottom: 0.5rem;
  text-align: center;
}
.card-dos .logo-container {
  margin-bottom: 0.25rem;
}
.card-dos .logo-ia {
  max-width: 120px;
}
.logo-ia {
  max-width: 200px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.card-top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 1rem;
  padding: 0;
  flex-shrink: 0;
}
.logo-ia.small {
  height: 40px;
}
.card-top-bar.compact {
  margin-bottom: 0.75rem;
  padding: 0.25rem 0;
}
.card-top-bar.compact .btn-home {
  width: 28px;
  height: 28px;
  font-size: 0.9rem;
}
.card-top-bar.compact .spacer {
  width: 28px;
  height: 28px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  position: relative;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.step-item.active, .step-item.done { opacity: 1; }
.step-item.clickable:hover { opacity: 0.8; }

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 52px;
  width: 2px;
  height: calc(100% - 32px);
  background: rgba(255,255,255,0.2);
}
.step-item.done:not(:last-child)::after { background: var(--success); }

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
}
.step-item.active .step-number {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(1,118,211,0.3);
}
.step-item.done .step-number {
  background: var(--success);
  border-color: var(--success);
}
.step-item.done .step-number i { display: block; }
.step-item .step-number i { display: none; }

.step-text h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.25rem; }
.step-text p { font-size: 0.75rem; color: var(--text-light); opacity: 0.7; }
.step-item.done .step-text p, .step-item.active .step-text p { opacity: 1; color: #fff; }

/* Main content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 4rem;
  background: linear-gradient(170deg, #0a2540 0%, #0176d3 100%);
  background-attachment: fixed;
  overflow-y: auto;
  min-height: 100vh;
  min-height: 100dvh;
}
/* Cuando la ayuda está visible, permitir scroll y alinear arriba para que entre */
.main-content:has(.ayuda-sin-correo.show) {
  justify-content: flex-start;
  padding-top: 1.5rem;
}

/* Cards Container */
.cards-container {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  width: 100%;
  max-width: 1000px;
  max-height: 85vh;
  justify-content: center;
  align-items: stretch;
}

/* Card Uno: Paso 1 (Email) */
.card-uno {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  padding: 1.25rem;
  box-shadow: 0 12px 40px rgba(10,37,64,0.30);
  border: none;
  overflow-y: auto;
}

/* Card Accesos: Accesos Rápidos (paso 1) */
.card-accesos {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 12px 40px rgba(10,37,64,0.30);
  border: none;
  overflow: hidden;
  max-width: 480px;
  min-height: 0;
}
.card-accesos .section-list {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

/* Card Dos: Pasos 2, 3, 4 */
.card-dos {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  box-shadow: 0 12px 40px rgba(10,37,64,0.30);
  border: none;
  overflow: hidden;
  max-width: 480px;
  min-height: 0;
}

/* Móvil: tarjetas apiladas */
@media (max-width: 768px) {
  .main-content {
    padding: 0;
    align-items: stretch;
    min-height: 100dvh;
  }
  .cards-container {
    flex-direction: column;
    height: 100dvh;
    max-height: 100dvh;
    gap: 0.75rem;
    padding: 0.75rem;
    justify-content: center;  /* card-uno centrada cuando es la única visible */
  }
  /* Si hay card-accesos visible, card-uno arriba (flex-start) */
  .cards-container:has(.card-accesos:not([style*="display: none"])) {
    justify-content: flex-start;
  }
  .card-uno {
    flex: 0 0 auto;
    max-width: 100%;
    overflow-y: auto;
    padding: 1rem;
  }
  .card-uno .logo-container {
    margin-bottom: 0.5rem;
  }
  .card-uno .logo-ia {
    max-width: 120px;
  }
  .card-uno .content-header {
    margin-bottom: 0.75rem;
  }
  .card-uno .content-header h2 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
  }
  .card-uno .content-header p {
    font-size: 0.8rem;
  }
  .card-uno .form-group {
    margin-bottom: 0.75rem;
  }
  .card-uno .form-label {
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
  }
  .card-uno .input-wrapper input {
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    font-size: 0.9rem;
  }
  .card-uno .btn {
    padding: 0.7rem;
    font-size: 0.9rem;
  }
  .card-accesos {
    flex: 1 1 auto;  /* llena el espacio restante hasta abajo */
    max-width: 100%;
    max-height: none;
    padding: 1rem;
    min-height: 0;
  }
  .card-accesos .logo-container {
    display: none;
  }
  .card-dos {
    max-width: 100%;
    height: 100%;
  }
}

/* Teléfonos muy pequeños: ocultar logo */
@media (max-width: 768px) and (max-height: 580px) {
  .card-uno .logo-container {
    display: none;
  }
}
.bottom-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.section-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-header h3 i { color: var(--primary); margin-right: 0.5rem; }
.section-header .count {
  font-size: 0.75rem;
  background: var(--hover-bg);
  color: var(--text-muted);
  padding: 0.15rem 0.5rem;
  border-radius: 0;
  font-weight: 500;
  margin-left: 0.5rem;
}
.section-list {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.25rem;
}
.section-list .qa-entry {
  border: 1px solid var(--border);
  border-radius: 0;
}

.qa-entry {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}
.qa-entry:hover { background: var(--hover-bg); }
.qa-entry .qa-avatar {
  width: 36px;
  height: 36px;
  border-radius: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.qa-entry .qa-info { flex: 1; min-width: 0; }
.qa-entry .qa-empresa {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qa-entry .qa-usuario {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.qa-remove {
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  color: var(--text-light);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  opacity: 0;
}
.qa-entry:hover .qa-remove { opacity: 1; }
.qa-remove:hover { background: #fee2e2; color: #ef4444; }


.quick-access-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0;
  background: rgba(1, 118, 211, 0.1);
  border: 1px solid rgba(1, 118, 211, 0.3);
}
.quick-access-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}
.quick-access-check label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.content-header {
  text-align: center;
  margin-bottom: 0.5rem;
}
.content-header img { height: 50px; margin-bottom: 0.5rem; }
.content-header h2 { font-size: 1.15rem; color: var(--text); margin-bottom: 0.15rem; }
.content-header p { color: var(--text-muted); font-size: 0.8rem; }

.step-content { display: none; animation: slideIn 0.4s ease; }
.step-content.active { display: block; }


/* Form elements */
.form-group { margin-bottom: 0.6rem; }
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.input-wrapper { position: relative; display: block; }
.input-wrapper i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%) !important;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
  pointer-events: none;
  z-index: 2;
}
.input-wrapper input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: var(--bg-input);
  color: var(--text);
}
.input-wrapper input::placeholder {
  color: var(--text-muted);
}
.input-wrapper input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Buttons */
.btn {
  width: 100%;
  padding: 0.7rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-primary {
  background: var(--primary);
  color: #0E0E0E;
  font-weight: 600;
}
.btn-primary:hover:not(:disabled) {
  box-shadow: 0 10px 20px var(--primary-glow);
  background: var(--primary-dark);
}
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(1, 118, 211, 0.1);
}

/* ===== LISTA COMPACTA ===== */
.compact-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  max-height: 320px;
  overflow-y: auto;
  background: var(--bg-input);
}

.compact-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 0;
  gap: 0.5rem;
  color: var(--text);
  background: var(--bg-input);
}

.compact-item:hover {
  background: var(--hover-bg);
  border-color: var(--primary);
}
.compact-item.selected {
  background: rgba(1, 118, 211, 0.15);
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

/* Resaltado para navegación con control remoto de TV (D-pad ↑/↓/OK).
   Bien grande y visible a distancia: borde grueso + sombra + escala + ítem más alto. */
.compact-item.kb-focus {
  background: rgba(1, 118, 211, 0.22);
  border-color: var(--primary);
  box-shadow: 0 0 0 5px var(--primary), 0 8px 24px rgba(1, 118, 211, 0.45);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  transform: scale(1.04);
  transform-origin: center;
  position: relative;
  z-index: 3;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.compact-item.kb-focus .mini-avatar {
  width: 38px;
  height: 38px;
}
.compact-item.kb-focus .mini-avatar i {
  font-size: 1.25rem;
}
.compact-item.kb-focus .item-name {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.05rem;
}
.compact-item.kb-focus .item-sub {
  display: block;
  font-size: 0.78rem;
}
.compact-item.kb-focus .item-arrow {
  color: var(--primary);
  font-size: 1.1rem;
}

.compact-item .mini-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  overflow: hidden;
}
.compact-item .mini-avatar.gradient {
  background: var(--bg-gradient);
  color: #fff;
}
/* Avatares flat con icono */
.compact-item .mini-avatar.avatar-empresa {
  background: #0176d3;
  color: #fff;
}
.compact-item .mini-avatar.avatar-usuario {
  background: #10b981;
  color: #fff;
}
.compact-item .mini-avatar i {
  font-size: 0.95rem;
  line-height: 1;
}
.compact-item .mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.compact-item .item-info {
  flex: 1;
  min-width: 0;
}
.compact-item .item-name {
  font-weight: 500;
  color: var(--text);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.compact-item .item-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  display: none;
}

.compact-item .item-arrow {
  color: var(--text-light);
  font-size: 0.75rem;
}
.compact-item:hover .item-arrow {
  color: var(--primary);
}

/* Counter badge */
.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.list-header .label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.list-header .count {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--hover-bg);
  padding: 0.25rem 0.5rem;
  border-radius: 0;
}

/* Search */
.search-box {
  position: relative;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}
.search-box i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%) !important;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
  pointer-events: none;
  z-index: 2;
}
.search-box input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}
.search-box input:focus {
  outline: none;
  border-color: var(--primary);
}

/* User info card */
.user-info {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.user-info .avatar {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
}
.user-info .details h4 { font-weight: 600; font-size: 0.85rem; }
.user-info .details p { opacity: 0.8; font-size: 0.75rem; }
.btn-row {
  display: flex;
  gap: 0.75rem;
}
.btn-row .btn {
  flex: 1;
}
.btn-row .btn-outline {
  flex: 0 0 auto;
  width: auto;
  padding: 0.7rem 1rem;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.divider span { padding: 0 1rem; }

/* Alert */
.alert {
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}
.alert.show { display: flex; }
.alert-warning { background: #fef3c7; color: #92400e; }

/* Ayuda sin correo registrado — card independiente debajo del login
   (solo se muestra después del 2do intento fallido de contraseña) */
.ayuda-sin-correo {
  display: none;
  width: 100%;
  max-width: 480px;
  margin: 1rem auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid #0176d3;
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  color: #0a2540;
  font-size: 0.82rem;
  line-height: 1.45;
}
.ayuda-sin-correo.show { display: block; }
.ayuda-sin-correo-titulo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.55rem;
  color: #0176d3;
}
.ayuda-sin-correo-titulo i { font-size: 1.05rem; }
.ayuda-sin-correo-texto {
  margin: 0 0 0.5rem 0;
  color: #0a2540;
}
.ayuda-sin-correo-texto strong { color: #0a2540; }
.ayuda-sin-correo-nota {
  margin: 0.65rem 0 0 0;
  padding: 0.6rem 0.75rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 3px solid #dc2626;
  border-radius: var(--radius-sm);
  color: #7f1d1d;
  font-size: 0.78rem;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}
.ayuda-sin-correo-nota i {
  color: #dc2626;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.ayuda-sin-correo-nota strong { color: #450a0a; }
.ayuda-sin-correo-nota--info {
  background: #fffbeb;
  border-color: #fde68a;
  border-left-color: #d97706;
  color: #78350f;
}
.ayuda-sin-correo-nota--info i { color: #d97706; }
.ayuda-sin-correo-nota--info strong { color: #451a03; }
@media (max-width: 768px) {
  .ayuda-sin-correo {
    margin-top: 0.75rem;
    padding: 0.85rem 0.95rem;
    font-size: 0.78rem;
  }
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Mobile */
@media (max-width: 768px) {
  .wizard { flex-direction: column; }
  .main-content { padding: 1rem; }
  .content-card { padding: 1.25rem; }
  .content-header img { height: 50px; }
  .content-header h2 { font-size: 1.25rem; }
  .cards-container {
    flex-direction: column;
    gap: 1rem;
    max-height: calc(100dvh - 2rem);
    max-width: 100%;
  }
  .cards-container .content-card {
    flex: 1;
    justify-content: center;
    max-width: 100%;
  }
  .cards-container .bottom-card {
    flex: 1;
    max-width: 100%;
    min-height: 0;
    overflow: hidden;
  }
  .quick-access-card { padding: 1rem; }
  .qa-remove { opacity: 1; }
}

.hidden { display: none !important; }

/* Campo de contraseña disfrazado (evita que el navegador lo detecte) */
.password-field {
  -webkit-text-security: disc !important;
  text-security: disc !important;
  font-family: 'Noto Sans', Arial, 'Liberation Sans', Helvetica, sans-serif;
}
@font-face {
  font-family: 'password';
  src: url('data:font/woff2;base64,d09GMgABAAAAAADcAAoAAAAAAggAAACWAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgkIKGAsGAAE2AiQDCAsGAAQgBYRtBy4b8gXIHge5KfNRkpRk+n4k+N5//+1z730BELhIIsAhQWZrrmgKBZnP//ff/vfaO8B/9v4N/N0FC2IFC1YMlAHl+vz/OufrS+9a8KOPdn6rktMjWNi4EVBRQQeADDaH6Hd6BKKJR0HAAwA=') format('woff2');
}

/* Modal de confirmación sesión activa */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}
.modal-box {
  background: #fff;
  border-radius: 18px;
  width: 92%;
  max-width: 410px;
  padding: 26px 26px 22px;
  box-shadow: 0 30px 80px rgba(0, 18, 60, 0.45);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: transform .3s cubic-bezier(.16,1,.3,1), opacity .3s ease;
}
.modal-overlay.show .modal-box {
  opacity: 1;
  transform: none;
}
.modal-icon {
  width: 62px;
  height: 62px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.38);
}
.modal-icon i {
  font-size: 1.7rem;
  color: #fff;
}
.modal-icon.danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 8px 22px rgba(239, 68, 68, 0.38);
}
.modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  color: var(--bg-body, #0a2540);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.modal-message {
  text-align: center;
  color: var(--text-muted, #64748b);
  font-size: 0.9rem;
  margin-bottom: 18px;
  line-height: 1.5;
}
.modal-session-info {
  background: #f4f7fb;
  border: 1px solid #e6edf5;
  border-radius: 12px;
  padding: 2px 14px;
  margin-bottom: 18px;
}
.modal-session-info .info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #e6edf5;
}
.modal-session-info .info-row:last-child {
  border-bottom: none;
}
.modal-session-info .info-label {
  color: var(--text-muted, #64748b);
  font-size: 0.8rem;
  font-weight: 500;
  flex: 0 0 auto;
}
.modal-session-info .info-value {
  font-weight: 600;
  color: var(--text, #0f172a);
  font-size: 0.82rem;
  text-align: right;
  word-break: break-word;
}
.modal-buttons {
  display: flex;
  gap: 10px;
}
.modal-buttons .btn {
  flex: 1;
  padding: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 10px;
}
.btn-danger {
  background: #ef4444;
  color: #fff;
}
.btn-danger:hover {
  background: #dc2626;
}
.btn-warning {
  background: #f59e0b;
  color: #fff;
}
.btn-warning:hover {
  background: #d97706;
}

.empty-msg {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
}

/* Toast notification */
.toast-notification {
  position: fixed;
  top: 1rem;
  left: 50%;
  background: #fee2e2;
  color: #991b1b;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  display: flex;
  a  Líneas eliminadas: 43
lign-items: center;
  gap: 0.75rem;
  z-index: 9999;
  max-width: 90%;
}
.toast-notification i { font-size: 1.25rem; }
.toast-notification.hide { animation: toastOut 0.3s ease forwards; }

/* Tipos de toast */
.toast-notification.toast-error {
  background: #fee2e2;
  color: #991b1b;
}
.toast-notification.toast-success {
  background: #d1fae5;
  color: #065f46;
}
.toast-notification.toast-info {
  background: #dbeafe;
  color: #1e40af;
}
.toast-notification.toast-warning {
  background: #fef3c7;
  color: #92400e;
}

.last-email-hint {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.last-email-hint a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.last-email-hint a:hover {
  text-decoration: underline;
}

/* =====================================================================
   2026-05-08 — Modo "sin GPU" (login)
   Anula animaciones, transforms y filters que fuerzan capas en GPU.
   ===================================================================== */
*, *::before, *::after {
    animation: none !important;
    transform: none !important;
}
/* Permitir spin del loading (spinner SVG/canvas no carga GPU igual) */
.spinner, .loader-spin, .login-loader { animation: spin 1.2s linear infinite !important; }

/* ===========================================================================
   2026-05-08 — FLAT — Overrides locales del Login (oficial)
   Compacto, FLAT plano, alto contraste, sin GPU.
   =========================================================================== */
:root {
    --fp-flat-body:          linear-gradient(180deg, #0c2d52 0%, #0a2540 100%); /* navy ecommerce */
    --fp-flat-surface:       #ffffff;
    --fp-flat-surface-alt:   #eef2f7;  /* azul-gris muy claro */
    --fp-flat-border:        #94a3b8;
    --fp-flat-border-strong: #64748b;
    --fp-flat-text:          #000000;
    --fp-flat-text-muted:    #1e293b;
    --fp-flat-text-soft:     #475569;
    --fp-flat-titulo-bg:     #0a2540;  /* navy ecommerce (headers/banners) */
    --fp-flat-input-focus:   #0176d3;  /* azul acento ecommerce */
    --fp-flat-accent:        #0176d3;  /* azul acento ecommerce */
}

/* Body con fondo degradado lavanda Helium */
html, body {
    background: var(--fp-flat-body) !important;
    background-attachment: fixed !important;
    font-family: 'Inter', 'Noto Sans', Arial, 'Liberation Sans', Helvetica, sans-serif !important;
}

/* Card del login: blanca con borde fino y sombra única */
.login-container, .login-card, .login-box, .card-top-bar, .container {
    background: var(--fp-flat-surface) !important;
    background-image: none !important;
    border: 1px solid var(--fp-flat-border) !important;
    border-radius: 0 !important;
    box-shadow: 0 4px 12px rgba(15,23,42,0.10) !important;
}

/* Headers azules del login (banner de listas + sidebar) — azul cobalto sólido.
   ⚠ NO incluir .content-header aquí — content-header es el texto "Bienvenido /
   Ingresa el correo..." dentro de la card blanca, debe quedar transparente con
   texto negro (regla 2026-05-10 fix). */
.section-header, .sidebar-header {
    background: var(--fp-flat-titulo-bg) !important;
    background-image: none !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: var(--radius-md) !important;       /* 6px — antes era 0 */
    box-shadow: none !important;
}
.section-header *, .sidebar-header * { color: #ffffff !important; }

/* .content-header — mini-ficha AZUL marino pro dentro de la card blanca,
   con radius y texto blanco. Es la sub-ficha de bienvenida del wizard. */
.content-header {
    background: var(--primary) !important;            /* azul acento ecommerce #0176d3 */
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: var(--radius-md) !important;       /* 6px */
    box-shadow: none !important;
    padding: 14px 18px !important;
    margin-bottom: 1rem !important;
    text-align: center;
}

/* User-info (step 4) — mini-ficha AZUL marino pro con avatar circular y texto blanco.
   Mismo lenguaje visual que .content-header (regla 2026-05-10). */
.user-info {
    background: var(--primary) !important;            /* azul marino pro */
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: var(--radius-md) !important;       /* 6px */
    color: #ffffff !important;
    padding: 10px 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
}
.user-info .avatar {
    width: 36px !important;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.40) !important;
    border-radius: 50% !important;                    /* círculo del avatar */
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}
.user-info .details h4,
.user-info h4 {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
}
.user-info .details p,
.user-info p {
    color: rgba(255, 255, 255, 0.90) !important;
    font-weight: 500 !important;
    font-size: 0.78rem !important;
    margin: 0 !important;
}

/* Link "¿Olvidaste tu contraseña?" — anula el cyan IA inline del HTML */
#linkOlvideClave {
    color: var(--primary) !important;                 /* azul corporativo */
    font-weight: 600 !important;
    text-decoration: none !important;
}
#linkOlvideClave:hover {
    color: var(--primary-dark) !important;
    text-decoration: underline !important;
}

/* Alerts (warning amarillo + error rojo) — radius md + border sutil */
.alert {
    border-radius: var(--radius-md) !important;       /* 6px */
    padding: 8px 12px !important;
    /* OJO: NO forzar display aquí. Los carteles se ocultan con `.alert { display:none }`
       (arriba) y solo se muestran al agregar la clase `.show` vía JS. Un
       `display: flex !important` acá los dejaba SIEMPRE visibles (bug carteles fantasma). */
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.85rem !important;
}
/* Reforzar el toggle de visibilidad por si otra regla intenta pisarlo */
.alert { display: none !important; }
.alert.show { display: flex !important; }
.alert-warning {
    background: #fef3c7 !important;
    color: #92400e !important;
    border: 1px solid #fde68a !important;
}
.alert-error {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca !important;
}

/* btn-row: gap entre Volver e Ingresar */
.btn-row {
    display: flex !important;
    gap: 10px !important;
    margin-top: 8px !important;
}

/* Inputs — bordes finos, focus halo discreto */
input[type="text"], input[type="number"], input[type="email"],
input[type="password"], input[type="search"], select, textarea,
.input-wrapper input, .search-box input {
    background: var(--fp-flat-surface) !important;
    border: 1px solid var(--fp-flat-border) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--fp-flat-text) !important;
    padding: 8px 10px !important;
    font-size: 14px !important;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--fp-flat-input-focus) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(1,118,211,0.15) !important;
}
.input-wrapper, .search-box {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
/* Restaurar padding izquierdo en inputs con icono — el override flat de arriba
   los aplastó a 10px y el icono quedaba atravesando el texto */
.input-wrapper input,
.search-box input {
    padding-left: 2.5rem !important;
}

/* Botones de acción (Iniciar / Continuar) — azul plano sin gradient */
button, .btn, .btn-primary, .btn-login, .btn-submit, button[type="submit"] {
    background-image: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: background-color 0.10s !important;
    animation: none !important;
}
button[type="submit"], .btn-primary, .btn-login, .btn-submit {
    background: var(--fp-flat-titulo-bg) !important;
    color: #ffffff !important;
    border: 1px solid var(--fp-flat-titulo-bg) !important;
}
button[type="submit"]:hover, .btn-primary:hover, .btn-login:hover, .btn-submit:hover {
    background: var(--fp-flat-input-focus) !important;
    border-color: var(--fp-flat-input-focus) !important;
    transform: none !important;
    filter: none !important;
}

/* Steps wizard (4 pasos del login) — sin gradient */
.step-item {
    background-image: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: background-color 0.10s, color 0.10s !important;
}
.step-item.active {
    background: var(--fp-flat-titulo-bg) !important;
    color: #ffffff !important;
}

/* Lista compacta (compact-item) */
.compact-item {
    background: var(--fp-flat-surface) !important;
    border: 1px solid var(--fp-flat-border) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 6px 10px !important;
    transition: background-color 0.10s !important;
}
.compact-item:hover {
    background: var(--fp-flat-surface-alt) !important;
    transform: none !important;
}

/* Quick access check (recordar usuario, etc.) */
.quick-access-check {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Toast / alerts — bordes finos, sin sombra excesiva */
.toast-notification, .alert {
    border-radius: 0 !important;
    box-shadow: 0 2px 6px rgba(15,23,42,0.15) !important;
    border: 1px solid var(--fp-flat-border) !important;
}

/* Modal overlays */
.modal-overlay { background: rgba(15,23,42,0.55) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

/* Sin GPU global */
* {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    will-change: auto !important;
}
.compact-item, .step-item, .btn, button, .input-wrapper {
    transform: none !important;
    filter: none !important;
}

/* Spinners conservados */
.spinner, .loader, .login-loader, .bi-arrow-repeat.rotating {
    animation: spin 1.2s linear infinite !important;
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Etiquetas color negro */
label, [class*="-label"], [class$="label"] { color: #000 !important; }

/* Compactar */
.section-header, .content-header { padding: 6px 12px !important; min-height: 36px !important; }
.compact-item { font-size: 13px !important; }
.step-item { padding: 6px 10px !important; }

/* ===========================================================================
   2026-05-08 (b) — Fix badge .count en headers azules
   El `.count` tenía bg #f0f9ff con texto gris — sobre el header azul el
   contraste era pésimo. Lo paso a pill blanco con texto azul cobalto.
   =========================================================================== */
.section-header .count,
.list-header .count {
    background: #ffffff !important;
    color: #0a2540 !important;
    font-weight: 800 !important;
    border: 1px solid rgba(255,255,255,0.40);
    padding: 1px 8px !important;
    border-radius: 999px !important;
    line-height: 1.4;
}

/* =====================================================================
   2026-05-10 — FLAT moderno aplicado al login (regla formato-reportes.md)
   - Radius mínimo escalonado en cards, botones, inputs
   - Inputs con borde sutil slate-400 + halo focus azul corporativo
   - Botones cara blanca + color por función (verde Continuar / azul Login /
     rojo Salir/Cancelar) — mismo lenguaje que botones del título de reportes
   - Sin GPU: el bloque de neutralización ya está más arriba (línea ~1046)
   ===================================================================== */

/* Cards principales — fondo BLANCO con radius lg + sombra flat */
.card-uno,
.card-accesos,
.card-dos {
    background: #ffffff !important;
    border-radius: var(--radius-lg) !important;       /* 8px */
    border: 1px solid var(--border-light) !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.20) !important;
    color: var(--text) !important;
}

/* Inputs y selects — borde SUTIL + radius md (más visible que sm en el wizard) */
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="search"], input[type="tel"],
select, textarea {
    border: 1px solid var(--border) !important;       /* slate-400 #94a3b8 — sutil */
    border-radius: var(--radius-md) !important;       /* 6px — visible en login wizard */
    background: #ffffff !important;
    color: var(--text) !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
}
input:focus, select:focus, textarea:focus {
    outline: none !important;
    border-color: var(--primary) !important;          /* azul corporativo en focus */
    box-shadow: 0 0 0 3px var(--primary-glow) !important;
}
input::placeholder { color: var(--text-light) !important; }

/* Search box dentro de las cards (paso 2 / 3) */
.search-box input {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
}

/* Botones base — cara blanca + radius md (más visible que sm en el wizard) */
.btn {
    border-radius: var(--radius-md) !important;       /* 6px */
    font-weight: 600 !important;
    text-transform: none !important;                   /* "Continuar", no "CONTINUAR" */
    letter-spacing: 0.2px !important;
    transition: background 0.15s, color 0.15s, border-color 0.15s !important;
}

/* .btn-primary — verde acción (Continuar / Email / Login es la acción positiva del wizard) */
.btn-primary {
    background: #ffffff !important;
    border: 1px solid var(--success) !important;
    color: var(--success) !important;
}
.btn-primary:hover:not(:disabled) {
    background: var(--success) !important;
    border-color: var(--success) !important;
    color: #ffffff !important;
}
.btn-primary:disabled {
    background: #ffffff !important;
    border-color: var(--border) !important;
    color: var(--text-light) !important;
    opacity: 0.6;
}

/* .btn-outline — gris/azul para acciones secundarias (Atrás, Cancelar) */
.btn-outline {
    background: #ffffff !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
}
.btn-outline:hover {
    background: var(--hover-bg) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

/* .btn-danger — rojo destructivo (Forzar conflicto, Salir) */
.btn-danger {
    background: #ffffff !important;
    border: 1px solid var(--danger) !important;
    color: var(--danger) !important;
}
.btn-danger:hover {
    background: var(--danger) !important;
    border-color: var(--danger) !important;
    color: #ffffff !important;
}

/* .btn-home (botón "Inicio/Casa") — DENTRO de .section-header (bg azul).
   Estilo translúcido blanco sobre azul, hover invierte a blanco sólido.
   Mayor especificidad para vencer `.section-header * { color: #fff !important }`. */
.section-header .btn-home,
.card-top-bar .btn-home,
.btn-home {
    border-radius: var(--radius-sm) !important;       /* 4px */
    border: 1px solid rgba(255, 255, 255, 0.40) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    width: 28px !important;
    height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.15s, border-color 0.15s, color 0.15s !important;
}
.section-header .btn-home i,
.card-top-bar .btn-home i,
.btn-home i {
    color: #ffffff !important;
    font-size: 14px !important;
}
.section-header .btn-home:hover,
.card-top-bar .btn-home:hover,
.btn-home:hover {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: var(--primary) !important;
}
.section-header .btn-home:hover i,
.card-top-bar .btn-home:hover i,
.btn-home:hover i {
    color: var(--primary) !important;
}

/* Items de lista (empresas, usuarios, accesos rápidos) — clases reales del JS */
.list-item,
.empresa-item,
.usuario-item,
.acceso-item,
.qa-entry,
.compact-item,
.empresa-row,
.usuario-row {
    border-radius: var(--radius-md) !important;       /* 6px — visible */
    border: 1px solid var(--border-light) !important;
    background: #ffffff !important;
    transition: background 0.15s, border-color 0.15s !important;
    margin-bottom: 6px;
}
.list-item:hover,
.empresa-item:hover,
.usuario-item:hover,
.acceso-item:hover,
.qa-entry:hover,
.compact-item:hover,
.empresa-row:hover,
.usuario-row:hover {
    background: var(--hover-bg) !important;
    border-color: var(--primary) !important;
}
.list-item.selected,
.empresa-item.selected,
.usuario-item.selected,
.acceso-item.selected,
.qa-entry.selected,
.compact-item.selected,
.empresa-row.selected,
.usuario-row.selected {
    background: var(--primary-glow) !important;
    border-color: var(--primary) !important;
}

/* Avatar circular dentro de qa-entry / empresa-row */
.qa-avatar,
.empresa-avatar,
.usuario-avatar {
    border-radius: 50% !important;
    background: var(--primary) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Botón eliminar (x) dentro del qa-entry */
.qa-remove {
    border-radius: var(--radius-sm) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    color: var(--text-light) !important;
}
.qa-remove:hover {
    background: var(--danger) !important;
    border-color: var(--danger) !important;
    color: #ffffff !important;
}

/* Badges/pills genéricos — radius sm o pill 999 según contenido */
.badge, .tag, .chip {
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
}

/* Cuerpo del login — degradado lavanda Helium */
body {
    background: var(--fp-flat-body) !important;
    background-attachment: fixed !important;
}

/* Modales — radius md (6px) */
.modal-content {
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border-light) !important;
}

/* Toast notifications — radius sm */
.toast-notification {
    border-radius: var(--radius-sm) !important;
    border: 1px solid var(--border-light) !important;
}

/* Texto DENTRO de la mini-ficha azul .content-header: blanco */
.content-header h2 {
    color: #ffffff !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px;
}
.content-header h3,
.content-header h4 {
    color: #ffffff !important;
    font-weight: 600 !important;
}
.content-header p {
    color: rgba(255, 255, 255, 0.90) !important;
    font-weight: 500 !important;
}

/* Texto FUERA del content-header (en la card blanca): negro / slate-600 */
.form-label {
    color: var(--text) !important;
    font-weight: 600 !important;
}
.text-secondary {
    color: var(--text-secondary) !important;
}
a {
    color: var(--primary) !important;                  /* azul corporativo */
}
a:hover {
    color: var(--primary-dark) !important;
}

/* Quitar cualquier glow cyan residual */
.input-wrapper i,
.input-wrapper .icon,
.form-icon {
    color: var(--text-muted) !important;               /* gris medio, no cyan */
}
input:focus ~ i,
.input-wrapper:focus-within i {
    color: var(--primary) !important;                  /* azul corporativo en focus */
}

/* Quitar hover lift translateY (sin GPU) en cards y botones */
.card-uno:hover,
.card-accesos:hover,
.card-dos:hover,
.list-item:hover,
.btn:hover {
    transform: none !important;
}

/* =====================================================================
   2026-05-10 — Header del login: banner azul marino con logo en ficha blanca
   El .logo-container es el "header" del wizard. Va con bg azul marino pro y
   el logo dentro de una mini-ficha blanca con borde fino negro (frame).
   Selectores con mayor especificidad para vencer cualquier override previo.
   ===================================================================== */
.card-uno .logo-container,
.card-accesos .logo-container,
.card-dos .logo-container,
div.logo-container,
.logo-container {
    background: #ffffff !important;                   /* fondo BLANCO (regla 2026-05-10b) */
    border-radius: 6px !important;
    padding: 14px !important;
    margin-bottom: 12px !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #e2e8f0 !important;              /* borde gris claro (slate-200) */
}

/* Logo image — el container ya es blanco con borde; el img va sin frame */
.card-uno .logo-ia,
.card-uno .logo-container img,
.card-accesos .logo-ia,
.card-accesos .logo-container img,
.card-dos .logo-ia,
.card-dos .logo-container img,
.logo-ia,
.logo-container img {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
    max-width: 200px !important;
    height: auto !important;
}

/* Variante pequeña del logo (pasos 2,3,4) — mantiene la ficha blanca */
.logo-ia.small,
.card-top-bar .logo-ia,
.card-dos .logo-ia {
    padding: 4px 10px !important;
    max-width: 140px !important;
}
