/* ============================================
   TOUR GUIADO - SHEPHERD.JS PERSONALIZADO
   ============================================ */

/* Overlay con opacidad más oscura */
.shepherd-modal-overlay-container {
  background: rgba(0, 0, 0, 0.60) !important;
  backdrop-filter: blur(3px) !important;
  -webkit-backdrop-filter: blur(3px) !important;
  animation: fadeIn 0.3s ease-in-out;
}

/* Forzar fondo oscuro en el overlay interno */
.shepherd-modal-overlay-container.shepherd-modal-is-visible {
  background: rgba(0, 0, 0, 0.60) !important;
  opacity: 1 !important;
}

/* Asegurar que el elemento SVG del overlay también sea oscuro */
.shepherd-modal-overlay-container svg,
.shepherd-modal-overlay-container path {
  fill: rgba(0, 0, 0, 0.60) !important;
}

/* Resaltar el elemento objetivo con un borde brillante */
.shepherd-target {
  position: relative;
  z-index: 9999 !important;
}

.shepherd-target::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 3px solid #667eea;
  border-radius: 12px;
  pointer-events: none;
  animation: pulseGlow 2s ease-in-out infinite;
  z-index: 10000;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.6),
                0 0 30px rgba(102, 126, 234, 0.4),
                0 0 45px rgba(102, 126, 234, 0.2);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 25px rgba(102, 126, 234, 0.8),
                0 0 50px rgba(102, 126, 234, 0.6),
                0 0 75px rgba(102, 126, 234, 0.4);
    opacity: 0.9;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Contenedor principal del tour - minimalista y compacto */
.shepherd-element {
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0,0,0,0.06);
  animation: slideIn 0.25s ease;
  background: #ffffff;
  overflow: hidden;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Ocultar header completamente */
.shepherd-header {
  display: none !important;
}

/* Botón de cerrar */
.shepherd-cancel-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
  z-index: 10;
}

.shepherd-cancel-icon:hover {
  background: #f3f4f6;
}

.shepherd-cancel-icon svg {
  width: 14px;
  height: 14px;
  stroke: #9ca3af;
  stroke-width: 2;
}

/* Contenido del tour - compacto */
.shepherd-text {
  padding: 20px 20px 16px 20px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #1a1d2e;
  background: #ffffff;
  position: relative;
}

/* Título */
.shepherd-text h3 {
  font-size: 15px;
  font-weight: 600;
  color: #0a0a0a;
  margin: 0 0 10px 0;
  padding-right: 32px;
}

.shepherd-text p {
  margin: 0 0 14px 0;
}

.shepherd-text p:last-child {
  margin-bottom: 0;
}

.shepherd-text strong {
  color: #667eea;
  font-weight: 600;
}

.shepherd-text ul {
  margin: 14px 0;
  padding-left: 20px;
  list-style: none;
}

.shepherd-text li {
  margin: 10px 0;
  color: #4a5568;
  padding-left: 6px;
  position: relative;
}

.shepherd-text li::before {
  content: "•";
  color: #667eea;
  font-weight: bold;
  font-size: 18px;
  position: absolute;
  left: -14px;
}

.shepherd-text ol {
  margin: 14px 0;
  padding-left: 24px;
  counter-reset: item;
  list-style: none;
}

.shepherd-text ol li {
  counter-increment: item;
  padding-left: 8px;
}

.shepherd-text ol li::before {
  content: counter(item) ".";
  color: #667eea;
  font-weight: 700;
  font-size: 16px;
  position: absolute;
  left: -24px;
}

/* Resaltar características importantes - SOLO COLORES SÓLIDOS */
.tour-highlight {
  background: rgba(148, 163, 184, 0.12);
  padding: 16px 18px;
  border-radius: 10px;
  margin: 16px 0;
}

.tour-tip {
  background: rgba(148, 163, 184, 0.1);
  padding: 16px 18px;
  border-radius: 10px;
  margin: 16px 0;
}

