/*
 * MÓDULO: Core Frontend UI / UI/UX
 * ARCHIVO: app/static/css/tour_engine.css
 * DESCRIPCIÓN: Hoja de estilos estabilizada y blindada.
 * ESTADO: AUDITADO / SANITIZADO
 * FECHA: 01-07-26
 */
/*
 * CSS DEL MOTOR DE INDUCCIÓN GUIADA
 * Diseño: "Antigravity UI" (Glassmorphism, translúcido, sin bloqueos toscos).
 */

/* 1. Fondo Oscurecedor (Overlay) */
.retail-tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 9999; /* Debajo del tooltip pero encima de toda la UI */
    transition: opacity 0.3s ease-out;
}

/* 2. El Tooltip Dialogo con Glassmorphism */
.retail-tour-tooltip {
    position: absolute;
    z-index: 10001; /* La máxima prioridad en el Eje Z */
    width: 280px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2), 0 5px 15px rgba(0,0,0,0.1);
    transition: top 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), left 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.retail-tour-tooltip::before {
    /* Flecha estilizada apuntadora (opcional, calculable en una v2) */
    content: '';
}

/* 3. El elemento objetivo (Resaltado/Perforación en el overlay) */
.retail-tour-highlighted {
    position: relative !important;
    z-index: 10000 !important;
    /* Efecto "pop" que simula levantar el elemento del fondo */
    box-shadow: 0 0 0 5px rgba(255,255,255,1), 0 10px 30px rgba(0,0,0,0.3) !important;
    border-radius: 6px; 
    box-shadow: 0 0 0 4px var(--ui-cyan-accent, #00f2fe) !important; /* Asegura visualización evitando transparencias huecas */
    transition: box-shadow 0.3s ease-out;
}

/* 4. Estilos de Paginación (Dots Inteligentes) */
.tour-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.tour-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #e0e0e0;
    transition: background-color 0.2s, transform 0.2s;
}

.tour-dot.active {
    background-color: var(--brand-blue, #1e70b7);
    transform: scale(1.3);
}

/* 5. Tipografía y Micro UI */
.tour-header h5 {
    font-size: 1.1rem;
    color: var(--brand-blue, #1e70b7) !important;
}

.tour-body {
    line-height: 1.4;
    color: #555;
}

.tour-next {
    background-color: var(--brand-red, #E51147);
    color: white;
    border: none;
    font-weight: 500;
}

.tour-next:hover {
    background-color: #b50d37;
    color: white;
}

/* 6. Botón Flotante de Replay (Play Button) */
.tour-replay-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 9998;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    color: var(--brand-blue, #1e70b7);
    font-size: 1.2rem;
}

.tour-replay-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.tour-replay-btn .tooltip-text {
    visibility: hidden;
    background-color: rgba(50, 50, 50, 0.9);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 6px 12px;
    position: absolute;
    right: 120%;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
    font-family: var(--font-ui, sans-serif);
    pointer-events: none;
}

.tour-replay-btn:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
