/* tour.css - Estilos para guias interactivas */
/* Overlay, highlight, tooltip y animaciones del tour engine */

/* Overlay: fondo semitransparente que cubre toda la pantalla */
.tour-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    transition: opacity 0.3s ease;
}

/* Highlight: recorte visual sobre el elemento objetivo */
.tour-highlight {
    position: absolute;
    z-index: 9999;
    border-radius: 4px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Tooltip: contenedor del mensaje del paso */
.tour-tooltip {
    position: absolute;
    z-index: 10000;
    background: #ffffff;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    max-width: 320px;
    min-width: 240px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    font-family: inherit;
}

.tour-tooltip h4 {
    margin: 0 0 0.5rem;
    color: #1a5276;
    font-size: 1rem;
    font-weight: 600;
}

.tour-tooltip p {
    margin: 0 0 1rem;
    color: #555555;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Footer: contador de pasos y botones */
.tour-tooltip-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.tour-step-counter {
    font-size: 0.75rem;
    color: #999999;
    white-space: nowrap;
}

.tour-tooltip-buttons {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

/* Botones */
.tour-btn {
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: inherit;
    transition: background-color 0.2s, color 0.2s;
}

.tour-btn:hover {
    opacity: 0.85;
}

.tour-btn-skip {
    background: transparent;
    color: #999999;
}

.tour-btn-skip:hover {
    color: #666666;
}

.tour-btn-prev {
    background: #e8e8e8;
    color: #333333;
}

.tour-btn-prev:hover {
    background: #d0d0d0;
}

.tour-btn-next {
    background: #1a5276;
    color: #ffffff;
}

.tour-btn-next:hover {
    background: #154360;
}

/* Animacion de entrada del tooltip */
@keyframes tourTooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tour-tooltip-enter {
    animation: tourTooltipFadeIn 0.25s ease forwards;
}

/* Boton de ayuda contextual en el header */
.btn-help-tour {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #1a5276;
    font-size: 1.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.btn-help-tour:hover {
    background: rgba(26, 82, 118, 0.1);
    color: #154360;
}

.btn-help-tour:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.btn-help-tour i {
    margin: 0;
}