.tour-warning {
  background: rgba(148, 163, 184, 0.15);
  padding: 16px 18px;
  border-radius: 10px;
  margin: 16px 0;
}

/* Footer con botones - compacto */
.shepherd-footer {
  padding: 12px 20px 16px 20px;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* Progreso del tour - más sutil */
.shepherd-progress {
  font-size: 13px;
  color: #9ca3af;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Botones - sólidos y compactos */
.shepherd-button {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.shepherd-button-primary {
  background: #111827;
  color: #ffffff;
}

.shepherd-button-primary:hover {
  background: #1f2937;
}

.shepherd-button-primary:active {
  background: #0a0a0a;
}

.shepherd-button-secondary {
  background: transparent;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.shepherd-button-secondary:hover {
  background: #f9fafb;
  color: #111827;
  border-color: #d1d5db;
}

/* Flecha del tooltip */
.shepherd-arrow {
  display: none; /* Ocultar para diseño más limpio */
}

/* Elemento resaltado - más sutil y elegante */
.shepherd-target-highlight {
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3),
              0 0 0 6px rgba(102, 126, 234, 0.15),
              0 0 30px rgba(102, 126, 234, 0.2);
  border-radius: 12px;
  transition: all 0.4s ease;
}

/* Botón de tour en header - plano y minimalista */
.btn-tour {
  background: transparent !important;
  color: var(--text-secondary) !important;
  border: none !important;
  transition: all 0.15s ease !important;
}

.btn-tour:hover {
  background: var(--bg-hover) !important;
  color: var(--text-primary) !important;
  transform: none !important;
  box-shadow: none !important;
}

.btn-tour:active {
  transform: none !important;
}

.btn-tour svg {
  stroke: currentColor !important;
}

/* Modo oscuro */
[data-theme="dark"] .shepherd-element {
  background: #141414;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,255,255,0.06);
}

[data-theme="dark"] .shepherd-text {
  background: #141414;
  color: #e5e7eb;
}

[data-theme="dark"] .shepherd-text h3 {
  color: #f5f5f5;
}

[data-theme="dark"] .shepherd-text li {
  color: #9ca3af;
}

[data-theme="dark"] .shepherd-footer {
  background: #141414;
  border-top-color: #2a2a2a;
}

[data-theme="dark"] .shepherd-button-primary {
  background: #f5f5f5;
  color: #0a0a0a;
}

[data-theme="dark"] .shepherd-button-primary:hover {
  background: #e5e7eb;
}

[data-theme="dark"] .shepherd-button-secondary {
  color: #9ca3af;
  border-color: #2a2a2a;
}

[data-theme="dark"] .shepherd-button-secondary:hover {
  background: #1f1f1f;
  color: #f5f5f5;
  border-color: #3a3a3a;
}

[data-theme="dark"] .shepherd-cancel-icon:hover {
  background: #1f1f1f;
}

[data-theme="dark"] .shepherd-cancel-icon svg {
  stroke: #6b7280;
}

[data-theme="dark"] .shepherd-progress {
  color: #6b7280;
}

[data-theme="dark"] .tour-highlight,
[data-theme="dark"] .tour-tip,
[data-theme="dark"] .tour-warning {
  background: rgba(255,255,255,0.04);
}

/* Responsivo */
@media (max-width: 768px) {
  .shepherd-element {
    max-width: calc(100vw - 32px);
    margin: 16px;
    border-radius: 18px;
  }
  
  .shepherd-text {
    padding: 28px 24px 20px 24px;
    font-size: 14px;
  }
  
  .shepherd-text h3 {
    font-size: 19px;
  }
  
  .shepherd-footer {
    flex-direction: column;
    gap: 10px;
    padding: 18px 24px 24px 24px;
  }
  
  .shepherd-footer .shepherd-button {
    width: 100%;
    justify-content: center;
  }
  
  .shepherd-cancel-icon {
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
  }
}

/* Sin iconos personalizados - removidos completamente */
