/* ============================================
   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 - sin header, diseño minimalista */
.shepherd-element {
  max-width: 480px;
  border-radius: 20px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6), 
              0 0 0 1px rgba(102, 126, 234, 0.2);
  animation: slideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  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 - rediseñado sin header */
.shepherd-cancel-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.shepherd-cancel-icon:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  transform: scale(1.1);
}

.shepherd-cancel-icon svg {
  width: 18px;
  height: 18px;
  stroke: #1a1d2e;
  stroke-width: 2.5;
}

/* Contenido del tour - rediseñado sin iconos genéricos */
.shepherd-text {
  padding: 32px 28px 24px 28px;
  font-size: 15px;
  line-height: 1.75;
  color: #1a1d2e;
  background: #ffffff;
  position: relative;
}

/* Título integrado en el contenido (sin header separado) */
.shepherd-text h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1d2e;
  margin: 0 0 16px 0;
  padding-right: 40px; /* Espacio para el botón de cerrar */
}

.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 - rediseñado */
.shepherd-footer {
  padding: 20px 28px 28px 28px;
  background: #ffffff;
  border-top: 1px solid rgba(102, 126, 234, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

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

/* Botones rediseñados */
.shepherd-button {
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.shepherd-button-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.shepherd-button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.shepherd-button-primary:active {
  transform: translateY(0);
}

.shepherd-button-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid rgba(102, 126, 234, 0.2);
}

.shepherd-button-secondary:hover {
  background: rgba(102, 126, 234, 0.08);
  border-color: rgba(102, 126, 234, 0.4);
  color: #667eea;
}

/* 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 - HOVER CORREGIDO */
.btn-tour {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  border: none !important;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease !important;
}

.btn-tour:hover {
  background: linear-gradient(135deg, #5568d3 0%, #65408b 100%) !important;
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5) !important;
}

.btn-tour:active {
  transform: translateY(0) !important;
}

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

.btn-tour::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 70%
  );
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* Modo oscuro adaptaciones */
[data-theme="dark"] .shepherd-element {
  background: #1a1d2e;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 
              0 0 0 1px rgba(102, 126, 234, 0.3);
}

[data-theme="dark"] .shepherd-text {
  background: #1a1d2e;
}

[data-theme="dark"] .shepherd-footer {
  background: #1a1d2e;
  border-top-color: rgba(102, 126, 234, 0.15);
}

[data-theme="dark"] .shepherd-button-secondary {
  background: transparent;
  color: #9ca3af;
  border-color: rgba(102, 126, 234, 0.25);
}

[data-theme="dark"] .shepherd-button-secondary:hover {
  background: rgba(102, 126, 234, 0.12);
  border-color: rgba(102, 126, 234, 0.5);
  color: #a5b4fc;
}

[data-theme="dark"] .tour-highlight {
  background: rgba(71, 85, 105, 0.2);
}

[data-theme="dark"] .tour-tip {
  background: rgba(71, 85, 105, 0.18);
}

[data-theme="dark"] .tour-warning {
  background: rgba(71, 85, 105, 0.25);
}

[data-theme="dark"] .shepherd-cancel-icon {
  background: #2d3748;
  border-color: #4a5568;
}

[data-theme="dark"] .shepherd-cancel-icon:hover {
  background: #7f1d1d;
  border-color: #991b1b;
}

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

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

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

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

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

/* 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 */
