/* === Modal: Nuevo bot === */
#newBotModal {
  transition: opacity 0.2s ease;
}
#newBotModal.hidden {
  opacity: 0;
  pointer-events: none;
}
#newBotModal .modal-panel {
  background: radial-gradient(circle at top right, rgba(226, 232, 240, 0.28), transparent 45%),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 35px 60px -25px rgba(15, 23, 42, 0.28);
  position: relative;
  overflow: hidden;
}
#newBotModal .modal-accent {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 40%),
    radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.08), transparent 55%);
  pointer-events: none;
  opacity: 0.9;
}
#newBotModal .modal-header {
  position: relative;
  z-index: 1;
}
#newBotModal .modal-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #232323;
  color: #f8fafc;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
}
#newBotModal h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
}
#newBotModal p {
  color: #64748b;
}
#newBotModal .modal-input {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.85);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#newBotModal .modal-input:focus {
  border-color: rgba(17, 24, 39, 0.6);
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.12);
}
#newBotModal .modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
#newBotModal .modal-preview {
  border-radius: 14px;
  border: 1px dashed rgba(148, 163, 184, 0.5);
  background: rgba(248, 250, 252, 0.9);
  color: #1f2937;
  font-size: 0.85rem;
}
#newBotModal .modal-preview span {
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: 0.01em;
}
#newBotModal .modal-options {
  display: grid;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}
#newBotModal .modal-option-card {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.88));
  box-shadow: 0 14px 28px -18px rgba(15, 23, 42, 0.25);
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
#newBotModal .modal-option-card:hover {
  border-color: rgba(15, 23, 42, 0.35);
  box-shadow: 0 18px 34px -20px rgba(15, 23, 42, 0.28);
}
#newBotModal .modal-option-card.active {
  border-color: rgba(17, 24, 39, 0.75);
  box-shadow: 0 20px 38px -18px rgba(17, 24, 39, 0.32);
  background: #232323;
  transform: translateY(-2px);
}
#newBotModal .modal-option-card.active .modal-option-title,
#newBotModal .modal-option-card.active .modal-option-description {
  color: rgba(248, 250, 252, 0.95);
}
#newBotModal .modal-option-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #232323;
  color: rgba(248, 250, 252, 0.95);
  box-shadow: 0 10px 24px rgba(30, 64, 175, 0.25);
}
#newBotModal .modal-option-card.active .modal-option-icon {
  background: linear-gradient(145deg, rgba(248, 250, 252, 0.95), rgba(226, 232, 240, 0.95));
  color: #111827;
  box-shadow: 0 12px 28px rgba(248, 250, 252, 0.25);
}
#newBotModal .modal-option-content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
#newBotModal .modal-option-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}
#newBotModal .modal-option-description {
  font-size: 0.8rem;
  color: #64748b;
}
#newBotModal .modal-option-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
#newBotModal .modal-actions button {
  border-radius: 12px;
  font-weight: 500;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
#newBotModal .modal-actions button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
#newBotModal .modal-actions button:active {
  transform: translateY(1px);
}
#newBotModal .modal-actions .modal-secondary {
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #0f172a;
  background: rgba(255, 255, 255, 0.95);
}
#newBotModal .modal-actions .modal-secondary:hover {
  background: rgba(226, 232, 240, 0.5);
}
#newBotModal .modal-actions .modal-primary {
  background: #232323;
  color: #f8fafc;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.18);
}
#newBotModal .modal-actions .modal-primary:hover {
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.2);
}
#newBotModal .modal-error {
  color: #dc2626;
  font-size: 0.85rem;
}
#newBotModal .modal-footer-note {
  font-size: 0.75rem;
  color: #94a3b8;
}
#newBotModal .modal-gradient-bar {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.65), rgba(37, 99, 235, 0.65), rgba(15, 118, 110, 0.6));
}
/* === Modal: Auto response type === */
#autoResponseTypeModal {
  transition: opacity 0.25s ease;
}
#autoResponseTypeModal.hidden {
  opacity: 0;
  pointer-events: none;
}
#autoResponseTypeModal .type-modal-panel {
  background: radial-gradient(circle at top right, rgba(226, 232, 240, 0.25), transparent 40%),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 35px 60px -25px rgba(15, 23, 42, 0.28);
  position: relative;
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
}
#autoResponseTypeModal.show .type-modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}
#autoResponseTypeModal .type-modal-accent {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 38%),
    radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.08), transparent 52%);
  pointer-events: none;
  opacity: 0.9;
}
#autoResponseTypeModal .type-modal-header {
  position: relative;
  z-index: 1;
}
#autoResponseTypeModal .type-option-card {
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 15px 30px -18px rgba(15, 23, 42, 0.32);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
#autoResponseTypeModal .type-option-card:hover {
  border-color: rgba(17, 24, 39, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -22px rgba(15, 23, 42, 0.4);
}
#autoResponseTypeModal .type-option-card.active {
  border-color: #111827;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 18px 42px -20px rgba(15, 23, 42, 0.6);
}
#autoResponseTypeModal .type-option-card.active .type-option-description {
  color: rgba(255, 255, 255, 0.85);
}
#autoResponseTypeModal .type-option-icon {
  width: 80px;
  height: 80px;
  border-radius: 22px; /* opcional, para mantener proporción */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
}
#autoResponseTypeModal .type-option-card.active .type-option-icon {
  background: rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  box-shadow: none;
}
#autoResponseTypeModal .type-option-description {
  color: #6b7280;
}
#autoResponseTypeModal .type-modal-actions button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
#autoResponseTypeModal .type-modal-actions .modal-secondary {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: #fff;
  color: #111827;
  box-shadow: 0 10px 20px -14px rgba(15, 23, 42, 0.3);
}
#autoResponseTypeModal .type-modal-actions .modal-secondary:hover {
  border-color: rgba(17, 24, 39, 0.5);
}
#autoResponseTypeModal .type-modal-actions .modal-primary {
  border-radius: 12px;
  background: #111827;
  color: #fff;
  box-shadow: 0 14px 30px -16px rgba(17, 24, 39, 0.6);
}
#autoResponseTypeModal .type-modal-actions .modal-primary:hover {
  box-shadow: 0 16px 34px -18px rgba(17, 24, 39, 0.7);
}
