﻿/** ESTILOS PARA LOS ELEMENTOS UI DEL TOUR GUIADO */
/* Animaciones y efectos */
@keyframes pulseBorder {
    0% { border-color: rgba(220, 53, 69, 0.7); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { border-color: rgba(220, 53, 69, 1); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

.feature-highlight-box {
    animation: pulseBorder 1.5s infinite;
    transition: all 0.3s ease;
}

/* Bloqueo de interacciones */
body.tour-active {
    overflow: hidden;
}

/* Responsividad mejorada */
@media (max-width: 576px) {
    .custom-tour-tooltip {
        max-height: 80vh;
    }
    
    .tour-message-area {
        max-height: 50vh;
        padding: 15px;
    }
    
    .tour-button-area {
        flex-direction: column;
    }
    
    .tour-button-area > div {
        width: 100%;
        justify-content: space-between;
    }
    
    .btn-sm {
        width: 100%;
        margin-bottom: 5px;
    }
}
/** FIN TOUR GUIADO */

/* Estilos para el modal introductorio */
.tour-intro-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tour-intro-box {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  text-align: center;
}

/* Estilos para el tooltip del tour */
.tour-tooltip {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 400px;
  width: 90%;
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', Roboto, sans-serif;
  overflow: hidden;
  pointer-events: auto;
}

.tour-tooltip-header {
  padding: 15px 20px;
  background: #1976d2;
  color: white;
  font-weight: bold;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.tour-tooltip-message {
  padding: 20px;
  flex-grow: 1;
  overflow-y: auto;
  max-height: 60vh;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
}

.tour-tooltip-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  flex-wrap: wrap;
  gap: 10px;
}

/* Estilos para overlay y highlight */
.tour-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  pointer-events: auto;
  z-index: 999;
}

.tour-highlight {
  position: absolute;
  border: 5px solid #dc3545;
  border-radius: 6px;
  z-index: 9999;
  background: rgba(255, 255, 255, 0);
  box-shadow: 0 0 0 10000px rgba(0, 0, 0, 0.6) !important;
  transition: all 0.3s ease;
}

/* Estilos para los puntos de progreso */
.tour-progress-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.tour-progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background 0.3s ease;
  cursor: pointer;
}

.tour-progress-dot.active {
  background: white;
}

/* Estilos para el loader */
.tour-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255,255,255,0.93);
  z-index: 9998;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

/* Estilos para los botones (puedes ajustarlos según tu framework CSS) */
.tour-btn {
  padding: 10px 20px;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.tour-btn-primary {
  background: #1976d2;
}

.tour-btn-secondary {
  background: #6c757d;
}

.tour-btn-danger {
  background: #f44336;
}

.tour-btn-outline-secondary {
  background: transparent;
  border: 1px solid #6c757d;
  color: #6c757d;
}